Query the details of the running strategy

Read the scope, admission conditions, budget, retry, and data policies of a run policy configuration.

HTTP
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.

Shell
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

workspace_id

string

Yes

Current workspace ID.

policy_id

string

Yes

Run policy ID.

Successful response

JSON
{
  "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

data.id

string

Run policy ID.

data.workspace_id

string

The workspace ID to which it belongs.

data.name

string

Policy name and description. Description is only returned if there is a value.

data.description

string

Policy name and description. Description is only returned if there is a value.

data.status

string

Policy status, scope types, and references. Values: draft, active, disabled, archived.

data.scope_type

string

Policy status, scope types, and references. Values: workspace, role, agent, provider_profile.

data.scope_ref

string

Policy status, scope types, and references.

data.admission

object

Admission, budgeting, and retry configuration. Only returned if there is a value.

data.budgets

object

Admission, budgeting, and retry configuration. Only returned if there is a value.

data.retry

object

Admission, budgeting, and retry configuration. Only returned if there is a value.

data.data_policy

object

Data, Product and Provider Restrictions. Only returned if there is a value.

data.artifact_policy

object

Data, Product and Provider Restrictions. Only returned if there is a value.

data.provider_constraints

object

Data, Product and Provider Restrictions. Only returned if there is a value.

data.version

integer

Strategy version.

data.labels

object

Additional tags, annotations and metadata. Only returned if there is a value.

data.annotations

object

Additional tags, annotations and metadata. Only returned if there is a value.

data.metadata

object

Additional tags, annotations and metadata. Only returned if there is a value.

data.created_by

string

Creator.

data.updated_by

string

Last updated by.

data.created_at

string

Creation and update time. RFC 3339 time.

data.updated_at

string

Creation and update time. RFC 3339 time.

Error response

JSON
{
  "code": 3,
  "message": "运行策略不存在"
}

Field

Type

Description

code

integer

error code.

message

string

Error message for the caller.

Last updated on