1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cs
  5. getRegistryEnterpriseInstances
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cs.getRegistryEnterpriseInstances

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    This data source provides a list Container Registry Enterprise Edition instances on Alibaba Cloud.

    NOTE: Available in v1.86.0+

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    // Declare the data source
    const myInstances = alicloud.cs.getRegistryEnterpriseInstances({
        nameRegex: "my-instances",
        outputFile: "my-instances-json",
    });
    export const output = myInstances.then(myInstances => myInstances.instances);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    # Declare the data source
    my_instances = alicloud.cs.get_registry_enterprise_instances(name_regex="my-instances",
        output_file="my-instances-json")
    pulumi.export("output", my_instances.instances)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Declare the data source
    		myInstances, err := cs.GetRegistryEnterpriseInstances(ctx, &cs.GetRegistryEnterpriseInstancesArgs{
    			NameRegex:  pulumi.StringRef("my-instances"),
    			OutputFile: pulumi.StringRef("my-instances-json"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("output", myInstances.Instances)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        // Declare the data source
        var myInstances = AliCloud.CS.GetRegistryEnterpriseInstances.Invoke(new()
        {
            NameRegex = "my-instances",
            OutputFile = "my-instances-json",
        });
    
        return new Dictionary<string, object?>
        {
            ["output"] = myInstances.Apply(getRegistryEnterpriseInstancesResult => getRegistryEnterpriseInstancesResult.Instances),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cs.CsFunctions;
    import com.pulumi.alicloud.cs.inputs.GetRegistryEnterpriseInstancesArgs;
    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) {
            // Declare the data source
            final var myInstances = CsFunctions.getRegistryEnterpriseInstances(GetRegistryEnterpriseInstancesArgs.builder()
                .nameRegex("my-instances")
                .outputFile("my-instances-json")
                .build());
    
            ctx.export("output", myInstances.applyValue(getRegistryEnterpriseInstancesResult -> getRegistryEnterpriseInstancesResult.instances()));
        }
    }
    
    variables:
      # Declare the data source
      myInstances:
        fn::invoke:
          Function: alicloud:cs:getRegistryEnterpriseInstances
          Arguments:
            nameRegex: my-instances
            outputFile: my-instances-json
    outputs:
      output: ${myInstances.instances}
    

    Using getRegistryEnterpriseInstances

    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 getRegistryEnterpriseInstances(args: GetRegistryEnterpriseInstancesArgs, opts?: InvokeOptions): Promise<GetRegistryEnterpriseInstancesResult>
    function getRegistryEnterpriseInstancesOutput(args: GetRegistryEnterpriseInstancesOutputArgs, opts?: InvokeOptions): Output<GetRegistryEnterpriseInstancesResult>
    def get_registry_enterprise_instances(enable_details: Optional[bool] = None,
                                          ids: Optional[Sequence[str]] = None,
                                          name_regex: Optional[str] = None,
                                          output_file: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetRegistryEnterpriseInstancesResult
    def get_registry_enterprise_instances_output(enable_details: Optional[pulumi.Input[bool]] = None,
                                          ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                          name_regex: Optional[pulumi.Input[str]] = None,
                                          output_file: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetRegistryEnterpriseInstancesResult]
    func GetRegistryEnterpriseInstances(ctx *Context, args *GetRegistryEnterpriseInstancesArgs, opts ...InvokeOption) (*GetRegistryEnterpriseInstancesResult, error)
    func GetRegistryEnterpriseInstancesOutput(ctx *Context, args *GetRegistryEnterpriseInstancesOutputArgs, opts ...InvokeOption) GetRegistryEnterpriseInstancesResultOutput

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

    public static class GetRegistryEnterpriseInstances 
    {
        public static Task<GetRegistryEnterpriseInstancesResult> InvokeAsync(GetRegistryEnterpriseInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetRegistryEnterpriseInstancesResult> Invoke(GetRegistryEnterpriseInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegistryEnterpriseInstancesResult> getRegistryEnterpriseInstances(GetRegistryEnterpriseInstancesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cs/getRegistryEnterpriseInstances:getRegistryEnterpriseInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EnableDetails bool
    Default to true. Set it to true can output instance authorization token.
    Ids List<string>
    A list of ids to filter results by instance id.
    NameRegex string
    A regex string to filter results by instance name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    EnableDetails bool
    Default to true. Set it to true can output instance authorization token.
    Ids []string
    A list of ids to filter results by instance id.
    NameRegex string
    A regex string to filter results by instance name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    enableDetails Boolean
    Default to true. Set it to true can output instance authorization token.
    ids List<String>
    A list of ids to filter results by instance id.
    nameRegex String
    A regex string to filter results by instance name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    enableDetails boolean
    Default to true. Set it to true can output instance authorization token.
    ids string[]
    A list of ids to filter results by instance id.
    nameRegex string
    A regex string to filter results by instance name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    enable_details bool
    Default to true. Set it to true can output instance authorization token.
    ids Sequence[str]
    A list of ids to filter results by instance id.
    name_regex str
    A regex string to filter results by instance name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    enableDetails Boolean
    Default to true. Set it to true can output instance authorization token.
    ids List<String>
    A list of ids to filter results by instance id.
    nameRegex String
    A regex string to filter results by instance name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getRegistryEnterpriseInstances Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of matched Container Registry Enterprise Edition instances. Its element is an instance uuid.
    Instances List<Pulumi.AliCloud.CS.Outputs.GetRegistryEnterpriseInstancesInstance>
    A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
    Names List<string>
    A list of instance names.
    EnableDetails bool
    NameRegex string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of matched Container Registry Enterprise Edition instances. Its element is an instance uuid.
    Instances []GetRegistryEnterpriseInstancesInstance
    A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
    Names []string
    A list of instance names.
    EnableDetails bool
    NameRegex string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of matched Container Registry Enterprise Edition instances. Its element is an instance uuid.
    instances List<GetRegistryEnterpriseInstancesInstance>
    A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
    names List<String>
    A list of instance names.
    enableDetails Boolean
    nameRegex String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of matched Container Registry Enterprise Edition instances. Its element is an instance uuid.
    instances GetRegistryEnterpriseInstancesInstance[]
    A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
    names string[]
    A list of instance names.
    enableDetails boolean
    nameRegex string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of matched Container Registry Enterprise Edition instances. Its element is an instance uuid.
    instances Sequence[GetRegistryEnterpriseInstancesInstance]
    A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
    names Sequence[str]
    A list of instance names.
    enable_details bool
    name_regex str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of matched Container Registry Enterprise Edition instances. Its element is an instance uuid.
    instances List<Property Map>
    A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
    names List<String>
    A list of instance names.
    enableDetails Boolean
    nameRegex String
    outputFile String

    Supporting Types

    GetRegistryEnterpriseInstancesInstance

    AuthorizationToken string
    The password that was used to log on to the registry.
    Id string
    ID of Container Registry Enterprise Edition instance.
    Name string
    Name of Container Registry Enterprise Edition instance.
    NamespaceQuota string
    The max number of namespaces that an instance can create.
    NamespaceUsage string
    The number of namespaces already created.
    PublicEndpoints List<string>
    A list of domains for access on internet network.
    Region string
    Region of Container Registry Enterprise Edition instance.
    RepoQuota string
    The max number of repos that an instance can create.
    RepoUsage string
    The number of repos already created.
    Specification string
    Specification of Container Registry Enterprise Edition instance.
    TempUsername string
    The username that was used to log on to the registry.
    VpcEndpoints List<string>
    A list of domains for access on vpc network.
    AuthorizationToken string
    The password that was used to log on to the registry.
    Id string
    ID of Container Registry Enterprise Edition instance.
    Name string
    Name of Container Registry Enterprise Edition instance.
    NamespaceQuota string
    The max number of namespaces that an instance can create.
    NamespaceUsage string
    The number of namespaces already created.
    PublicEndpoints []string
    A list of domains for access on internet network.
    Region string
    Region of Container Registry Enterprise Edition instance.
    RepoQuota string
    The max number of repos that an instance can create.
    RepoUsage string
    The number of repos already created.
    Specification string
    Specification of Container Registry Enterprise Edition instance.
    TempUsername string
    The username that was used to log on to the registry.
    VpcEndpoints []string
    A list of domains for access on vpc network.
    authorizationToken String
    The password that was used to log on to the registry.
    id String
    ID of Container Registry Enterprise Edition instance.
    name String
    Name of Container Registry Enterprise Edition instance.
    namespaceQuota String
    The max number of namespaces that an instance can create.
    namespaceUsage String
    The number of namespaces already created.
    publicEndpoints List<String>
    A list of domains for access on internet network.
    region String
    Region of Container Registry Enterprise Edition instance.
    repoQuota String
    The max number of repos that an instance can create.
    repoUsage String
    The number of repos already created.
    specification String
    Specification of Container Registry Enterprise Edition instance.
    tempUsername String
    The username that was used to log on to the registry.
    vpcEndpoints List<String>
    A list of domains for access on vpc network.
    authorizationToken string
    The password that was used to log on to the registry.
    id string
    ID of Container Registry Enterprise Edition instance.
    name string
    Name of Container Registry Enterprise Edition instance.
    namespaceQuota string
    The max number of namespaces that an instance can create.
    namespaceUsage string
    The number of namespaces already created.
    publicEndpoints string[]
    A list of domains for access on internet network.
    region string
    Region of Container Registry Enterprise Edition instance.
    repoQuota string
    The max number of repos that an instance can create.
    repoUsage string
    The number of repos already created.
    specification string
    Specification of Container Registry Enterprise Edition instance.
    tempUsername string
    The username that was used to log on to the registry.
    vpcEndpoints string[]
    A list of domains for access on vpc network.
    authorization_token str
    The password that was used to log on to the registry.
    id str
    ID of Container Registry Enterprise Edition instance.
    name str
    Name of Container Registry Enterprise Edition instance.
    namespace_quota str
    The max number of namespaces that an instance can create.
    namespace_usage str
    The number of namespaces already created.
    public_endpoints Sequence[str]
    A list of domains for access on internet network.
    region str
    Region of Container Registry Enterprise Edition instance.
    repo_quota str
    The max number of repos that an instance can create.
    repo_usage str
    The number of repos already created.
    specification str
    Specification of Container Registry Enterprise Edition instance.
    temp_username str
    The username that was used to log on to the registry.
    vpc_endpoints Sequence[str]
    A list of domains for access on vpc network.
    authorizationToken String
    The password that was used to log on to the registry.
    id String
    ID of Container Registry Enterprise Edition instance.
    name String
    Name of Container Registry Enterprise Edition instance.
    namespaceQuota String
    The max number of namespaces that an instance can create.
    namespaceUsage String
    The number of namespaces already created.
    publicEndpoints List<String>
    A list of domains for access on internet network.
    region String
    Region of Container Registry Enterprise Edition instance.
    repoQuota String
    The max number of repos that an instance can create.
    repoUsage String
    The number of repos already created.
    specification String
    Specification of Container Registry Enterprise Edition instance.
    tempUsername String
    The username that was used to log on to the registry.
    vpcEndpoints List<String>
    A list of domains for access on vpc network.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi