GetRegistryEnterpriseNamespaces

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

NOTE: Available in v1.86.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var myNamespaces = Output.Create(AliCloud.CS.GetRegistryEnterpriseNamespaces.InvokeAsync(new AliCloud.CS.GetRegistryEnterpriseNamespacesArgs
        {
            InstanceId = "cri-xxx",
            NameRegex = "my-namespace",
            OutputFile = "my-namespace-json",
        }));
        this.Output = myNamespaces.Apply(myNamespaces => myNamespaces.Namespaces);
    }

    [Output("output")]
    public Output<string> Output { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

my_namespaces = alicloud.cs.get_registry_enterprise_namespaces(instance_id="cri-xxx",
    name_regex="my-namespace",
    output_file="my-namespace-json")
pulumi.export("output", my_namespaces.namespaces)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// Declare the data source
const myNamespaces = pulumi.output(alicloud.cs.getRegistryEnterpriseNamespaces({
    instanceId: "cri-xxx",
    nameRegex: "my-namespace",
    outputFile: "my-namespace-json",
}, { async: true }));

export const output = myNamespaces.namespaces;

Using GetRegistryEnterpriseNamespaces

function getRegistryEnterpriseNamespaces(args: GetRegistryEnterpriseNamespacesArgs, opts?: InvokeOptions): Promise<GetRegistryEnterpriseNamespacesResult>
function  get_registry_enterprise_namespaces(ids=None, instance_id=None, name_regex=None, output_file=None, opts=None)
func GetRegistryEnterpriseNamespaces(ctx *Context, args *GetRegistryEnterpriseNamespacesArgs, opts ...InvokeOption) (*GetRegistryEnterpriseNamespacesResult, error)
public static class GetRegistryEnterpriseNamespaces {
    public static Task<GetRegistryEnterpriseNamespacesResult> InvokeAsync(GetRegistryEnterpriseNamespacesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

InstanceId string

ID of Container Registry Enterprise Edition instance.

Ids List<string>

A list of ids to filter results by namespace id.

NameRegex string

A regex string to filter results by namespace name.

OutputFile string
InstanceId string

ID of Container Registry Enterprise Edition instance.

Ids []string

A list of ids to filter results by namespace id.

NameRegex string

A regex string to filter results by namespace name.

OutputFile string
instanceId string

ID of Container Registry Enterprise Edition instance.

ids string[]

A list of ids to filter results by namespace id.

nameRegex string

A regex string to filter results by namespace name.

outputFile string
instance_id str

ID of Container Registry Enterprise Edition instance.

ids List[str]

A list of ids to filter results by namespace id.

name_regex str

A regex string to filter results by namespace name.

output_file str

GetRegistryEnterpriseNamespaces 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 namespaces. Its element is a namespace uuid.

InstanceId string

ID of Container Registry Enterprise Edition instance.

Names List<string>

A list of namespace names.

Namespaces List<Pulumi.AliCloud.CS.Outputs.GetRegistryEnterpriseNamespacesNamespace>

A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:

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 namespaces. Its element is a namespace uuid.

InstanceId string

ID of Container Registry Enterprise Edition instance.

Names []string

A list of namespace names.

Namespaces []GetRegistryEnterpriseNamespacesNamespace

A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:

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 namespaces. Its element is a namespace uuid.

instanceId string

ID of Container Registry Enterprise Edition instance.

names string[]

A list of namespace names.

namespaces GetRegistryEnterpriseNamespacesNamespace[]

A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:

nameRegex string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of matched Container Registry Enterprise Edition namespaces. Its element is a namespace uuid.

instance_id str

ID of Container Registry Enterprise Edition instance.

names List[str]

A list of namespace names.

namespaces List[GetRegistryEnterpriseNamespacesNamespace]

A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:

name_regex str
output_file str

Supporting Types

GetRegistryEnterpriseNamespacesNamespace

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

AutoCreate bool

Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.

DefaultVisibility string

PUBLIC or PRIVATE, default repository visibility in this namespace.

Id string

ID of Container Registry Enterprise Edition namespace.

InstanceId string

ID of Container Registry Enterprise Edition instance.

Name string

Name of Container Registry Enterprise Edition namespace.

AutoCreate bool

Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.

DefaultVisibility string

PUBLIC or PRIVATE, default repository visibility in this namespace.

Id string

ID of Container Registry Enterprise Edition namespace.

InstanceId string

ID of Container Registry Enterprise Edition instance.

Name string

Name of Container Registry Enterprise Edition namespace.

autoCreate boolean

Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.

defaultVisibility string

PUBLIC or PRIVATE, default repository visibility in this namespace.

id string

ID of Container Registry Enterprise Edition namespace.

instanceId string

ID of Container Registry Enterprise Edition instance.

name string

Name of Container Registry Enterprise Edition namespace.

auto_create bool

Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.

default_visibility str

PUBLIC or PRIVATE, default repository visibility in this namespace.

id str

ID of Container Registry Enterprise Edition namespace.

instance_id str

ID of Container Registry Enterprise Edition instance.

name str

Name of Container Registry Enterprise Edition namespace.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.