Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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);
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:
- Enable
Details 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.
- Name
Regex string - A regex string to filter results by instance name.
- Output
File 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 []string
- A list of ids to filter results by instance id.
- Name
Regex string - A regex string to filter results by instance name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- enable
Details 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.
- name
Regex String - A regex string to filter results by instance name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- enable
Details 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.
- name
Regex string - A regex string to filter results by instance name.
- output
File 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
).
- enable
Details 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.
- name
Regex String - A regex string to filter results by instance name.
- output
File 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.
Ali Cloud. CS. Outputs. Get Registry Enterprise Instances Instance> - A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
- Names List<string>
- A list of instance names.
- Enable
Details bool - Name
Regex string - Output
File 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
[]Get
Registry Enterprise Instances Instance - A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
- Names []string
- A list of instance names.
- Enable
Details bool - Name
Regex string - Output
File 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<Get
Registry Enterprise Instances Instance> - A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
- names List<String>
- A list of instance names.
- enable
Details Boolean - name
Regex String - output
File 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
Get
Registry Enterprise Instances Instance[] - A list of matched Container Registry Enterprise Editioninstances. Each element contains the following attributes:
- names string[]
- A list of instance names.
- enable
Details boolean - name
Regex string - output
File 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[Get
Registry Enterprise Instances Instance] - 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.
- enable
Details Boolean - name
Regex String - output
File String
Supporting Types
GetRegistryEnterpriseInstancesInstance
- 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.
- Namespace
Quota string - The max number of namespaces that an instance can create.
- Namespace
Usage string - The number of namespaces already created.
- Public
Endpoints List<string> - A list of domains for access on internet network.
- Region string
- Region of Container Registry Enterprise Edition instance.
- Repo
Quota string - The max number of repos that an instance can create.
- Repo
Usage string - The number of repos already created.
- Specification string
- Specification of Container Registry Enterprise Edition instance.
- Temp
Username string - The username that was used to log on to the registry.
- Vpc
Endpoints List<string> - A list of domains for access on vpc network.
- 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.
- Namespace
Quota string - The max number of namespaces that an instance can create.
- Namespace
Usage string - The number of namespaces already created.
- Public
Endpoints []string - A list of domains for access on internet network.
- Region string
- Region of Container Registry Enterprise Edition instance.
- Repo
Quota string - The max number of repos that an instance can create.
- Repo
Usage string - The number of repos already created.
- Specification string
- Specification of Container Registry Enterprise Edition instance.
- Temp
Username string - The username that was used to log on to the registry.
- Vpc
Endpoints []string - A list of domains for access on vpc network.
- 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.
- namespace
Quota String - The max number of namespaces that an instance can create.
- namespace
Usage String - The number of namespaces already created.
- public
Endpoints List<String> - A list of domains for access on internet network.
- region String
- Region of Container Registry Enterprise Edition instance.
- repo
Quota String - The max number of repos that an instance can create.
- repo
Usage String - The number of repos already created.
- specification String
- Specification of Container Registry Enterprise Edition instance.
- temp
Username String - The username that was used to log on to the registry.
- vpc
Endpoints List<String> - A list of domains for access on vpc network.
- 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.
- namespace
Quota string - The max number of namespaces that an instance can create.
- namespace
Usage string - The number of namespaces already created.
- public
Endpoints string[] - A list of domains for access on internet network.
- region string
- Region of Container Registry Enterprise Edition instance.
- repo
Quota string - The max number of repos that an instance can create.
- repo
Usage string - The number of repos already created.
- specification string
- Specification of Container Registry Enterprise Edition instance.
- temp
Username string - The username that was used to log on to the registry.
- vpc
Endpoints string[] - A list of domains for access on vpc network.
- 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.
- 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.
- namespace
Quota String - The max number of namespaces that an instance can create.
- namespace
Usage String - The number of namespaces already created.
- public
Endpoints List<String> - A list of domains for access on internet network.
- region String
- Region of Container Registry Enterprise Edition instance.
- repo
Quota String - The max number of repos that an instance can create.
- repo
Usage String - The number of repos already created.
- specification String
- Specification of Container Registry Enterprise Edition instance.
- temp
Username String - The username that was used to log on to the registry.
- vpc
Endpoints 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.