Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to query the custom data of an ECS instance by Base64 coding

Shulou Source: shulou.com Published: 2022-06-02 03:25:59 10月30日 Update

This article will explain in detail how to query the custom data of an ECS instance by Base64 coding. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

DescribeUserdata

Query the custom data of an ECS instance.

Description

The instance customization data returned will be displayed in Base64-encoded format.

If custom data does not exist in the instance, a null value is returned.

Request parameter

Return parameters

Example

Request example

Https://ecs.aliyuncs.com/?Action= DescribeUserdata&RegionId=cn-shenzhen&InstanceId=i-instance1& https://ecs.example.com/?Action= DescribeUserdata&RegionId=cn-shenzhen&InstanceId=i-instance1&

Return the example

XML format

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E userdata1 i-instance1 cn-shenzhen

JSON format

{"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"UserData": "userdata1"InstanceId": "i-instance1"RegionId": "cn-shenzhen"}

Error code

The following are the error codes specific to this API. For more error codes, please visit the API error Center.

If you think the article is good, you can share it for more people to see.

Tags: Examples data errors methods coding queries more examples parameters formats articles good practical content interfaces articles knowledge references help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Apple Shulou Tech Info MariaDB Shulou Technology