1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cs
  5. getRegistryEnterpriseInstances
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cs.getRegistryEnterpriseInstances

Explore with Pulumi AI

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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
variables:
  # Declare the data source
  myInstances:
    fn::invoke:
      function: alicloud:cs:getRegistryEnterpriseInstances
      arguments:
        nameRegex: my-instances
        outputFile: my-instances-json
outputs:
  output: ${myInstances.instances}
Copy

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>
Copy
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]
Copy
func GetRegistryEnterpriseInstances(ctx *Context, args *GetRegistryEnterpriseInstancesArgs, opts ...InvokeOption) (*GetRegistryEnterpriseInstancesResult, error)
func GetRegistryEnterpriseInstancesOutput(ctx *Context, args *GetRegistryEnterpriseInstancesOutputArgs, opts ...InvokeOption) GetRegistryEnterpriseInstancesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRegistryEnterpriseInstancesResult> getRegistryEnterpriseInstances(GetRegistryEnterpriseInstancesArgs args, InvokeOptions options)
public static Output<GetRegistryEnterpriseInstancesResult> getRegistryEnterpriseInstances(GetRegistryEnterpriseInstancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cs/getRegistryEnterpriseInstances:getRegistryEnterpriseInstances
  arguments:
    # arguments dictionary
Copy

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