Query the running policy list

Query the running policy configuration in the workspace.

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

Shell
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

workspace_id

string

Yes

The current workspace ID must be consistent with X-Workspace-ID.

Query parameters

Parameter

Type

Required

Description

status

string

No

Filter by policy status.

scope_type

string

No

Filter by scope type.

scope_ref

string

No

Filter by scope reference.

query

string

No

View by name or related text.

limit

integer

No

Return the maximum quantity.

offset

integer

No

Returns the offset.

Successful response

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

data.items

array of object

List of running strategies for the current page.

data.items[].id

string

Run policy ID.

data.items[].workspace_id

string

The workspace ID to which it belongs.

data.items[].name

string

Policy name and status.

data.items[].description

string

Description.

data.items[].status

string

Policy name and status. Values: draft, active, disabled, archived.

data.items[].scope_type

string

Scope types and references. Values: workspace, role, agent, provider_profile.

data.items[].scope_ref

string

Scope types and references.

data.items[].admission

object

Admission configuration.

data.items[].budgets

object

Budget allocation.

data.items[].retry

object

Retry configuration.

data.items[].data_policy

object

Data strategy.

data.items[].artifact_policy

object

Product strategy.

data.items[].provider_constraints

object

Provider constraints.

data.items[].version

integer

Strategy version.

data.items[].labels

object

Tag mapping.

data.items[].annotations

object

Annotation mapping.

data.items[].metadata

object

Extended metadata.

data.items[].created_by

string

Creator.

data.items[].updated_by

string

Last updated by.

data.items[].created_at

string

Creation time. RFC 3339 time.

data.items[].updated_at

string

Update time. RFC 3339 time.

data.total

integer

The total number of matching records.

data.limit

integer

The maximum number of records requested for this page.

data.offset

integer

The zero-based offset of the first record on this page.

Error response

JSON
{
  "code": 2,
  "message": "运行策略参数无效"
}

Field

Type

Description

code

integer

error code.

message

string

Error message for the caller.

Last updated on