GetNamespaces
This data source provides a list Container Registry namespaces on Alibaba Cloud.
NOTE: Available in v1.35.0+
Example Usage
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; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
my_namespaces = alicloud.cr.get_namespaces(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.cr.getNamespaces({
nameRegex: "my-namespace",
outputFile: "my-namespace-json",
}, { async: true }));
export const output = myNamespaces.namespaces;Using GetNamespaces
function getNamespaces(args: GetNamespacesArgs, opts?: InvokeOptions): Promise<GetNamespacesResult>function get_namespaces(name_regex=None, output_file=None, opts=None)func GetNamespaces(ctx *Context, args *GetNamespacesArgs, opts ...InvokeOption) (*GetNamespacesResult, error)public static class GetNamespaces {
public static Task<GetNamespacesResult> InvokeAsync(GetNamespacesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name
Regex string A regex string to filter results by namespace name.
- Output
File string
- Name
Regex string A regex string to filter results by namespace name.
- Output
File string
- name
Regex string A regex string to filter results by namespace name.
- output
File string
- name_
regex str A regex string to filter results by namespace name.
- output_
file str
GetNamespaces 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 namespaces. Its element is a namespace name.
- Names List<string>
A list of namespace names.
- Namespaces
List<Pulumi.
Ali Cloud. CR. Outputs. Get Namespaces Namespace> A list of matched Container Registry namespaces. Each element contains the following attributes:
- 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 namespaces. Its element is a namespace name.
- Names []string
A list of namespace names.
- Namespaces
[]Get
Namespaces Namespace A list of matched Container Registry namespaces. Each element contains the following attributes:
- 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 namespaces. Its element is a namespace name.
- names string[]
A list of namespace names.
- namespaces
Get
Namespaces Namespace[] A list of matched Container Registry namespaces. Each element contains the following attributes:
- name
Regex string - output
File string
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of matched Container Registry namespaces. Its element is a namespace name.
- names List[str]
A list of namespace names.
- namespaces
List[Get
Namespaces Namespace] A list of matched Container Registry namespaces. Each element contains the following attributes:
- name_
regex str - output_
file str
Supporting Types
GetNamespacesNamespace
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- 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 string PUBLICorPRIVATE, default repository visibility in this namespace.- Name string
Name of Container Registry 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 string PUBLICorPRIVATE, default repository visibility in this namespace.- Name string
Name of Container Registry namespace.
- auto
Create 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.
- default
Visibility string PUBLICorPRIVATE, default repository visibility in this namespace.- name string
Name of Container Registry 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 PUBLICorPRIVATE, default repository visibility in this namespace.- name str
Name of Container Registry namespace.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.