查看缓存实例详情 | 大装置帮助中心
跳到主要内容

查看缓存实例详情

GET /storage/acs/v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/caches/{cache_name}

请求头(Request Header)

参考认证(authentication)

请求体(Request Body)

名称类型必须默认值取值范围描述
cache_id[]string--缓存实例资源id.
tenant_idstring--租户id.
user_idstring--租户下用户id.

请求示例(Request Example)

curl 'https://management.sensecoreapi.tech/rmh/v1/subscriptions/c28f173a-8f18-474c-866b-4ce89a612958/resourceGroups/default/resources/f96ba15d-4479-40fe-bb0d-8f09f240e1ce' \
-H 'authority: management.sensecoreapi.tech' \
-H 'sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"' \
-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzpoeWRyYS5qd3QuYWNjZXNzLXRva2VuIiwidHlwIjoiSldUIn0.eyJhdWQiOltdLCJjbGllbnRfaWQiOiI0ZTQxNDg1NC03MjAwLTUwOWYtYjk2MC1mOGIwZGJiYmYzMzEiLCJleHAiOjE2OTkzMzgwNzUsImV4dCI6eyJhbGxfYXoiOmZhbHNlLCJhel9saXN0IjpbImNuLXNoLTAxYSIsImNuLXNoLTAxeiIsImNuLXNoLTAxYiJdLCJpc19kZWRpY2F0ZWRfdGVuYW50IjpmYWxzZSwicHJwX2xpc3QiOlsiY24tc2gtMDFhLXBycDAxIiwiY24tc2gtMDFiLXBycDAxIl0sInRlbmFudF9jZXJ0aWZ5X3N0YXR1cyI6dHJ1ZSwidGVuYW50X2NlcnRpZnlfdHlwZSI6ImVudGVycHJpc2UiLCJ0ZW5hbnRfY29kZSI6ImNvZGUxMDEwIiwidGVuYW50X2lkIjoiYzI4ZjE3M2EtOGYxOC00NzRjLTg2NmItNGNlODlhNjEyOTU4IiwidXNlcl9pZCI6ImE1MWIzNDk1LTNiYTEtNGFkZC1iNzYwLTNkMjU3ZTI5OWYzNyIsInVzZXJfdHlwZSI6ImFkbWluIiw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ua-mobile: ?0' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'accept: */*' \
-H 'origin: https://console.sensecore.tech' \
-H 'sec-fetch-site: cross-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://console.sensecore.tech/' \
--compressed

响应(Response)

名称类型描述
idstring缓存实例资源id.
namestring缓存实例资源名称,需符合正则:^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$.
display_namestring缓存实例资源别名.
descriptionstring缓存实例资源描述.
uidstring缓存实例资源uuid.
resource_typestring缓存实例资源类型, 例子: storage.acs.v1.cache.
creator_idstring缓存实例创建用户id.
owner_idstring缓存实例所有者id.
tenant_idstring租户id.
zonestring可用区.
statestring缓存实例状态.
sku_idstring最小库存单元id.
tagsobject缓存实例资源标签.
propertiesobject缓存实例规格属性.
order_infoobject订单信息.
deletedboolean缓存实例资源是否删除.
create_timestring缓存实例资源创建时间.
update_timestring缓存实例资源更新时间.

其中,state有如下情况

状态含义
CREATING创建中(默认值)
UPDATING更新中
ACTIVE已激活
DELETING删除中
DELETED已删除
FAILED失败
EXPIRESTOPPING到期停服中
EXPIRESTOPPED到期已停服
RENEWSTARTING续订恢复中

其中,properties的参数如下

名称类型必须默认值取值范围描述
resourcesobject--规格属性.
bucket_pathstring--租户内加速桶路径.
other_bucket_pathstring--跨租户加速桶路径.
third_party_bucket_pathstring--其他加速路径.

其中,resources的参数如下

名称类型必须默认值取值范围描述
billing_itemsstring--计费项.

其中,billing_items的参数如下

名称类型必须默认值取值范围描述
capacitystring--资源容量.
capacity_unitstring--资源容量单位.

其中,order_info的参数如下

名称类型描述
billing_cycle_numberinteger购买时长.
auto_renewboolean自动续费.
currency_codestring货币代码.
payment_channelstring支付方式.
notestring订单备注.
order_typestring订单类型.
order_idstring订单id.
start_timestring订单生效日期.
payment_modelstring付费类型.
billing_modelstring计费类型.
original_idstring合同包ID.
end_timestring订单结束时间.

其中,payment_channel有如下情况

状态含义
PC_UNSPECIFIED未指定
PC_BALANCE余额支付
PC_CREDIT信用支付
PC_FROZENACCOUNT冻结款支付
PC_REMIT_OFFLINE线下汇款
PC_ALIPAY支付宝支付
PC_UNIONPAY银联支付
PC_REMIT_ONLINE在线转账
PC_CONTRACT合同包支付

其中,order_type有如下情况

状态含义
OT_UNSPECIFIED未指定
OT_ORIGINAL原始订单
OT_RENEW续费订单
OT_UPGRADED升配订单
OT_DOWNGRADED降配订单
OT_CONTRACT合同订单
OT_UNSUBSCRIBE退订订单
OT_RESIZE扩缩容订单

其中,payment_model有如下情况

状态含义
PM_UNSPECIFIED未指定
PM_PREPAID预付
PM_POSTPAID后付费

其中,billing_model有如下情况

状态含义
BM_UNSPECIFIED未指定
BM_USAGE按量计费
BM_MONTHLY包月
BM_YEARLY包年

响应示例(Response Example)

{
"id": "a3c01120-7183-11ee-85b4-da68b9bf2c6e",
"rid": "/subscriptions/c28f173a-8f18-474c-866b-4ce89a612958/resourceGroups/default/zones/cn-sh-01a/caches/f96ba15d-4479-40fe-bb0d-8f09f240e1ce",
"name": "f96ba15d-4479-40fe-bb0d-8f09f240e1ce",
"display_name": "zhangxy_test111",
"type": "storage.acs.v1.cache",
"state": "ACTIVE",
"zone": "cn-sh-01a",
"properties": "{\"resources\": {\"billing_items\": {\"capacity\": 115, \"capacity_unit\": \"GB\"}}, \"bucket_path\": [\"aoss://101202\"], \"other_bucket_path\": [], \"third_party_bucket_path\": []}",
"sku_id": "c012f40c-99c2-4cd3-b9a4-92b12472e774",
"subscription_name": "c28f173a-8f18-474c-866b-4ce89a612958",
"resource_group_name": "default",
"resource_group_id": "5598bd4a-4c24-4b13-8182-e79625643cd8",
"resource_group_display_name": "默认资源组",
"resource_group_rid": "/subscriptions/c28f173a-8f18-474c-866b-4ce89a612958/resourceGroups/default",
"creator_id": "",
"owner_id": "a51b3495-3ba1-4add-b760-3d257e299f37",
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "",
"order_type": "OT_RESIZE",
"order_id": "37741978428373907439616",
"start_time": "2023-10-23T09:08:00Z",
"payment_model": "PM_POSTPAID",
"billing_model": "BM_USAGE",
"original_id": "",
"end_time": "9999-12-31T23:59:59Z",
"auto_convert_postpaid": false
},
"deleted": false,
"create_time": "2023-10-23T09:07:49.826539Z",
"update_time": "2023-10-23T09:08:02.031134Z"
}