This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.

cr

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-alicloud repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-alicloud repo.

class pulumi_alicloud.cr.AwaitableGetNamespacesResult(id=None, ids=None, name_regex=None, names=None, namespaces=None, output_file=None)
class pulumi_alicloud.cr.AwaitableGetReposResult(enable_details=None, id=None, ids=None, name_regex=None, names=None, namespace=None, output_file=None, repos=None)
class pulumi_alicloud.cr.GetNamespacesResult(id=None, ids=None, name_regex=None, names=None, namespaces=None, output_file=None)

A collection of values returned by getNamespaces.

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of matched Container Registry namespaces. Its element is a namespace name.

names = None

A list of namespace names.

namespaces = None

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

class pulumi_alicloud.cr.GetReposResult(enable_details=None, id=None, ids=None, name_regex=None, names=None, namespace=None, output_file=None, repos=None)

A collection of values returned by getRepos.

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of matched Container Registry Repositories. Its element is set to names.

names = None

A list of repository names.

namespace = None

Name of container registry namespace where repo is located.

repos = None

A list of matched Container Registry Namespaces. Each element contains the following attributes:

class pulumi_alicloud.cr.Namespace(resource_name, opts=None, auto_create=None, default_visibility=None, name=None, __props__=None, __name__=None, __opts__=None)

This resource will help you to manager Container Registry namespaces.

NOTE: Available in v1.34.0+.

NOTE: You need to set your registry password in Container Registry console before use this resource.

import pulumi
import pulumi_alicloud as alicloud

my_namespace = alicloud.cr.Namespace("my-namespace",
    auto_create=False,
    default_visibility="PUBLIC")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • auto_create (pulumi.Input[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 (pulumi.Input[str]) – PUBLIC or PRIVATE, default repository visibility in this namespace.

  • name (pulumi.Input[str]) – Name of Container Registry namespace.

auto_create: pulumi.Output[bool] = None

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: pulumi.Output[str] = None

PUBLIC or PRIVATE, default repository visibility in this namespace.

name: pulumi.Output[str] = None

Name of Container Registry namespace.

static get(resource_name, id, opts=None, auto_create=None, default_visibility=None, name=None)

Get an existing Namespace resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • auto_create (pulumi.Input[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 (pulumi.Input[str]) – PUBLIC or PRIVATE, default repository visibility in this namespace.

  • name (pulumi.Input[str]) – Name of Container Registry namespace.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.cr.Repo(resource_name, opts=None, detail=None, name=None, namespace=None, repo_type=None, summary=None, __props__=None, __name__=None, __opts__=None)

This resource will help you to manager Container Registry repositories.

NOTE: Available in v1.35.0+.

NOTE: You need to set your registry password in Container Registry console before use this resource.

import pulumi
import pulumi_alicloud as alicloud

my_namespace = alicloud.cr.Namespace("my-namespace",
    auto_create=False,
    default_visibility="PUBLIC")
my_repo = alicloud.cr.Repo("my-repo",
    detail="this is a public repo",
    namespace=my_namespace.name,
    repo_type="PUBLIC",
    summary="this is summary of my new repo")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • detail (pulumi.Input[str]) – The repository specific information. MarkDown format is supported, and the length limit is 2000.

  • name (pulumi.Input[str]) – Name of container registry repository.

  • namespace (pulumi.Input[str]) – Name of container registry namespace where repository is located.

  • repo_type (pulumi.Input[str]) – PUBLIC or PRIVATE, repo’s visibility.

  • summary (pulumi.Input[str]) – The repository general information. It can contain 1 to 80 characters.

detail: pulumi.Output[str] = None

The repository specific information. MarkDown format is supported, and the length limit is 2000.

domain_list: pulumi.Output[dict] = None

The repository domain list.

  • internal (str) - Domain of internal endpoint, only in some regions.

  • public (str) - Domain of public endpoint.

  • vpc (str) - Domain of vpc endpoint.

name: pulumi.Output[str] = None

Name of container registry repository.

namespace: pulumi.Output[str] = None

Name of container registry namespace where repository is located.

repo_type: pulumi.Output[str] = None

PUBLIC or PRIVATE, repo’s visibility.

summary: pulumi.Output[str] = None

The repository general information. It can contain 1 to 80 characters.

static get(resource_name, id, opts=None, detail=None, domain_list=None, name=None, namespace=None, repo_type=None, summary=None)

Get an existing Repo resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • detail (pulumi.Input[str]) – The repository specific information. MarkDown format is supported, and the length limit is 2000.

  • domain_list (pulumi.Input[dict]) – The repository domain list.

  • name (pulumi.Input[str]) – Name of container registry repository.

  • namespace (pulumi.Input[str]) – Name of container registry namespace where repository is located.

  • repo_type (pulumi.Input[str]) – PUBLIC or PRIVATE, repo’s visibility.

  • summary (pulumi.Input[str]) – The repository general information. It can contain 1 to 80 characters.

The domain_list object supports the following:

  • internal (pulumi.Input[str]) - Domain of internal endpoint, only in some regions.

  • public (pulumi.Input[str]) - Domain of public endpoint.

  • vpc (pulumi.Input[str]) - Domain of vpc endpoint.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_alicloud.cr.get_namespaces(name_regex=None, output_file=None, opts=None)

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

NOTE: Available in v1.35.0+

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)
Parameters

name_regex (str) – A regex string to filter results by namespace name.

pulumi_alicloud.cr.get_repos(enable_details=None, name_regex=None, namespace=None, output_file=None, opts=None)

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

NOTE: Available in v1.35.0+

import pulumi
import pulumi_alicloud as alicloud

my_repos = alicloud.cr.get_repos(name_regex="my-repos",
    output_file="my-repo-json")
pulumi.export("output", my_repos.repos)
Parameters
  • enable_details (bool) – Boolean, false by default, only repository attributes are exported. Set to true if domain list and tags belong to this repository are needed. See tags in attributes.

  • name_regex (str) – A regex string to filter results by repository name.

  • namespace (str) – Name of container registry namespace where the repositories are located in.