DATASOURCE::CR::Repositories

更新时间:2024-09-29 08:12:53

DATASOURCE::CR::Repositories类型用于查询仓库列表的信息。

语法

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

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

Status

String

仓库状态。

RepoNamespace

String

仓库所在的命名空间名称。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

取值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回数据(Fn::GetAtt)

  • Repos:仓库详情列表。

  • RepoNames:仓库名称列表。

属性名称

类型

描述

约束

属性名称

类型

描述

约束

RepoNames

List

仓库名称列表。

Repos

List

仓库详情列表。

Summary

String

摘要信息。

RepoId

String

仓库唯一标识ID。

RepoNamespace

String

仓库所在的命名空间名称。

RepoName

String

仓库名称。

RepoOriginType

String

镜像仓库类型。

RepoBuildType

String

仓库构建类型。

取值:

  • AUTO:自动触发构建。

  • MANUAL:手动触发构建。

RepoType

String

仓库类型。

RepoStatus

String

仓库状态。

RepoAuthorizeType

String

仓库权限。

RegionId

String

区域。

RepoDomainList

List

仓库域名列表。

示例: { "Internal": "registry-internal.cn-XXXXXXX.aliyuncs.com", "Vpc": "registry-vpc.cn-XXXXXXX.aliyuncs.com", "Public": "registry.cn-XXXXXXX.aliyuncs.com" }

Stars

Number

点亮数。

Downloads

Number

仓库下载量。

Logo

String

仓库图标。

GmtCreate

String

创建时间。

GmtModified

String

修改时间。

示例

JSON格式
YAML格式
{
  "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"
        ]
      }
    }
  }
}
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
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回数据(Fn::GetAtt)
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等