Hướng dẫn AgentFlow

list_app_deployments

GET/app-deployments
AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Query Parameters

limit?integer

Page size, from 1 to 200; 50 when absent.

Formatint32
Range1 <= value <= 200
cursor?string
before?string
sort?string

The order; queue when absent.

Value in

  • "queue"
  • "created_at"
dir?string

Ascending or descending sort order. Separate from [WalkDirection] so the same sort key can be flipped without API changes. Each [SortKey] variant declares its default direction; callers may override it via ?sort_direction=asc|desc.

Value in

  • "asc"
  • "desc"
q?string

Matches a substring of the package id.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/app-deployments"
{  "items": [    {      "app_key": "string",      "approve_url": "string",      "approved_by": null,      "created_at": "2019-08-24T14:15:22Z",      "decisions": {},      "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6",      "from_version": "string",      "installation_id": "91166175-c6a9-4caf-88e9-3147ffc9c934",      "kind": "install",      "name": "string",      "package_id": "string",      "parameters": {},      "plan_findings": [        {          "code": "string",          "logical_key": "string",          "message": "string",          "package_id": "string",          "pointer": "string"        }      ],      "problem": {},      "requested_by": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "kind": "user",        "name": "string"      },      "setup_url": "string",      "status": "awaiting_approval",      "status_reason": null,      "updated_at": "2019-08-24T14:15:22Z",      "version": "string"    }  ],  "next_cursor": "string",  "prev_cursor": "string"}