1. Packages
  2. Azure DevOps Provider
  3. API Docs
  4. getServiceendpointDockerregistry
Azure DevOps v3.10.0 published on Saturday, May 31, 2025 by Pulumi

azuredevops.getServiceendpointDockerregistry

Explore with Pulumi AI

azuredevops logo
Azure DevOps v3.10.0 published on Saturday, May 31, 2025 by Pulumi

    Use this data source to access information about an existing Docker Registry Service Endpoint.

    Example Usage

    By Service Endpoint ID

    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const example = azuredevops.getProject({
        name: "Example Project",
    });
    const exampleGetServiceendpointDockerregistry = example.then(example => azuredevops.getServiceendpointDockerregistry({
        projectId: example.id,
        serviceEndpointId: "00000000-0000-0000-0000-000000000000",
    }));
    export const serviceEndpointName = exampleGetServiceendpointDockerregistry.then(exampleGetServiceendpointDockerregistry => exampleGetServiceendpointDockerregistry.serviceEndpointName);
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example = azuredevops.get_project(name="Example Project")
    example_get_serviceendpoint_dockerregistry = azuredevops.get_serviceendpoint_dockerregistry(project_id=example.id,
        service_endpoint_id="00000000-0000-0000-0000-000000000000")
    pulumi.export("serviceEndpointName", example_get_serviceendpoint_dockerregistry.service_endpoint_name)
    
    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.LookupProject(ctx, &azuredevops.LookupProjectArgs{
    			Name: pulumi.StringRef("Example Project"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleGetServiceendpointDockerregistry, err := azuredevops.GetServiceendpointDockerregistry(ctx, &azuredevops.GetServiceendpointDockerregistryArgs{
    			ProjectId:         example.Id,
    			ServiceEndpointId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("serviceEndpointName", exampleGetServiceendpointDockerregistry.ServiceEndpointName)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AzureDevOps.GetProject.Invoke(new()
        {
            Name = "Example Project",
        });
    
        var exampleGetServiceendpointDockerregistry = AzureDevOps.GetServiceendpointDockerregistry.Invoke(new()
        {
            ProjectId = example.Apply(getProjectResult => getProjectResult.Id),
            ServiceEndpointId = "00000000-0000-0000-0000-000000000000",
        });
    
        return new Dictionary<string, object?>
        {
            ["serviceEndpointName"] = exampleGetServiceendpointDockerregistry.Apply(getServiceendpointDockerregistryResult => getServiceendpointDockerregistryResult.ServiceEndpointName),
        };
    });
    
    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.GetProjectArgs;
    import com.pulumi.azuredevops.inputs.GetServiceendpointDockerregistryArgs;
    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.getProject(GetProjectArgs.builder()
                .name("Example Project")
                .build());
    
            final var exampleGetServiceendpointDockerregistry = AzuredevopsFunctions.getServiceendpointDockerregistry(GetServiceendpointDockerregistryArgs.builder()
                .projectId(example.id())
                .serviceEndpointId("00000000-0000-0000-0000-000000000000")
                .build());
    
            ctx.export("serviceEndpointName", exampleGetServiceendpointDockerregistry.serviceEndpointName());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azuredevops:getProject
          arguments:
            name: Example Project
      exampleGetServiceendpointDockerregistry:
        fn::invoke:
          function: azuredevops:getServiceendpointDockerregistry
          arguments:
            projectId: ${example.id}
            serviceEndpointId: 00000000-0000-0000-0000-000000000000
    outputs:
      serviceEndpointName: ${exampleGetServiceendpointDockerregistry.serviceEndpointName}
    

    By Service Endpoint Name

    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const example = azuredevops.getProject({
        name: "Example Project",
    });
    const exampleGetServiceendpointDockerregistry = example.then(example => azuredevops.getServiceendpointDockerregistry({
        projectId: example.id,
        serviceEndpointName: "Example-Service-Endpoint",
    }));
    export const serviceEndpointId = serviceendpoint.id;
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example = azuredevops.get_project(name="Example Project")
    example_get_serviceendpoint_dockerregistry = azuredevops.get_serviceendpoint_dockerregistry(project_id=example.id,
        service_endpoint_name="Example-Service-Endpoint")
    pulumi.export("serviceEndpointId", serviceendpoint["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.LookupProject(ctx, &azuredevops.LookupProjectArgs{
    			Name: pulumi.StringRef("Example Project"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.GetServiceendpointDockerregistry(ctx, &azuredevops.GetServiceendpointDockerregistryArgs{
    			ProjectId:           example.Id,
    			ServiceEndpointName: pulumi.StringRef("Example-Service-Endpoint"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("serviceEndpointId", serviceendpoint.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AzureDevOps.GetProject.Invoke(new()
        {
            Name = "Example Project",
        });
    
        var exampleGetServiceendpointDockerregistry = AzureDevOps.GetServiceendpointDockerregistry.Invoke(new()
        {
            ProjectId = example.Apply(getProjectResult => getProjectResult.Id),
            ServiceEndpointName = "Example-Service-Endpoint",
        });
    
        return new Dictionary<string, object?>
        {
            ["serviceEndpointId"] = serviceendpoint.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.GetProjectArgs;
    import com.pulumi.azuredevops.inputs.GetServiceendpointDockerregistryArgs;
    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.getProject(GetProjectArgs.builder()
                .name("Example Project")
                .build());
    
            final var exampleGetServiceendpointDockerregistry = AzuredevopsFunctions.getServiceendpointDockerregistry(GetServiceendpointDockerregistryArgs.builder()
                .projectId(example.id())
                .serviceEndpointName("Example-Service-Endpoint")
                .build());
    
            ctx.export("serviceEndpointId", serviceendpoint.id());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azuredevops:getProject
          arguments:
            name: Example Project
      exampleGetServiceendpointDockerregistry:
        fn::invoke:
          function: azuredevops:getServiceendpointDockerregistry
          arguments:
            projectId: ${example.id}
            serviceEndpointName: Example-Service-Endpoint
    outputs:
      serviceEndpointId: ${serviceendpoint.id}
    

    Using getServiceendpointDockerregistry

    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 getServiceendpointDockerregistry(args: GetServiceendpointDockerregistryArgs, opts?: InvokeOptions): Promise<GetServiceendpointDockerregistryResult>
    function getServiceendpointDockerregistryOutput(args: GetServiceendpointDockerregistryOutputArgs, opts?: InvokeOptions): Output<GetServiceendpointDockerregistryResult>
    def get_serviceendpoint_dockerregistry(project_id: Optional[str] = None,
                                           service_endpoint_id: Optional[str] = None,
                                           service_endpoint_name: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetServiceendpointDockerregistryResult
    def get_serviceendpoint_dockerregistry_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[GetServiceendpointDockerregistryResult]
    func GetServiceendpointDockerregistry(ctx *Context, args *GetServiceendpointDockerregistryArgs, opts ...InvokeOption) (*GetServiceendpointDockerregistryResult, error)
    func GetServiceendpointDockerregistryOutput(ctx *Context, args *GetServiceendpointDockerregistryOutputArgs, opts ...InvokeOption) GetServiceendpointDockerregistryResultOutput

    > Note: This function is named GetServiceendpointDockerregistry in the Go SDK.

    public static class GetServiceendpointDockerregistry 
    {
        public static Task<GetServiceendpointDockerregistryResult> InvokeAsync(GetServiceendpointDockerregistryArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceendpointDockerregistryResult> Invoke(GetServiceendpointDockerregistryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceendpointDockerregistryResult> getServiceendpointDockerregistry(GetServiceendpointDockerregistryArgs args, InvokeOptions options)
    public static Output<GetServiceendpointDockerregistryResult> getServiceendpointDockerregistry(GetServiceendpointDockerregistryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azuredevops:index/getServiceendpointDockerregistry:getServiceendpointDockerregistry
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    The ID of the project.
    ServiceEndpointId string
    the ID of the Service Endpoint.
    ServiceEndpointName string

    the Name of the Service Endpoint.

    NOTE: 1. One of either service_endpoint_id or service_endpoint_name must be specified. 2. When supplying service_endpoint_name, take care to ensure that this is a unique name.

    ProjectId string
    The ID of the project.
    ServiceEndpointId string
    the ID of the Service Endpoint.
    ServiceEndpointName string

    the Name of the Service Endpoint.

    NOTE: 1. One of either service_endpoint_id or service_endpoint_name must be specified. 2. When supplying service_endpoint_name, take care to ensure that this is a unique name.

    projectId String
    The ID of the project.
    serviceEndpointId String
    the ID of the Service Endpoint.
    serviceEndpointName String

    the Name of the Service Endpoint.

    NOTE: 1. One of either service_endpoint_id or service_endpoint_name must be specified. 2. When supplying service_endpoint_name, take care to ensure that this is a unique name.

    projectId string
    The ID of the project.
    serviceEndpointId string
    the ID of the Service Endpoint.
    serviceEndpointName string

    the Name of the Service Endpoint.

    NOTE: 1. One of either service_endpoint_id or service_endpoint_name must be specified. 2. When supplying service_endpoint_name, take care to ensure that this is a unique name.

    project_id str
    The ID of the project.
    service_endpoint_id str
    the ID of the Service Endpoint.
    service_endpoint_name str

    the Name of the Service Endpoint.

    NOTE: 1. One of either service_endpoint_id or service_endpoint_name must be specified. 2. When supplying service_endpoint_name, take care to ensure that this is a unique name.

    projectId String
    The ID of the project.
    serviceEndpointId String
    the ID of the Service Endpoint.
    serviceEndpointName String

    the Name of the Service Endpoint.

    NOTE: 1. One of either service_endpoint_id or service_endpoint_name must be specified. 2. When supplying service_endpoint_name, take care to ensure that this is a unique name.

    getServiceendpointDockerregistry Result

    The following output properties are available:

    Authorization Dictionary<string, string>
    The Authorization scheme.
    Description string
    The Service Endpoint description.
    DockerEmail string
    The email for Docker account user.
    DockerPassword string
    The password for the account user identified above.
    DockerRegistry string
    The URL of the Docker registry.
    DockerUsername string
    The identifier of the Docker account user.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    RegistryType string
    Can be "DockerHub" or "Others" (Default "DockerHub")
    ServiceEndpointId string
    ServiceEndpointName string
    Authorization map[string]string
    The Authorization scheme.
    Description string
    The Service Endpoint description.
    DockerEmail string
    The email for Docker account user.
    DockerPassword string
    The password for the account user identified above.
    DockerRegistry string
    The URL of the Docker registry.
    DockerUsername string
    The identifier of the Docker account user.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    RegistryType string
    Can be "DockerHub" or "Others" (Default "DockerHub")
    ServiceEndpointId string
    ServiceEndpointName string
    authorization Map<String,String>
    The Authorization scheme.
    description String
    The Service Endpoint description.
    dockerEmail String
    The email for Docker account user.
    dockerPassword String
    The password for the account user identified above.
    dockerRegistry String
    The URL of the Docker registry.
    dockerUsername String
    The identifier of the Docker account user.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    registryType String
    Can be "DockerHub" or "Others" (Default "DockerHub")
    serviceEndpointId String
    serviceEndpointName String
    authorization {[key: string]: string}
    The Authorization scheme.
    description string
    The Service Endpoint description.
    dockerEmail string
    The email for Docker account user.
    dockerPassword string
    The password for the account user identified above.
    dockerRegistry string
    The URL of the Docker registry.
    dockerUsername string
    The identifier of the Docker account user.
    id string
    The provider-assigned unique ID for this managed resource.
    projectId string
    registryType string
    Can be "DockerHub" or "Others" (Default "DockerHub")
    serviceEndpointId string
    serviceEndpointName string
    authorization Mapping[str, str]
    The Authorization scheme.
    description str
    The Service Endpoint description.
    docker_email str
    The email for Docker account user.
    docker_password str
    The password for the account user identified above.
    docker_registry str
    The URL of the Docker registry.
    docker_username str
    The identifier of the Docker account user.
    id str
    The provider-assigned unique ID for this managed resource.
    project_id str
    registry_type str
    Can be "DockerHub" or "Others" (Default "DockerHub")
    service_endpoint_id str
    service_endpoint_name str
    authorization Map<String>
    The Authorization scheme.
    description String
    The Service Endpoint description.
    dockerEmail String
    The email for Docker account user.
    dockerPassword String
    The password for the account user identified above.
    dockerRegistry String
    The URL of the Docker registry.
    dockerUsername String
    The identifier of the Docker account user.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    registryType String
    Can be "DockerHub" or "Others" (Default "DockerHub")
    serviceEndpointId String
    serviceEndpointName String

    Package Details

    Repository
    Azure DevOps pulumi/pulumi-azuredevops
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azuredevops Terraform Provider.
    azuredevops logo
    Azure DevOps v3.10.0 published on Saturday, May 31, 2025 by Pulumi