azuredevops.getServiceEndpointAzureRM
Explore with Pulumi AI
Use this data source to access information about an existing AzureRM service Endpoint.
Example Usage
By Service Endpoint ID
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const sample = azuredevops.getProject({
name: "Sample Project",
});
const serviceendpoint = sample.then(sample => azuredevops.getServiceEndpointAzureRM({
projectId: sample.id,
serviceEndpointId: "00000000-0000-0000-0000-000000000000",
}));
export const serviceEndpointName = serviceendpoint.then(serviceendpoint => serviceendpoint.serviceEndpointName);
import pulumi
import pulumi_azuredevops as azuredevops
sample = azuredevops.get_project(name="Sample Project")
serviceendpoint = azuredevops.get_service_endpoint_azure_rm(project_id=sample.id,
service_endpoint_id="00000000-0000-0000-0000-000000000000")
pulumi.export("serviceEndpointName", serviceendpoint.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 {
sample, err := azuredevops.LookupProject(ctx, &azuredevops.LookupProjectArgs{
Name: pulumi.StringRef("Sample Project"),
}, nil)
if err != nil {
return err
}
serviceendpoint, err := azuredevops.LookupServiceEndpointAzureRM(ctx, &azuredevops.LookupServiceEndpointAzureRMArgs{
ProjectId: sample.Id,
ServiceEndpointId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"),
}, nil)
if err != nil {
return err
}
ctx.Export("serviceEndpointName", serviceendpoint.ServiceEndpointName)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var sample = AzureDevOps.GetProject.Invoke(new()
{
Name = "Sample Project",
});
var serviceendpoint = AzureDevOps.GetServiceEndpointAzureRM.Invoke(new()
{
ProjectId = sample.Apply(getProjectResult => getProjectResult.Id),
ServiceEndpointId = "00000000-0000-0000-0000-000000000000",
});
return new Dictionary<string, object?>
{
["serviceEndpointName"] = serviceendpoint.Apply(getServiceEndpointAzureRMResult => getServiceEndpointAzureRMResult.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.GetServiceEndpointAzureRMArgs;
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 sample = AzuredevopsFunctions.getProject(GetProjectArgs.builder()
.name("Sample Project")
.build());
final var serviceendpoint = AzuredevopsFunctions.getServiceEndpointAzureRM(GetServiceEndpointAzureRMArgs.builder()
.projectId(sample.applyValue(getProjectResult -> getProjectResult.id()))
.serviceEndpointId("00000000-0000-0000-0000-000000000000")
.build());
ctx.export("serviceEndpointName", serviceendpoint.applyValue(getServiceEndpointAzureRMResult -> getServiceEndpointAzureRMResult.serviceEndpointName()));
}
}
variables:
sample:
fn::invoke:
Function: azuredevops:getProject
Arguments:
name: Sample Project
serviceendpoint:
fn::invoke:
Function: azuredevops:getServiceEndpointAzureRM
Arguments:
projectId: ${sample.id}
serviceEndpointId: 00000000-0000-0000-0000-000000000000
outputs:
serviceEndpointName: ${serviceendpoint.serviceEndpointName}
By Service Endpoint Name
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const sample = azuredevops.getProject({
name: "Sample Project",
});
const serviceendpoint = sample.then(sample => azuredevops.getServiceEndpointAzureRM({
projectId: sample.id,
serviceEndpointName: "Example-Service-Endpoint",
}));
export const serviceEndpointId = serviceendpoint.then(serviceendpoint => serviceendpoint.id);
import pulumi
import pulumi_azuredevops as azuredevops
sample = azuredevops.get_project(name="Sample Project")
serviceendpoint = azuredevops.get_service_endpoint_azure_rm(project_id=sample.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 {
sample, err := azuredevops.LookupProject(ctx, &azuredevops.LookupProjectArgs{
Name: pulumi.StringRef("Sample Project"),
}, nil)
if err != nil {
return err
}
serviceendpoint, err := azuredevops.LookupServiceEndpointAzureRM(ctx, &azuredevops.LookupServiceEndpointAzureRMArgs{
ProjectId: sample.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 sample = AzureDevOps.GetProject.Invoke(new()
{
Name = "Sample Project",
});
var serviceendpoint = AzureDevOps.GetServiceEndpointAzureRM.Invoke(new()
{
ProjectId = sample.Apply(getProjectResult => getProjectResult.Id),
ServiceEndpointName = "Example-Service-Endpoint",
});
return new Dictionary<string, object?>
{
["serviceEndpointId"] = serviceendpoint.Apply(getServiceEndpointAzureRMResult => getServiceEndpointAzureRMResult.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.GetServiceEndpointAzureRMArgs;
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 sample = AzuredevopsFunctions.getProject(GetProjectArgs.builder()
.name("Sample Project")
.build());
final var serviceendpoint = AzuredevopsFunctions.getServiceEndpointAzureRM(GetServiceEndpointAzureRMArgs.builder()
.projectId(sample.applyValue(getProjectResult -> getProjectResult.id()))
.serviceEndpointName("Example-Service-Endpoint")
.build());
ctx.export("serviceEndpointId", serviceendpoint.applyValue(getServiceEndpointAzureRMResult -> getServiceEndpointAzureRMResult.id()));
}
}
variables:
sample:
fn::invoke:
Function: azuredevops:getProject
Arguments:
name: Sample Project
serviceendpoint:
fn::invoke:
Function: azuredevops:getServiceEndpointAzureRM
Arguments:
projectId: ${sample.id}
serviceEndpointName: Example-Service-Endpoint
outputs:
serviceEndpointId: ${serviceendpoint.id}
Using getServiceEndpointAzureRM
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 getServiceEndpointAzureRM(args: GetServiceEndpointAzureRMArgs, opts?: InvokeOptions): Promise<GetServiceEndpointAzureRMResult>
function getServiceEndpointAzureRMOutput(args: GetServiceEndpointAzureRMOutputArgs, opts?: InvokeOptions): Output<GetServiceEndpointAzureRMResult>
def get_service_endpoint_azure_rm(project_id: Optional[str] = None,
service_endpoint_id: Optional[str] = None,
service_endpoint_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceEndpointAzureRMResult
def get_service_endpoint_azure_rm_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[GetServiceEndpointAzureRMResult]
func LookupServiceEndpointAzureRM(ctx *Context, args *LookupServiceEndpointAzureRMArgs, opts ...InvokeOption) (*LookupServiceEndpointAzureRMResult, error)
func LookupServiceEndpointAzureRMOutput(ctx *Context, args *LookupServiceEndpointAzureRMOutputArgs, opts ...InvokeOption) LookupServiceEndpointAzureRMResultOutput
> Note: This function is named LookupServiceEndpointAzureRM
in the Go SDK.
public static class GetServiceEndpointAzureRM
{
public static Task<GetServiceEndpointAzureRMResult> InvokeAsync(GetServiceEndpointAzureRMArgs args, InvokeOptions? opts = null)
public static Output<GetServiceEndpointAzureRMResult> Invoke(GetServiceEndpointAzureRMInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceEndpointAzureRMResult> getServiceEndpointAzureRM(GetServiceEndpointAzureRMArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azuredevops:index/getServiceEndpointAzureRM:getServiceEndpointAzureRM
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. NOTE: 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: One of either
service_endpoint_id
orservice_endpoint_name
must be specified. NOTE: 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: One of either
service_endpoint_id
orservice_endpoint_name
must be specified. NOTE: 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: One of either
service_endpoint_id
orservice_endpoint_name
must be specified. NOTE: 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: One of either
service_endpoint_id
orservice_endpoint_name
must be specified. NOTE: 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: One of either
service_endpoint_id
orservice_endpoint_name
must be specified. NOTE: When supplyingservice_endpoint_name
, take care to ensure that this is a unique name.
getServiceEndpointAzureRM Result
The following output properties are available:
- Dictionary<string, string>
- Specifies the Authorization Scheme Map.
- Azurerm
Management stringGroup Id - Specified the Management Group ID of the Service Endpoint is target, if available.
- Azurerm
Management stringGroup Name - Specified the Management Group Name of the Service Endpoint target, if available.
- Azurerm
Spn stringTenantid - Specifies the Tenant ID of the Azure targets.
- Azurerm
Subscription stringId - Specifies the Subscription ID of the Service Endpoint target, if available.
- Azurerm
Subscription stringName - Specifies the Subscription Name of the Service Endpoint target, if available.
- Description string
- Specifies the description of the Service Endpoint.
- Environment string
- The Cloud Environment. Possible values are
AzureCloud
,AzureChinaCloud
,AzureUSGovernment
, andAzureGermanCloud
. - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Resource
Group string - Specifies the Resource Group of the Service Endpoint target, if available.
- Service
Endpoint stringAuthentication Scheme - Specifies the authentication scheme of azurerm endpoint, either
WorkloadIdentityFederation
,ManagedServiceIdentity
orServicePrincipal
. - Service
Endpoint stringId - Service
Endpoint stringName - Service
Principal stringId - The Application(Client) ID of the Service Principal.
- Workload
Identity stringFederation Issuer - The issuer if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likehttps://vstoken.dev.azure.com/f66a4bc2-08ad-4ec0-a25e-e769d6b3b294
, where the GUID is the Organization ID of your Azure DevOps Organisation. - Workload
Identity stringFederation Subject - The subject if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likesc://my-organisation/my-project/my-service-connection-name
.
- map[string]string
- Specifies the Authorization Scheme Map.
- Azurerm
Management stringGroup Id - Specified the Management Group ID of the Service Endpoint is target, if available.
- Azurerm
Management stringGroup Name - Specified the Management Group Name of the Service Endpoint target, if available.
- Azurerm
Spn stringTenantid - Specifies the Tenant ID of the Azure targets.
- Azurerm
Subscription stringId - Specifies the Subscription ID of the Service Endpoint target, if available.
- Azurerm
Subscription stringName - Specifies the Subscription Name of the Service Endpoint target, if available.
- Description string
- Specifies the description of the Service Endpoint.
- Environment string
- The Cloud Environment. Possible values are
AzureCloud
,AzureChinaCloud
,AzureUSGovernment
, andAzureGermanCloud
. - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Resource
Group string - Specifies the Resource Group of the Service Endpoint target, if available.
- Service
Endpoint stringAuthentication Scheme - Specifies the authentication scheme of azurerm endpoint, either
WorkloadIdentityFederation
,ManagedServiceIdentity
orServicePrincipal
. - Service
Endpoint stringId - Service
Endpoint stringName - Service
Principal stringId - The Application(Client) ID of the Service Principal.
- Workload
Identity stringFederation Issuer - The issuer if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likehttps://vstoken.dev.azure.com/f66a4bc2-08ad-4ec0-a25e-e769d6b3b294
, where the GUID is the Organization ID of your Azure DevOps Organisation. - Workload
Identity stringFederation Subject - The subject if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likesc://my-organisation/my-project/my-service-connection-name
.
- Map<String,String>
- Specifies the Authorization Scheme Map.
- azurerm
Management StringGroup Id - Specified the Management Group ID of the Service Endpoint is target, if available.
- azurerm
Management StringGroup Name - Specified the Management Group Name of the Service Endpoint target, if available.
- azurerm
Spn StringTenantid - Specifies the Tenant ID of the Azure targets.
- azurerm
Subscription StringId - Specifies the Subscription ID of the Service Endpoint target, if available.
- azurerm
Subscription StringName - Specifies the Subscription Name of the Service Endpoint target, if available.
- description String
- Specifies the description of the Service Endpoint.
- environment String
- The Cloud Environment. Possible values are
AzureCloud
,AzureChinaCloud
,AzureUSGovernment
, andAzureGermanCloud
. - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - resource
Group String - Specifies the Resource Group of the Service Endpoint target, if available.
- service
Endpoint StringAuthentication Scheme - Specifies the authentication scheme of azurerm endpoint, either
WorkloadIdentityFederation
,ManagedServiceIdentity
orServicePrincipal
. - service
Endpoint StringId - service
Endpoint StringName - service
Principal StringId - The Application(Client) ID of the Service Principal.
- workload
Identity StringFederation Issuer - The issuer if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likehttps://vstoken.dev.azure.com/f66a4bc2-08ad-4ec0-a25e-e769d6b3b294
, where the GUID is the Organization ID of your Azure DevOps Organisation. - workload
Identity StringFederation Subject - The subject if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likesc://my-organisation/my-project/my-service-connection-name
.
- {[key: string]: string}
- Specifies the Authorization Scheme Map.
- azurerm
Management stringGroup Id - Specified the Management Group ID of the Service Endpoint is target, if available.
- azurerm
Management stringGroup Name - Specified the Management Group Name of the Service Endpoint target, if available.
- azurerm
Spn stringTenantid - Specifies the Tenant ID of the Azure targets.
- azurerm
Subscription stringId - Specifies the Subscription ID of the Service Endpoint target, if available.
- azurerm
Subscription stringName - Specifies the Subscription Name of the Service Endpoint target, if available.
- description string
- Specifies the description of the Service Endpoint.
- environment string
- The Cloud Environment. Possible values are
AzureCloud
,AzureChinaCloud
,AzureUSGovernment
, andAzureGermanCloud
. - id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - resource
Group string - Specifies the Resource Group of the Service Endpoint target, if available.
- service
Endpoint stringAuthentication Scheme - Specifies the authentication scheme of azurerm endpoint, either
WorkloadIdentityFederation
,ManagedServiceIdentity
orServicePrincipal
. - service
Endpoint stringId - service
Endpoint stringName - service
Principal stringId - The Application(Client) ID of the Service Principal.
- workload
Identity stringFederation Issuer - The issuer if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likehttps://vstoken.dev.azure.com/f66a4bc2-08ad-4ec0-a25e-e769d6b3b294
, where the GUID is the Organization ID of your Azure DevOps Organisation. - workload
Identity stringFederation Subject - The subject if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likesc://my-organisation/my-project/my-service-connection-name
.
- Mapping[str, str]
- Specifies the Authorization Scheme Map.
- azurerm_
management_ strgroup_ id - Specified the Management Group ID of the Service Endpoint is target, if available.
- azurerm_
management_ strgroup_ name - Specified the Management Group Name of the Service Endpoint target, if available.
- azurerm_
spn_ strtenantid - Specifies the Tenant ID of the Azure targets.
- azurerm_
subscription_ strid - Specifies the Subscription ID of the Service Endpoint target, if available.
- azurerm_
subscription_ strname - Specifies the Subscription Name of the Service Endpoint target, if available.
- description str
- Specifies the description of the Service Endpoint.
- environment str
- The Cloud Environment. Possible values are
AzureCloud
,AzureChinaCloud
,AzureUSGovernment
, andAzureGermanCloud
. - id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - resource_
group str - Specifies the Resource Group of the Service Endpoint target, if available.
- service_
endpoint_ strauthentication_ scheme - Specifies the authentication scheme of azurerm endpoint, either
WorkloadIdentityFederation
,ManagedServiceIdentity
orServicePrincipal
. - service_
endpoint_ strid - service_
endpoint_ strname - service_
principal_ strid - The Application(Client) ID of the Service Principal.
- workload_
identity_ strfederation_ issuer - The issuer if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likehttps://vstoken.dev.azure.com/f66a4bc2-08ad-4ec0-a25e-e769d6b3b294
, where the GUID is the Organization ID of your Azure DevOps Organisation. - workload_
identity_ strfederation_ subject - The subject if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likesc://my-organisation/my-project/my-service-connection-name
.
- Map<String>
- Specifies the Authorization Scheme Map.
- azurerm
Management StringGroup Id - Specified the Management Group ID of the Service Endpoint is target, if available.
- azurerm
Management StringGroup Name - Specified the Management Group Name of the Service Endpoint target, if available.
- azurerm
Spn StringTenantid - Specifies the Tenant ID of the Azure targets.
- azurerm
Subscription StringId - Specifies the Subscription ID of the Service Endpoint target, if available.
- azurerm
Subscription StringName - Specifies the Subscription Name of the Service Endpoint target, if available.
- description String
- Specifies the description of the Service Endpoint.
- environment String
- The Cloud Environment. Possible values are
AzureCloud
,AzureChinaCloud
,AzureUSGovernment
, andAzureGermanCloud
. - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - resource
Group String - Specifies the Resource Group of the Service Endpoint target, if available.
- service
Endpoint StringAuthentication Scheme - Specifies the authentication scheme of azurerm endpoint, either
WorkloadIdentityFederation
,ManagedServiceIdentity
orServicePrincipal
. - service
Endpoint StringId - service
Endpoint StringName - service
Principal StringId - The Application(Client) ID of the Service Principal.
- workload
Identity StringFederation Issuer - The issuer if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likehttps://vstoken.dev.azure.com/f66a4bc2-08ad-4ec0-a25e-e769d6b3b294
, where the GUID is the Organization ID of your Azure DevOps Organisation. - workload
Identity StringFederation Subject - The subject if
service_endpoint_authentication_scheme
is set toWorkloadIdentityFederation
. This looks likesc://my-organisation/my-project/my-service-connection-name
.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevops
Terraform Provider.