最近更新时间:2024.04.19 11:53:52
首次发布时间:2023.06.30 15:23:33
获取工作区状态列表。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListWorkspaceStatus | 公共参数,本接口值:ListWorkspaceStatus。 |
Version | String | 是 | 2021-03-03 | 公共参数,本接口值:2021-03-03。 |
PageNumber | Integer | 否 | 1 | 当前页数,最小值或默认值均为 1。 |
PageSize | Integer | 否 | 10 | 单页数量:
|
Filters | Object WorkspaceFilter | 否 | - | 工作区查询过滤条件。 |
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Ids | Array of String | 否 | ["e28ae750-bbb8-4ff4-abf4-1e0e0f88808c"] | 按工作区 ID 过滤,精确查询。 |
Name | String | 否 | test | 按工作区名称过滤,模糊查询。 |
InstanceTypeIds | Array of String | 否 | ["vmp.standard.15d"] | 按工作区规格过滤,精准查询。 |
POST /?Action=ListWorkspaceStatus&Version=2021-03-03 Content-Type:application/json { "PageNumber": 1, "PageSize": 10, "Filters": { "Ids": ["e28ae750-bbb8-4ff4-abf4-1e0e0f88808c"], "Name": "test", "InstanceTypeIds": ["vmp.standard.15d"] } }
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Total | Integer | 100 | 工作区总数。 |
Items | Array of WorkspaceStatus | - | 工作区列表。 |
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Id | String | e28ae750-bbb8-4ff4-abf4-1e0e0f88808c | 工作区 ID。 |
Name | String | test | 工作区名称。 |
InstanceTypeId | String | vmp.standard.15d | 工作区规格。 |
Status | String | Active | 工作区状态,取值:
|
Usage | Object Usage | - | 工作区用量。 |
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ActiveSeries | Integer | 10000 | 活跃时序数。 |
IngestedSamplesPerSecond | float64 | 3000.0 | 每秒写入样本数。 |
HTTP/1.1 200 OK Content-Type:application/json { "ResponseMetadata": { "RequestId": "202211302208xxxx", "Action": "ListWorkspaceStatus", "Version": "2021-03-03", "Service": "vmp", "Region": "cn-beijing" }, "Result": { "Total": 100, "Items": [ { "Id": " e28ae750-bbb8-4ff4-abf4-1e0e0f88808c", "Name": " test", "InstanceTypeId": " vmp.standard.15d", "Status": " Active", "Usage": { "ActiveSeries": 10000, "IngestedSamplesPerSecond": 3000.0 } } ] } }
本接口错误码如下表所示,公共错误码请参见 公共错误码。
HTTP 状态码 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter.{{parameter}} | The specified {{parameter}} is invalid. | 参数不合法,请检查参数正确性后重试。 |
403 | ProductUnsubscribed | You are not subscribed to the Volcengine Managed Service for Prometheus (VMP). Please go to the VMP console web page to subscribe to the service | 当前账号未订阅 VMP 服务。 |