Query the running policy list¶
Query the running policy configuration in the workspace.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/runtime-policy-profiles
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
Replace $WORKSPACE_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/runtime-policy-profiles?limit=20" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The current workspace ID must be consistent with X-Workspace-ID. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Filter by policy status. |
|
string |
No |
Filter by scope type. |
|
string |
No |
Filter by scope reference. |
|
string |
No |
View by name or related text. |
|
integer |
No |
Return the maximum quantity. |
|
integer |
No |
Returns the offset. |
Successful response¶
{
"code": 0,
"data": {
"items": [
{
"id": "policy_01",
"workspace_id": "",
"name": "默认运行限制",
"status": "active",
"scope_type": "workspace",
"version": 1,
"created_at": "2026-08-21T07:00:00Z",
"updated_at": "2026-08-21T07:00:00Z"
}
],
"total": 1,
"limit": 20,
"offset": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
List of running strategies for the current page. |
|
string |
Run policy ID. |
|
string |
The workspace ID to which it belongs. |
|
string |
Policy name and status. |
|
string |
Description. |
|
string |
Policy name and status. Values: |
|
string |
Scope types and references. Values: |
|
string |
Scope types and references. |
|
object |
Admission configuration. |
|
object |
Budget allocation. |
|
object |
Retry configuration. |
|
object |
Data strategy. |
|
object |
Product strategy. |
|
object |
Provider constraints. |
|
integer |
Strategy version. |
|
object |
Tag mapping. |
|
object |
Annotation mapping. |
|
object |
Extended metadata. |
|
string |
Creator. |
|
string |
Last updated by. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
|
integer |
The total number of matching records. |
|
integer |
The maximum number of records requested for this page. |
|
integer |
The zero-based offset of the first record on this page. |
Error response¶
{
"code": 2,
"message": "运行策略参数无效"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |