本接口用于根据边缘服务的 ID 获取边缘服务的详细信息。
下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetCloudServer | 公共参数。该参数表示接口名称。取值:GetCloudServer。 |
Version | String | 是 | 2021-04-30 | 公共参数。该参数表示接口版本。取值:2021-04-30。 |
cloud_server_id | String | 是 | cloudserver-qkjrw9rg6dd**** | 边缘服务 ID。您可以通过 ListCloudServers 接口查询边缘服务 ID。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
cloud_server | 请参见返回示例 | 边缘服务详情。 |
GET https://veenedge.volcengineapi.com/?Action=GetCloudServer&Version=2021-04-30 &cloud_server_id=cloudserver-hgvbfwkpnsq**** &<其他公共参数>
{ "ResponseMetadata": { "RequestId": "2023051919315997B49EBB4889E874****", "Action": "GetCloudServer", "Version": "2021-04-30", "Service": "veenedge", "Region": "cn-north-1" }, "Result": { "cloud_server": { "cloud_server_identity": "cloudserver-hgvbfwkpnsq****", "name": "cloud-test", "load_type": "virtual_machine", "server_area_count": 1, "instance_count": 1, "server_area_level": "city", "instance_status": [ { "status": "running", "instance_count": 1 } ], "spec_sum": { "cpu": 2, "data_disk": 20, "mem": 8, "sys_disk": 50 }, "spec": "veEN.G1.large", "spec_display": "通用型 | 2C8G", "cpu": "2", "mem": "8", "image": { "image_identity": "imagepnjk4y****", "image_name": "centos-7.3-amd64", "system_arch": "Linux", "system_type": "CentOS", "system_bit": "64位", "system_version": "7.3", "property": "PublicBaseImage", "disable_vga": false, "image_boot_mode": "BIOS" }, "storage": { "system_disk": { "storage_type": "CloudBlockSSD", "capacity": "50" }, "data_disk": { "storage_type": "CloudBlockSSD", "capacity": "20" }, "data_disk_list": [ { "storage_type": "CloudBlockSSD", "capacity": "20" } ] }, "network": { "bandwidth_peak": "20", "internal_bandwidth_peak": "500", "dns_type": "default", "dns_list": [ "114.114.114.114", "180.184.1.1" ] }, "gpu": { "gpus": [] }, "secret_config": { "secret_type": 2 }, "custom_data": { "is_base64": false, "data": "" }, "billing_config": { "computing_billing_method": "MonthlyPeak", "bandwidth_billing_method": "MonthlyP95" }, "desc": "", "arch": "x86", "advanced_configuration": { "instance_name": "", "instance_desc": "", "instance_host_name": "", "delete_protection": false }, "schedule_strategy_configs": { "network_strategy": "city", "schedule_strategy": "dispersion", "price_strategy": "low_priority" }, "server_areas": [ { "area": "410300", "isp": "CTCC", "instance_num": 1, "cluster_name": "****-lyct02", "cluster_alias": "洛阳电信02" } ], "create_time": 1684487349, "update_time": 1684487349 } } }
如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码。