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)
public static Output<GetServiceendpointAzurecrResult> getServiceendpointAzurecr(GetServiceendpointAzurecrArgs args, InvokeOptions options)
fn::invoke:
  function: azuredevops:index/getServiceendpointAzurecr:getServiceendpointAzurecr
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ProjectId string
- The ID of the project.
- ServiceEndpoint stringId 
- the ID of the Service Endpoint.
- ServiceEndpoint stringName 
- the Name of the Service Endpoint. - NOTE: One of either - service_endpoint_idor- service_endpoint_namemust be specified.
- ProjectId string
- The ID of the project.
- ServiceEndpoint stringId 
- the ID of the Service Endpoint.
- ServiceEndpoint stringName 
- the Name of the Service Endpoint. - NOTE: One of either - service_endpoint_idor- service_endpoint_namemust be specified.
- projectId String
- The ID of the project.
- serviceEndpoint StringId 
- the ID of the Service Endpoint.
- serviceEndpoint StringName 
- the Name of the Service Endpoint. - NOTE: One of either - service_endpoint_idor- service_endpoint_namemust be specified.
- projectId string
- The ID of the project.
- serviceEndpoint stringId 
- the ID of the Service Endpoint.
- serviceEndpoint stringName 
- the Name of the Service Endpoint. - NOTE: One of either - service_endpoint_idor- service_endpoint_namemust 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_idor- service_endpoint_namemust be specified.
- projectId String
- The ID of the project.
- serviceEndpoint StringId 
- the ID of the Service Endpoint.
- serviceEndpoint StringName 
- the Name of the Service Endpoint. - NOTE: One of either - service_endpoint_idor- service_endpoint_namemust be specified.
getServiceendpointAzurecr Result
The following output properties are available:
- AppObject stringId 
- The Object ID of the Service Principal.
- Dictionary<string, string>
- The Authorization scheme.
- AzSpn stringRole Assignment Id 
- The ID of Service Principal Role Assignment.
- AzSpn stringRole Permissions 
- The Service Principal Role Permissions.
- AzurecrName string
- The Azure Container Registry name.
- AzurecrSpn stringTenantid 
- The Tenant ID of the service principal.
- AzurecrSubscription stringId 
- The Subscription ID of the Azure targets.
- AzurecrSubscription 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.
- ProjectId string
- ResourceGroup string
- The Resource Group to which the Container Registry belongs.
- ServiceEndpoint stringId 
- ServiceEndpoint stringName 
- ServicePrincipal stringId 
- The Application(Client) ID of the Service Principal.
- SpnObject stringId 
- The ID of the Service Principal.
- AppObject stringId 
- The Object ID of the Service Principal.
- map[string]string
- The Authorization scheme.
- AzSpn stringRole Assignment Id 
- The ID of Service Principal Role Assignment.
- AzSpn stringRole Permissions 
- The Service Principal Role Permissions.
- AzurecrName string
- The Azure Container Registry name.
- AzurecrSpn stringTenantid 
- The Tenant ID of the service principal.
- AzurecrSubscription stringId 
- The Subscription ID of the Azure targets.
- AzurecrSubscription 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.
- ProjectId string
- ResourceGroup string
- The Resource Group to which the Container Registry belongs.
- ServiceEndpoint stringId 
- ServiceEndpoint stringName 
- ServicePrincipal stringId 
- The Application(Client) ID of the Service Principal.
- SpnObject stringId 
- The ID of the Service Principal.
- appObject StringId 
- The Object ID of the Service Principal.
- Map<String,String>
- The Authorization scheme.
- azSpn StringRole Assignment Id 
- The ID of Service Principal Role Assignment.
- azSpn StringRole Permissions 
- The Service Principal Role Permissions.
- azurecrName String
- The Azure Container Registry name.
- azurecrSpn StringTenantid 
- The Tenant ID of the service principal.
- azurecrSubscription StringId 
- The Subscription ID of the Azure targets.
- azurecrSubscription 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.
- projectId String
- resourceGroup String
- The Resource Group to which the Container Registry belongs.
- serviceEndpoint StringId 
- serviceEndpoint StringName 
- servicePrincipal StringId 
- The Application(Client) ID of the Service Principal.
- spnObject StringId 
- The ID of the Service Principal.
- appObject stringId 
- The Object ID of the Service Principal.
- {[key: string]: string}
- The Authorization scheme.
- azSpn stringRole Assignment Id 
- The ID of Service Principal Role Assignment.
- azSpn stringRole Permissions 
- The Service Principal Role Permissions.
- azurecrName string
- The Azure Container Registry name.
- azurecrSpn stringTenantid 
- The Tenant ID of the service principal.
- azurecrSubscription stringId 
- The Subscription ID of the Azure targets.
- azurecrSubscription 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.
- projectId string
- resourceGroup string
- The Resource Group to which the Container Registry belongs.
- serviceEndpoint stringId 
- serviceEndpoint stringName 
- servicePrincipal stringId 
- The Application(Client) ID of the Service Principal.
- spnObject stringId 
- The ID of the Service Principal.
- app_object_ strid 
- The Object ID of the Service Principal.
- Mapping[str, str]
- The Authorization scheme.
- 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.
- appObject StringId 
- The Object ID of the Service Principal.
- Map<String>
- The Authorization scheme.
- azSpn StringRole Assignment Id 
- The ID of Service Principal Role Assignment.
- azSpn StringRole Permissions 
- The Service Principal Role Permissions.
- azurecrName String
- The Azure Container Registry name.
- azurecrSpn StringTenantid 
- The Tenant ID of the service principal.
- azurecrSubscription StringId 
- The Subscription ID of the Azure targets.
- azurecrSubscription 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.
- projectId String
- resourceGroup String
- The Resource Group to which the Container Registry belongs.
- serviceEndpoint StringId 
- serviceEndpoint StringName 
- servicePrincipal StringId 
- The Application(Client) ID of the Service Principal.
- spnObject 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 azuredevopsTerraform Provider.