Queries the details of one or more data caches.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:DescribeDataCaches |
list |
*DataCache
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| DataCacheId |
array |
No |
The data cache ID. |
|
|
string |
No |
The data cache ID. |
edc-bp1a7n7uawwwol****** |
|
| Bucket |
string |
No |
The bucket of the data cache. The default value is default. |
default |
| Path |
string |
No |
The directory in the virtual host that corresponds to the data cache. |
/data/models/ |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag key. |
testkey |
| Value |
string |
No |
The tag value. |
testvalue |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmzw2jz2z**** |
| Limit |
integer |
No |
The maximum number of entries to return on a single page. The default value and the maximum value are both 20. |
20 |
| NextToken |
string |
No |
The query token. Set this to the NextToken value returned from the previous API call. |
d78f2dd8-5979-42fe-****-b16db43be5bc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B8756BA0-6452-419C-9727-37A6209C85E0 |
| DataCaches |
array<object> |
The information about the data caches. |
|
|
array<object> |
The information about the data caches. |
||
| DataCacheId |
string |
The data cache ID. |
edc-bp15l4vvys94oo****** |
| CreationTime |
string |
The time when the data cache was created. |
2023-06-16T02:43Z |
| Status |
string |
The status of the data cache. Valid values:
You can use the data cache only when it is in the Available state. |
Available |
| Progress |
string |
The creation progress. |
100% |
| LastMatchedTime |
string |
The last time when the data cache was matched. |
2023-06-18T02:43Z |
| ExpireDateTime |
string |
The expiration time. |
2023-06-26T02:43Z |
| ContainerGroupId |
string |
The ID of the ECI instance that is generated during the creation of the data cache. |
eci-8vb1y2w1dv7zeirn**** |
| Tags |
array<object> |
The list of tags. |
|
|
object |
The list of tags. |
||
| Key |
string |
The tag key. |
testkey |
| Value |
string |
The tag value. |
testvalue |
| Events |
array<object> |
The list of events. |
|
|
object |
The list of events. |
||
| Type |
string |
The event type. Valid values:
|
Normal |
| LastTimestamp |
string |
The time when the event ended. |
2021-06-16T02:24:48Z |
| Message |
string |
The event message. |
Successfully check data cache resource. |
| Name |
string |
The event name. |
datacache |
| Count |
integer |
The number of events. |
1 |
| FirstTimestamp |
string |
The time when the event started. |
2021-06-16T02:14:48Z |
| Reason |
string |
The event reason. |
Started |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| SnapshotId |
string |
The snapshot ID. |
s-2zec5oj8e1yhxijt**** |
| FlashSnapshotId |
string |
The local snapshot ID. |
s-bp12w3v37sit96t6**** |
| ResourceGroupId |
string |
The resource group ID. |
rg-aek2hlt3ux4**** |
| Size |
integer |
The size of the data cache. Unit: GiB. |
20 |
| Name |
string |
The name of the data cache. |
test |
| DataSource |
object |
The data source information. |
|
| Type |
string |
The type of the data source. Valid values:
|
URL |
| Options |
string |
The parameters that are configured for the data source. |
{ "options": { "path": "/", "server": "0ce1f4****-or***.cn-hangzhou.nas.aliyuncs.com", "vers": "3", "options": "nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport" }, "type": "NAS" } |
| Bucket |
string |
The bucket of the data cache. |
default |
| Path |
string |
The directory in the virtual host that corresponds to the data cache. |
/data/models/ |
| NextToken |
string |
The query token. Set this to the NextToken value returned from the previous API call. |
d78f2dd8-5979-42fe-xaee-b16db43be5bc |
| TotalCount |
integer |
The total number of entries that match the query conditions. |
2 |
Examples
Success response
JSON format
{
"RequestId": "B8756BA0-6452-419C-9727-37A6209C85E0",
"DataCaches": [
{
"DataCacheId": "edc-bp15l4vvys94oo******\n",
"CreationTime": "2023-06-16T02:43Z",
"Status": "Available",
"Progress": "100%",
"LastMatchedTime": "2023-06-18T02:43Z",
"ExpireDateTime": "2023-06-26T02:43Z\n",
"ContainerGroupId": "eci-8vb1y2w1dv7zeirn****",
"Tags": [
{
"Key": "testkey",
"Value": "testvalue"
}
],
"Events": [
{
"Type": "Normal",
"LastTimestamp": "2021-06-16T02:24:48Z",
"Message": "Successfully check data cache resource.",
"Name": "datacache",
"Count": 1,
"FirstTimestamp": "2021-06-16T02:14:48Z",
"Reason": "Started"
}
],
"RegionId": "cn-hangzhou",
"SnapshotId": "s-2zec5oj8e1yhxijt****",
"FlashSnapshotId": "s-bp12w3v37sit96t6****\n",
"ResourceGroupId": "rg-aek2hlt3ux4****",
"Size": 20,
"Name": "test",
"DataSource": {
"Type": "URL",
"Options": "{\n \"options\": {\n \"path\": \"/\",\n \"server\": \"0ce1f4****-or***.cn-hangzhou.nas.aliyuncs.com\",\n \"vers\": \"3\",\n \"options\": \"nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport\"\n },\n \"type\": \"NAS\"\n}"
},
"Bucket": "default",
"Path": "/data/models/"
}
],
"NextToken": "d78f2dd8-5979-42fe-xaee-b16db43be5bc",
"TotalCount": 2
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Account.Arrearage | Your account has an outstanding payment. | Your account has an outstanding payment. |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | Request validation has been passed with DryRun flag set. |
| 400 | ServiceNotEnabled | %s | The service on which this request depends has not been activated. Please activate and try again. |
| 403 | Forbidden.SubUser | The specified action is not available for you. | |
| 403 | Forbidden.UserBussinessStatus | This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again. | |
| 403 | Forbidden.UserNotRealNameAuthentication | This operation is not allowed, because you have not passed the real-name verification. | |
| 403 | NoPermission | The RAM role does not belong to ECS. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.