alicloud_cr_ee_namespaces
更新时间:
This data source provides a list Container Registry Enterprise Edition namespaces on Alibaba Cloud.
-> NOTE: Available in v1.86.0+
Example Usage
# Declare the data source
data "alicloud_cr_ee_namespaces" "my_namespaces" {
instance_id = "cri-xxx"
name_regex = "my-namespace"
output_file = "my-namespace-json"
}
output "output" {
value = "${data.alicloud_cr_ee_namespaces.my_namespaces.namespaces}"
}
Argument Reference
The following arguments are supported:
instance_id- (Required) ID of Container Registry Enterprise Edition instance.ids- (Optional) A list of ids to filter results by namespace id. Each item formats as<instance_id>:<namespace_name>.name_regex- (Optional) A regex string to filter results by namespace name.output_file- (Optional) File name where to save data source results (after runningterraform plan).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids- A list of matched Container Registry Enterprise Edition namespaces. Each item formats as<instance_id>:<namespace_name>. Before 1.161.0, its element is a namespace uuid.names- A list of namespace names.namespaces- A list of matched Container Registry Enterprise Edition namespaces. Each element contains the following attributes:instance_id- ID of Container Registry Enterprise Edition instance.id- ID of Container Registry Enterprise Edition namespace. It formats as<instance_id>:<namespace_name>. Before 1.161.0, it is a namespace uuid.name- Name of Container Registry Enterprise Edition namespace.namespace_name- Name of Container Registry Enterprise Edition namespace.namespace_id- Container Registry Enterprise Edition namespace id. It is a uuid.auto_create- 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-PUBLICorPRIVATE, default repository visibility in this namespace.
该文章对您有帮助吗?