Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

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; }
}
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 {
		myNamespaces, err := cs.GetRegistryEnterpriseNamespaces(ctx, &cs.GetRegistryEnterpriseNamespacesArgs{
			InstanceId: "cri-xxx",
			NameRegex:  pulumi.StringRef("my-namespace"),
			OutputFile: pulumi.StringRef("my-namespace-json"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("output", myNamespaces.Namespaces)
		return nil
	})
}

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",
}));

export const output = myNamespaces.namespaces;

Coming soon!

Using getRegistryEnterpriseNamespaces

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 getRegistryEnterpriseNamespaces(args: GetRegistryEnterpriseNamespacesArgs, opts?: InvokeOptions): Promise<GetRegistryEnterpriseNamespacesResult>
function getRegistryEnterpriseNamespacesOutput(args: GetRegistryEnterpriseNamespacesOutputArgs, opts?: InvokeOptions): Output<GetRegistryEnterpriseNamespacesResult>
def get_registry_enterprise_namespaces(ids: Optional[Sequence[str]] = None,
                                       instance_id: Optional[str] = None,
                                       name_regex: Optional[str] = None,
                                       output_file: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetRegistryEnterpriseNamespacesResult
def get_registry_enterprise_namespaces_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       instance_id: Optional[pulumi.Input[str]] = None,
                                       name_regex: Optional[pulumi.Input[str]] = None,
                                       output_file: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetRegistryEnterpriseNamespacesResult]
func GetRegistryEnterpriseNamespaces(ctx *Context, args *GetRegistryEnterpriseNamespacesArgs, opts ...InvokeOption) (*GetRegistryEnterpriseNamespacesResult, error)
func GetRegistryEnterpriseNamespacesOutput(ctx *Context, args *GetRegistryEnterpriseNamespacesOutputArgs, opts ...InvokeOption) GetRegistryEnterpriseNamespacesResultOutput

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

public static class GetRegistryEnterpriseNamespaces 
{
    public static Task<GetRegistryEnterpriseNamespacesResult> InvokeAsync(GetRegistryEnterpriseNamespacesArgs args, InvokeOptions? opts = null)
    public static Output<GetRegistryEnterpriseNamespacesResult> Invoke(GetRegistryEnterpriseNamespacesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegistryEnterpriseNamespacesResult> getRegistryEnterpriseNamespaces(GetRegistryEnterpriseNamespacesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:cs/getRegistryEnterpriseNamespaces:getRegistryEnterpriseNamespaces
  Arguments:
    # Arguments dictionary

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 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
instance_id str

ID of Container Registry Enterprise Edition instance.

ids Sequence[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
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

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 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<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 Sequence[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 Sequence[str]

A list of namespace names.

namespaces Sequence[GetRegistryEnterpriseNamespacesNamespace]

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

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 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<Property Map>

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

nameRegex String
outputFile String

Supporting Types

GetRegistryEnterpriseNamespacesNamespace

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.

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.

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.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.