DATASOURCE::CR::Repositories is used to query the details of repositories.

Syntax

{
  "Type": "DATASOURCE::CR::Repositories",
  "Properties": {
    "Status": String,
    "RepoNamespace": String
  }
}

Properties

Property Type Required Editable Description Constraint
Status String No Yes The status of the repository. None.
RepoNamespace String No Yes The name of the namespace to which the repository belongs. None.

Return values (Fn::GetAtt)

  • Repos: the details of the repositories.
  • RepoNames: the names of the repositories.
Property Type Description Constraint
RepoNames List The names of the repositories. None.
Repos List The details of the repositories. None.
Summary String The summary of the repository. None.
RepoId String The UUID of the repository. None.
RepoNamespace String The name of the namespace to which the repository belongs. None.
RepoName String The name of the repository. None.
RepoOriginType String The type of the image repository. None.
RepoBuildType String The build type of the repository. Valid values:
  • AUTO: The repository is automatically built.
  • MANUAL: The repository is manually built.
RepoType String The type of the repository. None.
RepoStatus String The status of the repository. None.
RepoAuthorizeType String The type of the permission that is granted to the repository. None.
RegionId String The region ID of the repository. None.
RepoDomainList List The domain names that are used for the repository. Example: { "Internal": "registry-internal.cn-XXXXXXX.aliyuncs.com", "Vpc": "registry-vpc.cn-XXXXXXX.aliyuncs.com", "Public": "registry.cn-XXXXXXX.aliyuncs.com" }.
Stars Number The number of likes for the repository. None.
Downloads Number The number of downloads from the repository. None.
Logo String The icon of the repository. None.
GmtCreate String The time when the repository was created. None.
GmtModified String The time when the repository was modified. None.

Examples

  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RepoNamespace": {
          "Type": "String",
          "Description": "The namespace of repository."
        }
      },
      "Resources": {
        "Repositories": {
          "Type": "DATASOURCE::CR::Repositories",
          "Properties": {
            "RepoNamespace": {
              "Ref": "RepoNamespace"
            }
          }
        }
      },
      "Outputs": {
        "Repos": {
          "Description": "The list of repositories.",
          "Value": {
            "Fn::GetAtt": [
              "Repositories",
              "Repos"
            ]
          }
        },
        "RepoNames": {
          "Description": "The list of repository names.",
          "Value": {
            "Fn::GetAtt": [
              "Repositories",
              "RepoNames"
            ]
          }
        }
      }
    }
  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RepoNamespace:
        Type: String
        Description: The namespace of repository.
    Resources:
      Repositories:
        Type: DATASOURCE::CR::Repositories
        Properties:
          RepoNamespace:
            Ref: RepoNamespace
    Outputs:
      Repos:
        Description: The list of repositories.
        Value:
          Fn::GetAtt:
            - Repositories
            - Repos
      RepoNames:
        Description: The list of repository names.
        Value:
          Fn::GetAtt:
            - Repositories
            - RepoNames