azuredevops.getServiceendpointDockerregistry
Explore with Pulumi AI
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:
- 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: 1. One of either
service_endpoint_id
orservice_endpoint_name
must be specified. 2. When supplyingservice_endpoint_name
, take care to ensure that this is a unique name.
- 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: 1. One of either
service_endpoint_id
orservice_endpoint_name
must be specified. 2. When supplyingservice_endpoint_name
, take care to ensure that this is a unique name.
- 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: 1. One of either
service_endpoint_id
orservice_endpoint_name
must be specified. 2. When supplyingservice_endpoint_name
, take care to ensure that this is a unique name.
- 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: 1. One of either
service_endpoint_id
orservice_endpoint_name
must be specified. 2. When supplyingservice_endpoint_name
, take care to ensure that this is a unique name.
- 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: 1. One of either
service_endpoint_id
orservice_endpoint_name
must be specified. 2. When supplyingservice_endpoint_name
, take care to ensure that this is a unique name.
- 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: 1. One of either
service_endpoint_id
orservice_endpoint_name
must be specified. 2. When supplyingservice_endpoint_name
, take care to ensure that this is a unique name.
getServiceendpointDockerregistry Result
The following output properties are available:
- Dictionary<string, string>
- The Authorization scheme.
- Description string
- The Service Endpoint description.
- Docker
Email string - The email for Docker account user.
- Docker
Password string - The password for the account user identified above.
- Docker
Registry string - The URL of the Docker registry.
- Docker
Username string - The identifier of the Docker account user.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Registry
Type string - Can be "DockerHub" or "Others" (Default "DockerHub")
- Service
Endpoint stringId - Service
Endpoint stringName
- map[string]string
- The Authorization scheme.
- Description string
- The Service Endpoint description.
- Docker
Email string - The email for Docker account user.
- Docker
Password string - The password for the account user identified above.
- Docker
Registry string - The URL of the Docker registry.
- Docker
Username string - The identifier of the Docker account user.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Registry
Type string - Can be "DockerHub" or "Others" (Default "DockerHub")
- Service
Endpoint stringId - Service
Endpoint stringName
- Map<String,String>
- The Authorization scheme.
- description String
- The Service Endpoint description.
- docker
Email String - The email for Docker account user.
- docker
Password String - The password for the account user identified above.
- docker
Registry String - The URL of the Docker registry.
- docker
Username String - The identifier of the Docker account user.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - registry
Type String - Can be "DockerHub" or "Others" (Default "DockerHub")
- service
Endpoint StringId - service
Endpoint StringName
- {[key: string]: string}
- The Authorization scheme.
- description string
- The Service Endpoint description.
- docker
Email string - The email for Docker account user.
- docker
Password string - The password for the account user identified above.
- docker
Registry string - The URL of the Docker registry.
- docker
Username string - The identifier of the Docker account user.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - registry
Type string - Can be "DockerHub" or "Others" (Default "DockerHub")
- service
Endpoint stringId - service
Endpoint stringName
- 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_ strid - service_
endpoint_ strname
- Map<String>
- The Authorization scheme.
- description String
- The Service Endpoint description.
- docker
Email String - The email for Docker account user.
- docker
Password String - The password for the account user identified above.
- docker
Registry String - The URL of the Docker registry.
- docker
Username String - The identifier of the Docker account user.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - registry
Type String - Can be "DockerHub" or "Others" (Default "DockerHub")
- service
Endpoint StringId - service
Endpoint StringName
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevops
Terraform Provider.