共用数据结构 | 大装置帮助中心
跳到主要内容

共用数据结构

Namespace

命名空间资源对象。

字段类型描述
idstring命名空间 ID,格式 subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/namespaces/{namespace_name}(只读)
namestring命名空间名称,约束 ^[a-z0-9]+(?:[._-][a-z0-9]+)*$(只读)
display_namestring命名空间显示名称,最大 63 字符
descriptionstring命名空间描述
uidstring命名空间 UID(只读)
resource_typestring资源类型,例如 ccr.namespace
creator_idstring创建者 ID(只读)
owner_idstring拥有者 ID(只读)
tenant_idstring租户 ID(只读)
zonestring资源所属可用区(只读)
statestring命名空间状态,见 Namespace.State 枚举(只读)
sku_idstring最小库存单元 ID
tagsmap[string]string标签(只读)
propertiesobject(NamespaceProperties命名空间属性
order_infoobject(OrderInfo)订单信息(只读)
deletedboolean是否已删除(只读)
create_timestring(date-time)创建时间(只读)
update_timestring(date-time)最后更新时间(只读)

Namespace.State 枚举

描述
CREATING创建中
UPDATING更新中
ACTIVE已激活
DELETING删除中
DELETED已删除
FAILED操作失败
EXPIRESTOPPING到期停服中
EXPIRESTOPPED到期已停服
RENEWSTARTING续订恢复中
EXPIREDOWNGRADE到期降级中
RESIZING资源变更中
RESIZECANCELING取消资源变更

NamespaceProperties

命名空间属性。

字段类型必须描述
resourcesobject(Resources资源规格

Resources

资源规格属性。

字段类型必须描述
billing_itemsobject(BillingItems独立购买的计费项
access_levelboolean命名空间访问权限:true = 公开,false = 私有

BillingItems

命名空间计费项。

字段类型必须描述
capacityint32容量数值
capacity_unitstring容量单位,取值:EB / PB / TB / GB / MB

Repository

镜像仓库对象。

字段类型描述
idint32仓库 ID(只读)
namestring仓库名称(只读)
descriptionstring仓库描述(只读)
project_idint32所属项目 ID(只读)
artifact_countint32镜像制品数量(只读)
pull_countint32镜像拉取次数(只读)
tag_countint32标签数量(只读)
tagsarray[string]标签名列表(只读)
metadataobject(Metadata元数据
domainstring镜像所在域名(只读)
creation_timestring(date-time)创建时间(只读)
update_timestring(date-time)最后更新时间(只读)

Artifact

镜像制品对象。

字段类型描述
idstring制品 ID
digeststring制品摘要
manifest_media_typestring制品清单的媒体类型
media_typestring制品的媒体类型
project_idstring所属项目 ID
repository_idstring所属镜像仓库 ID
sizestring制品大小(字节)
typestring制品类型,例:imagechart
tagsarray(Tag标签列表
pull_timestring(date-time)最后一次拉取时间(只读)
push_timestring(date-time)推送时间(只读)

Tag

标签对象。

字段类型描述
idstring标签 ID
namestring标签名称
artifact_idstring所附镜像制品 ID
immutableboolean是否不可更改
pull_timestring(date-time)最后一次拉取时间(只读)
push_timestring(date-time)推送时间(只读)

Metadata

仓库元数据信息。

字段类型描述
productsarray[string]产品类别
chipsarray[string]芯片类别
labelsmap[string]string标签
sourcestring源,例如 local

OfficialRepository

官方镜像仓库对象。字段与 Repository 基本一致,不含 tags 字段。

字段类型描述
idint32仓库 ID(只读)
namestring仓库名称(只读)
descriptionstring仓库描述(只读)
project_idint32所属项目 ID(只读)
artifact_countint32镜像制品数量(只读)
pull_countint32镜像拉取次数(只读)
metadataobject(Metadata元数据
domainstring镜像所在域名(只读)
creation_timestring(date-time)创建时间(只读)
update_timestring(date-time)最后更新时间(只读)