azuredevops.getServiceendpointAzurecr
Explore with Pulumi AI
Use this data source to access information about an existing Azure Container Registry Service Endpoint.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = azuredevops.getServiceendpointAzurecr({
projectId: exampleAzuredevopsProject.id,
serviceEndpointName: "Example Azure Container Registry",
});
export const serviceEndpointId = example.then(example => example.id);
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.get_serviceendpoint_azurecr(project_id=example_azuredevops_project["id"],
service_endpoint_name="Example Azure Container Registry")
pulumi.export("serviceEndpointId", example.id)
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azuredevops.GetServiceendpointAzurecr(ctx, &azuredevops.GetServiceendpointAzurecrArgs{
ProjectId: exampleAzuredevopsProject.Id,
ServiceEndpointName: pulumi.StringRef("Example Azure Container Registry"),
}, nil)
if err != nil {
return err
}
ctx.Export("serviceEndpointId", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = AzureDevOps.GetServiceendpointAzurecr.Invoke(new()
{
ProjectId = exampleAzuredevopsProject.Id,
ServiceEndpointName = "Example Azure Container Registry",
});
return new Dictionary<string, object?>
{
["serviceEndpointId"] = example.Apply(getServiceendpointAzurecrResult => getServiceendpointAzurecrResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetServiceendpointAzurecrArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = AzuredevopsFunctions.getServiceendpointAzurecr(GetServiceendpointAzurecrArgs.builder()
.projectId(exampleAzuredevopsProject.id())
.serviceEndpointName("Example Azure Container Registry")
.build());
ctx.export("serviceEndpointId", example.applyValue(getServiceendpointAzurecrResult -> getServiceendpointAzurecrResult.id()));
}
}
variables:
example:
fn::invoke:
Function: azuredevops:getServiceendpointAzurecr
Arguments:
projectId: ${exampleAzuredevopsProject.id}
serviceEndpointName: Example Azure Container Registry
outputs:
serviceEndpointId: ${example.id}
Using getServiceendpointAzurecr
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServiceendpointAzurecr(args: GetServiceendpointAzurecrArgs, opts?: InvokeOptions): Promise<GetServiceendpointAzurecrResult>
function getServiceendpointAzurecrOutput(args: GetServiceendpointAzurecrOutputArgs, opts?: InvokeOptions): Output<GetServiceendpointAzurecrResult>
def get_serviceendpoint_azurecr(project_id: Optional[str] = None,
service_endpoint_id: Optional[str] = None,
service_endpoint_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceendpointAzurecrResult
def get_serviceendpoint_azurecr_output(project_id: Optional[pulumi.Input[str]] = None,
service_endpoint_id: Optional[pulumi.Input[str]] = None,
service_endpoint_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceendpointAzurecrResult]
func GetServiceendpointAzurecr(ctx *Context, args *GetServiceendpointAzurecrArgs, opts ...InvokeOption) (*GetServiceendpointAzurecrResult, error)
func GetServiceendpointAzurecrOutput(ctx *Context, args *GetServiceendpointAzurecrOutputArgs, opts ...InvokeOption) GetServiceendpointAzurecrResultOutput
> Note: This function is named GetServiceendpointAzurecr
in the Go SDK.
public static class GetServiceendpointAzurecr
{
public static Task<GetServiceendpointAzurecrResult> InvokeAsync(GetServiceendpointAzurecrArgs args, InvokeOptions? opts = null)
public static Output<GetServiceendpointAzurecrResult> Invoke(GetServiceendpointAzurecrInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceendpointAzurecrResult> getServiceendpointAzurecr(GetServiceendpointAzurecrArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azuredevops:index/getServiceendpointAzurecr:getServiceendpointAzurecr
arguments:
# arguments dictionary
The following arguments are supported:
- Project
Id string - The ID of the project.
- Service
Endpoint stringId - the ID of the Service Endpoint.
- Service
Endpoint stringName the Name of the Service Endpoint.
NOTE: One of either
service_endpoint_id
orservice_endpoint_name
must be specified.
- Project
Id string - The ID of the project.
- Service
Endpoint stringId - the ID of the Service Endpoint.
- Service
Endpoint stringName the Name of the Service Endpoint.
NOTE: One of either
service_endpoint_id
orservice_endpoint_name
must be specified.
- project
Id String - The ID of the project.
- service
Endpoint StringId - the ID of the Service Endpoint.
- service
Endpoint StringName the Name of the Service Endpoint.
NOTE: One of either
service_endpoint_id
orservice_endpoint_name
must be specified.
- project
Id string - The ID of the project.
- service
Endpoint stringId - the ID of the Service Endpoint.
- service
Endpoint stringName the Name of the Service Endpoint.
NOTE: One of either
service_endpoint_id
orservice_endpoint_name
must be specified.
- project_
id str - The ID of the project.
- service_
endpoint_ strid - the ID of the Service Endpoint.
- service_
endpoint_ strname the Name of the Service Endpoint.
NOTE: One of either
service_endpoint_id
orservice_endpoint_name
must be specified.
- project
Id String - The ID of the project.
- service
Endpoint StringId - the ID of the Service Endpoint.
- service
Endpoint StringName the Name of the Service Endpoint.
NOTE: One of either
service_endpoint_id
orservice_endpoint_name
must be specified.
getServiceendpointAzurecr Result
The following output properties are available:
- App
Object stringId - The Object ID of the Service Principal.
- Dictionary<string, string>
- Specifies the Authorization Scheme Map.
- Az
Spn stringRole Assignment Id - The ID of Service Principal Role Assignment.
- Az
Spn stringRole Permissions - The Service Principal Role Permissions.
- Azurecr
Name string - The Azure Container Registry name.
- Azurecr
Spn stringTenantid - The Tenant ID of the service principal.
- Azurecr
Subscription stringId - The Subscription ID of the Azure targets.
- Azurecr
Subscription stringName - The Subscription Name of the Azure targets.
- Description string
- The Service Endpoint description.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Resource
Group string - The Resource Group to which the Container Registry belongs.
- Service
Endpoint stringId - Service
Endpoint stringName - Service
Principal stringId - The Application(Client) ID of the Service Principal.
- Spn
Object stringId - The ID of the Service Principal.
- App
Object stringId - The Object ID of the Service Principal.
- map[string]string
- Specifies the Authorization Scheme Map.
- Az
Spn stringRole Assignment Id - The ID of Service Principal Role Assignment.
- Az
Spn stringRole Permissions - The Service Principal Role Permissions.
- Azurecr
Name string - The Azure Container Registry name.
- Azurecr
Spn stringTenantid - The Tenant ID of the service principal.
- Azurecr
Subscription stringId - The Subscription ID of the Azure targets.
- Azurecr
Subscription stringName - The Subscription Name of the Azure targets.
- Description string
- The Service Endpoint description.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Resource
Group string - The Resource Group to which the Container Registry belongs.
- Service
Endpoint stringId - Service
Endpoint stringName - Service
Principal stringId - The Application(Client) ID of the Service Principal.
- Spn
Object stringId - The ID of the Service Principal.
- app
Object StringId - The Object ID of the Service Principal.
- Map<String,String>
- Specifies the Authorization Scheme Map.
- az
Spn StringRole Assignment Id - The ID of Service Principal Role Assignment.
- az
Spn StringRole Permissions - The Service Principal Role Permissions.
- azurecr
Name String - The Azure Container Registry name.
- azurecr
Spn StringTenantid - The Tenant ID of the service principal.
- azurecr
Subscription StringId - The Subscription ID of the Azure targets.
- azurecr
Subscription StringName - The Subscription Name of the Azure targets.
- description String
- The Service Endpoint description.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - resource
Group String - The Resource Group to which the Container Registry belongs.
- service
Endpoint StringId - service
Endpoint StringName - service
Principal StringId - The Application(Client) ID of the Service Principal.
- spn
Object StringId - The ID of the Service Principal.
- app
Object stringId - The Object ID of the Service Principal.
- {[key: string]: string}
- Specifies the Authorization Scheme Map.
- az
Spn stringRole Assignment Id - The ID of Service Principal Role Assignment.
- az
Spn stringRole Permissions - The Service Principal Role Permissions.
- azurecr
Name string - The Azure Container Registry name.
- azurecr
Spn stringTenantid - The Tenant ID of the service principal.
- azurecr
Subscription stringId - The Subscription ID of the Azure targets.
- azurecr
Subscription stringName - The Subscription Name of the Azure targets.
- description string
- The Service Endpoint description.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - resource
Group string - The Resource Group to which the Container Registry belongs.
- service
Endpoint stringId - service
Endpoint stringName - service
Principal stringId - The Application(Client) ID of the Service Principal.
- spn
Object stringId - The ID of the Service Principal.
- app_
object_ strid - The Object ID of the Service Principal.
- Mapping[str, str]
- Specifies the Authorization Scheme Map.
- az_
spn_ strrole_ assignment_ id - The ID of Service Principal Role Assignment.
- az_
spn_ strrole_ permissions - The Service Principal Role Permissions.
- azurecr_
name str - The Azure Container Registry name.
- azurecr_
spn_ strtenantid - The Tenant ID of the service principal.
- azurecr_
subscription_ strid - The Subscription ID of the Azure targets.
- azurecr_
subscription_ strname - The Subscription Name of the Azure targets.
- description str
- The Service Endpoint description.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - resource_
group str - The Resource Group to which the Container Registry belongs.
- service_
endpoint_ strid - service_
endpoint_ strname - service_
principal_ strid - The Application(Client) ID of the Service Principal.
- spn_
object_ strid - The ID of the Service Principal.
- app
Object StringId - The Object ID of the Service Principal.
- Map<String>
- Specifies the Authorization Scheme Map.
- az
Spn StringRole Assignment Id - The ID of Service Principal Role Assignment.
- az
Spn StringRole Permissions - The Service Principal Role Permissions.
- azurecr
Name String - The Azure Container Registry name.
- azurecr
Spn StringTenantid - The Tenant ID of the service principal.
- azurecr
Subscription StringId - The Subscription ID of the Azure targets.
- azurecr
Subscription StringName - The Subscription Name of the Azure targets.
- description String
- The Service Endpoint description.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - resource
Group String - The Resource Group to which the Container Registry belongs.
- service
Endpoint StringId - service
Endpoint StringName - service
Principal StringId - The Application(Client) ID of the Service Principal.
- spn
Object StringId - The ID of the Service Principal.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevops
Terraform Provider.