接口地址
地域 |
Endpoint |
北京 |
pfs.bj.baidubce.com |
保定 |
pfs.bd.baidubce.com |
苏州 |
pfs.su.baidubce.com |
广州 |
pfs.gz.baidubce.com |
阳泉 |
pfs.yq.baidubce.com |
接口信息
Method |
API |
备注 |
GET |
/v1/pfs/instance |
获取实例列表 |
请求参数
参数名字 |
参数位置 |
参数类型 |
是否必须 |
备注 |
maxKeys |
url path |
int |
是 |
请求返回instance的最大个数 |
manner |
url path |
string |
是 |
请求的分段类型,一般使用marker |
Authorization |
request body |
string |
是 |
权限认证字段 |
响应参数
参数名字 |
参数位置 |
参数类型 |
是否必须 |
备注 |
isTruncated |
response body |
bool |
是 |
|
marker |
response body |
string |
否 |
|
maxKeys |
response body |
int |
是 |
请求返回的result个数 |
nextMarker |
response body |
string |
否 |
下一个instance的游标 |
result |
response body |
InstanceDetail列表 |
否 |
PFS实例详细信息 |
实例详情
参数名字 |
参数位置 |
参数类型 |
是否必须 |
备注 |
capacity |
response body |
int |
是 |
PFS实例最大容量 |
createTime |
response body |
string |
是 |
PFS实例创建时间 |
description |
response body |
string |
否 |
PFS实例描述信息 |
endpoint |
response body |
string |
是 |
PFS连接地址 |
instanceId |
response body |
string |
是 |
实例ID |
instanceStatus |
response body |
string |
是 |
实例状态 |
instanceType |
response body |
string |
是 |
实例类型 |
name |
response body |
string |
否 |
实例名字 |
paymentTiming |
response body |
string |
是 |
付款方式 |
subnetModel |
response body |
SubnetDetail |
是 |
PFS所在网络信息 |
usage |
response body |
int |
是 |
PFS实例使用量 |
vpcId |
response body |
string |
是 |
PFS所在VPCID |
子网详情
参数名字 |
参数位置 |
参数类型 |
是否必须 |
备注 |
cidr |
response body |
string |
是 |
子网掩码 |
physicalZone |
response body |
string |
是 |
PFS实例所在物理Zone |
subnetId |
response body |
string |
是 |
子网ID |
zoneName |
response body |
string |
是 |
PFS实例所在逻辑Zone |
示例
/v1/pfs/instance?maxKeys=1&manner=marker
{
'x-bce-date': '2023-06-09T10:08:22Z',
'host': 'pfs.gz.baidubce.com',
'content-type': 'application/json',
'Authorization': 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
'User-Agent': 'pfs'
}
响应:
{
"isTruncated": true,
"marker": "",
"maxKeys": 1,
"nextMarker": "pfs-0xxxxy",
"result": [
{
"capacity": 7168,
"createTime": "2023-06-09T05:04:30Z",
"description": "PFS l2 test",
"endpoint": "172.16.32.8",
"instanceId": "pfs-xxxx",
"instanceStatus": "RUNNING",
"instanceType": "basic",
"name": "",
"paymentTiming": "postpay",
"subnetModel": {
"cidr": "172.16.32.0/20",
"physicalZone": "AZONE-gzbh",
"subnetId": "sbn-6xba3cdasf1",
"zoneName": "zoneC"
},
"usage": 0,
"vpcId": "vpc-jx648pkxw3tc"
}
]
}