Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi
azuredevops.getDescriptor
Explore with Pulumi AI
Use this data source to access information about an existing Descriptor.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = azuredevops.getDescriptor({
    storageKey: "00000000-0000-0000-0000-000000000000",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.get_descriptor(storage_key="00000000-0000-0000-0000-000000000000")
pulumi.export("id", 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.GetDescriptor(ctx, &azuredevops.GetDescriptorArgs{
			StorageKey: "00000000-0000-0000-0000-000000000000",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() => 
{
    var example = AzureDevOps.GetDescriptor.Invoke(new()
    {
        StorageKey = "00000000-0000-0000-0000-000000000000",
    });
    return new Dictionary<string, object?>
    {
        ["id"] = example.Apply(getDescriptorResult => getDescriptorResult.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.GetDescriptorArgs;
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.getDescriptor(GetDescriptorArgs.builder()
            .storageKey("00000000-0000-0000-0000-000000000000")
            .build());
        ctx.export("id", example.applyValue(getDescriptorResult -> getDescriptorResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azuredevops:getDescriptor
      arguments:
        storageKey: 00000000-0000-0000-0000-000000000000
outputs:
  id: ${example.id}
Relevant Links
Using getDescriptor
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 getDescriptor(args: GetDescriptorArgs, opts?: InvokeOptions): Promise<GetDescriptorResult>
function getDescriptorOutput(args: GetDescriptorOutputArgs, opts?: InvokeOptions): Output<GetDescriptorResult>def get_descriptor(storage_key: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetDescriptorResult
def get_descriptor_output(storage_key: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetDescriptorResult]func GetDescriptor(ctx *Context, args *GetDescriptorArgs, opts ...InvokeOption) (*GetDescriptorResult, error)
func GetDescriptorOutput(ctx *Context, args *GetDescriptorOutputArgs, opts ...InvokeOption) GetDescriptorResultOutput> Note: This function is named GetDescriptor in the Go SDK.
public static class GetDescriptor 
{
    public static Task<GetDescriptorResult> InvokeAsync(GetDescriptorArgs args, InvokeOptions? opts = null)
    public static Output<GetDescriptorResult> Invoke(GetDescriptorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDescriptorResult> getDescriptor(GetDescriptorArgs args, InvokeOptions options)
public static Output<GetDescriptorResult> getDescriptor(GetDescriptorArgs args, InvokeOptions options)
fn::invoke:
  function: azuredevops:index/getDescriptor:getDescriptor
  arguments:
    # arguments dictionaryThe following arguments are supported:
- StorageKey string
- The ID of the resource(user,group,scope, etc.) that will be resolved to a descriptor.
- StorageKey string
- The ID of the resource(user,group,scope, etc.) that will be resolved to a descriptor.
- storageKey String
- The ID of the resource(user,group,scope, etc.) that will be resolved to a descriptor.
- storageKey string
- The ID of the resource(user,group,scope, etc.) that will be resolved to a descriptor.
- storage_key str
- The ID of the resource(user,group,scope, etc.) that will be resolved to a descriptor.
- storageKey String
- The ID of the resource(user,group,scope, etc.) that will be resolved to a descriptor.
getDescriptor Result
The following output properties are available:
- Descriptor string
- The descriptor of the storage key.
- Id string
- The provider-assigned unique ID for this managed resource.
- StorageKey string
- Descriptor string
- The descriptor of the storage key.
- Id string
- The provider-assigned unique ID for this managed resource.
- StorageKey string
- descriptor String
- The descriptor of the storage key.
- id String
- The provider-assigned unique ID for this managed resource.
- storageKey String
- descriptor string
- The descriptor of the storage key.
- id string
- The provider-assigned unique ID for this managed resource.
- storageKey string
- descriptor str
- The descriptor of the storage key.
- id str
- The provider-assigned unique ID for this managed resource.
- storage_key str
- descriptor String
- The descriptor of the storage key.
- id String
- The provider-assigned unique ID for this managed resource.
- storageKey String
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azuredevopsTerraform Provider.