Query the details of the running strategy¶
Read the scope, admission conditions, budget, retry, and data policies of a run policy configuration.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/runtime-policy-profiles/{policy_id}
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. First query the running policy configuration list to obtain the policy ID. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
Replace $WORKSPACE_ID, $POLICY_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/runtime-policy-profiles/$POLICY_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Current workspace ID. |
|
string |
Yes |
Run policy ID. |
Successful response¶
{
"code": 0,
"data": {
"id": "policy_01",
"workspace_id": "ws_01",
"name": "默认运行限制",
"status": "active",
"scope_type": "workspace",
"admission": {},
"budgets": {
"max_steps": 20
},
"retry": {},
"version": 1,
"created_at": "2026-08-21T07:00:00Z",
"updated_at": "2026-08-21T07:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
Run policy ID. |
|
string |
The workspace ID to which it belongs. |
|
string |
Policy name and description. Description is only returned if there is a value. |
|
string |
Policy name and description. Description is only returned if there is a value. |
|
string |
Policy status, scope types, and references. Values: |
|
string |
Policy status, scope types, and references. Values: |
|
string |
Policy status, scope types, and references. |
|
object |
Admission, budgeting, and retry configuration. Only returned if there is a value. |
|
object |
Admission, budgeting, and retry configuration. Only returned if there is a value. |
|
object |
Admission, budgeting, and retry configuration. Only returned if there is a value. |
|
object |
Data, Product and Provider Restrictions. Only returned if there is a value. |
|
object |
Data, Product and Provider Restrictions. Only returned if there is a value. |
|
object |
Data, Product and Provider Restrictions. Only returned if there is a value. |
|
integer |
Strategy version. |
|
object |
Additional tags, annotations and metadata. Only returned if there is a value. |
|
object |
Additional tags, annotations and metadata. Only returned if there is a value. |
|
object |
Additional tags, annotations and metadata. Only returned if there is a value. |
|
string |
Creator. |
|
string |
Last updated by. |
|
string |
Creation and update time. RFC 3339 time. |
|
string |
Creation and update time. RFC 3339 time. |
Error response¶
{
"code": 3,
"message": "运行策略不存在"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |