Mengkueri data kustom sebuah Instans ECS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeUserData |
get |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| InstanceId |
string |
Yes |
ID instans yang ingin Anda kueri. |
i-bp14bnftyqhxg9ij**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| InstanceId |
string |
ID instans |
i-bp14bnftyqhxg9ij**** |
| UserData |
string |
Data kustom instans. Catatan
Jika tidak ada data kustom yang dikonfigurasi untuk instans, string kosong akan dikembalikan. |
ZWNobyBoZWxsbyBlY321ABC |
| RegionId |
string |
ID wilayah. |
cn-hangzhou |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"InstanceId": "i-bp14bnftyqhxg9ij****",
"UserData": "ZWNobyBoZWxsbyBlY321ABC",
"RegionId": "cn-hangzhou"
}
Respons error
JSONformat
{
"RequestId": "540CFF28-407A-40B5-B6A5-74Bxxxxxxxxx",
"HostId": "ecs.aliyuncs.com",
"Code": "IncompleteSignature",
"Message": "The request signature does not conform to Aliyun standards."
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.