Show / Hide Table of Contents

Class GetNamespaces

Inheritance
System.Object
GetNamespaces
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.CR
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetNamespaces

Methods

View Source

InvokeAsync(GetNamespacesArgs, InvokeOptions)

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

NOTE: Available in v1.35.0+

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var myNamespaces = Output.Create(AliCloud.CR.GetNamespaces.InvokeAsync(new AliCloud.CR.GetNamespacesArgs
    {
        NameRegex = "my-namespace",
        OutputFile = "my-namespace-json",
    }));
    this.Output = myNamespaces.Apply(myNamespaces => myNamespaces.Namespaces);
}

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

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetNamespacesResult> InvokeAsync(GetNamespacesArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetNamespacesArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetNamespacesResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.