bannerAds
Global
language language

Product

Doc

Support

Menu 

SiliCloud Help Document Center

search

Popular search terms

云服务器 刷新服务器的运行状态

Update time 2023-07-17 00:54  Version v1.2
I want feedback 
Collect My collection

功能说明:

刷新服务器的运行状态,实时获取。

URL 路径:

/ncs-server/api/v1/host/pullInfo

HTTP Method:

GET

请求参数:

字段 类型 最大长度 参数位置 必填 描述
id string 32 URL QUERY 选填 ID

CURL 请求案例:

curl -X GET -k "https://api.silicloud.com/ncs-server/api/v1/host/pullInfo?id=cvm-3kbhudf25s224" \
-H 'api_key: 1813998546851201024' \
-H 'Content-Type: application/json' \
-H 'request_id: 2942183558593ffc9d75fb8e16793ff' \
-H 'signature: 3a37ac0c5be79cbfc5fa3382ec55c7534b9e93d2f70acd9f74d57f9700db4c6f' | python3 -m json.tool

返回值 案例:

{
    "status": 2000,
    "message": "success",
    "data": {
        "userAccount": "3d3dz04i9svyl",
        "remoteId": "42457c4d-737b-4dc7-bdba-809ada5d30a2",
        "productId": "cvm.g4.amd.c1m2",
        "projectId": "0",
        "projectName": "\u9ed8\u8ba4",
        "latestOrderId": "1812785205706752001",
        "cpuNum": 1,
        "memSize": 2048,
        "systemDiskInfo": "{\"productId\":\"ssd_cloud_disk\",\"diskSize\":25,\"countSnapSize\":0.0,\"id\":\"disk-3h1m1g8q74vl7\"}",
        "areaMark": "jp01",
        "areaName": "TYO-JP-1",
        "hostType": "General-EPYC-4",
        "hostTypeName": "General-EPYC-4",
        "floatIpId": "09157b88-0c7b-4c82-bb19-3e9e00d008e8",
        "floatIp": "103.214.168.123",
        "floatIpLong": 1742121021,
        "innerIp": "172.16.0.123",
        "ipV6": "2400:38bb:1:417b::1a7,2400:38bb:1:417b::202,2400:38bb:1:417b::33,2400:38bb:1:417b::339,2400:38bb:1:417b::3b0,2400:38bb:1:417b::bf,2400:38bb:1:417b::df,2400:38bb:1:417b::e4",
        "bandwidthStatus": "OK",
        "imageId": "AlmaLinux-8-x86_64",
        "imageName": "AlmaLinux-8-x86_64",
        "imageType": "public",
        "securityGroupInfo": "sg-3upckzy3jujc4,b758839c-c8ff-4f21-b2fc-2264a0e75440,",
        "beginTime": 1687677294546,
        "endTime": 1848122094546,
        "status": "OK",
        "remoteHostStatus": "ACTIVE",
        "buildStatus": "build_success",
        "bindDiskCount": 1,
        "hasBoot": true,
        "autoRenew": false,
        "supportNoReasonRefund": false,
        "refundStatus": "NONE",
        "remarks": "tyo-lg-global",
        "manageRemarks": "tyo-lg-global",
        "configuration": "{\"cpu_type\":\"EPYC Roma\",\"intranet\":\"2.5 Gbps\",\"CPU_Frequency\":\"3.0Ghz\",\"CPU_cores\":\"1\",\"RAM\":\"2 GiB\"}",
        "tempPass": "",
        "networkName": "vpc-3hji7sqgyklkr",
        "recordMark": 0,
        "createTime": 1687677294546,
        "updateTime": 1689523772319,
        "checkTime": 1687763694546,
        "targetHost": "computer01",
        "systemDiskTemplateId": "",
        "bandwidthPackageId": 20,
        "bandwidthPackageName": "global-1T",
        "bandwidthPackageTotalSize": 1024000,
        "bandwidthPackageLimit": 500,
        "bandwidthPackageUsedSize": 24038,
        "bandComputeType": 1,
        "fixedRenewHkPrice": 0,
        "fixRenewTime": "",
        "mixBand": true,
        "id": "cvm-3wgovxplpp72s"
    }
}

Do you have any suggestions for this document?

Your rating for this document