Deactivates a resource connection for the AI agent
- https://subdomain.okta.comhttps://subdomain.okta.com/workload-principals/api/v1/ai-agents/{agentId}/connections/{connectionId}/lifecycle/deactivate
curl -i -X POST \
https://subdomain.okta.com/workload-principals/api/v1/ai-agents/wlpkhjm0jnDp8RrUu0g4/connections/mcn1a2b3c4d5e6f7g8h9/lifecycle/deactivateA successful resource connection deactivate response
Type of connection authentication method
Unique identifier for the resource connection. Only present for resource connections.
The ORN of the resource connection
Resource indicator used when requesting tokens
Determines how Okta evaluates requested scopes for the connection
| Enum Value | Description |
|---|---|
| ALL_SCOPES | All scopes are evaluated as part of the connection. For this condition, the |
| INCLUDE_ONLY | Only the scopes specified in |
| EXCLUDE | All scopes except those specified in |
Array of scopes. Required for all scopeCondition values.
The status of the connection
| Enum Value | Description |
|---|---|
| ACTIVE | The agent connection is active |
| INACTIVE | The agent connection is inactive |
{ "connectionType": "STS_VAULT_SECRET", "id": "mcn0j1k2l3m4n5o6p7q8", "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:connections:mcn0j1k2l3m4n5o6p7q8", "status": "INACTIVE", "resourceIndicator": "https://api.crm.company.com", "secret": { "orn": "orn:okta:pam:00o1n8sbwArJ7OQRw406:secrets:d2642f68-df50-4ba8-a898-6c0f82f89d8a", "name": "Database Root Password", "path": "/secrets/database/root-password", "description": "Root password for production database server", "_links": { … } }, "_links": { "self": { … } } }