1. Packages
  2. AzureDevOps
  3. API Docs
  4. Core
  5. getClientConfig
Azure DevOps v2.7.0 published on Monday, Mar 27, 2023 by Pulumi

azuredevops.Core.getClientConfig

Explore with Pulumi AI

azuredevops logo
Azure DevOps v2.7.0 published on Monday, Mar 27, 2023 by Pulumi

    Deprecated:

    azuredevops.core.getClientConfig has been deprecated in favor of azuredevops.getClientConfig

    Use this data source to access information about the Azure DevOps organization configured for the provider.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AzureDevOps.GetClientConfig.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["orgUrl"] = example.Apply(getClientConfigResult => getClientConfigResult.OrganizationUrl),
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := azuredevops.GetClientConfig(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("orgUrl", example.OrganizationUrl)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azuredevops.AzuredevopsFunctions;
    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.getClientConfig();
    
            ctx.export("orgUrl", example.applyValue(getClientConfigResult -> getClientConfigResult.organizationUrl()));
        }
    }
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example = azuredevops.get_client_config()
    pulumi.export("orgUrl", example.organization_url)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const example = azuredevops.getClientConfig({});
    export const orgUrl = example.then(example => example.organizationUrl);
    
    variables:
      example:
        fn::invoke:
          Function: azuredevops:getClientConfig
          Arguments: {}
    outputs:
      orgUrl: ${example.organizationUrl}
    

    Using getClientConfig

    function getClientConfig(opts?: InvokeOptions): Promise<GetClientConfigResult>
    def get_client_config(opts: Optional[InvokeOptions] = None) -> GetClientConfigResult
    func GetClientConfig(ctx *Context, opts ...InvokeOption) (*GetClientConfigResult, error)

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

    public static class GetClientConfig 
    {
        public static Task<GetClientConfigResult> InvokeAsync(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClientConfigResult> getClientConfig(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azuredevops:Core/getClientConfig:getClientConfig
      arguments:
        # arguments dictionary

    getClientConfig Result

    The following output properties are available:

    Id string

    The provider-assigned unique ID for this managed resource.

    OrganizationUrl string
    Id string

    The provider-assigned unique ID for this managed resource.

    OrganizationUrl string
    id String

    The provider-assigned unique ID for this managed resource.

    organizationUrl String
    id string

    The provider-assigned unique ID for this managed resource.

    organizationUrl string
    id str

    The provider-assigned unique ID for this managed resource.

    organization_url str
    id String

    The provider-assigned unique ID for this managed resource.

    organizationUrl 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 v2.7.0 published on Monday, Mar 27, 2023 by Pulumi