Skip to content

Deactivate an AI agent resource connection

Request

Beta
OAuth 2.0 scope:
  • okta.aiAgents.manage
Admin roles:
  • SUPER_ADMIN

Deactivates a resource connection for the AI agent

Path
agentIdstringrequired

ID of the agent

Example:wlpkhjm0jnDp8RrUu0g4
connectionIdstringrequired

ID of the connection

Example:mcn1a2b3c4d5e6f7g8h9
curl -i -X POST \
  https://subdomain.okta.com/workload-principals/api/v1/ai-agents/wlpkhjm0jnDp8RrUu0g4/connections/mcn1a2b3c4d5e6f7g8h9/lifecycle/deactivate

Responses

A successful resource connection deactivate response

Bodyapplication/json
authorizationServerobject(ResourceConnectionCustomAuthorizationServer)required

Custom authorization server for the resource connection

connectionTypestringrequired

Type of connection authentication method

Value:"IDENTITY_ASSERTION_CUSTOM_AS"
Discriminator
idstring(ResourceConnectionId)required

Unique identifier for the resource connection. Only present for resource connections.

ornstring(ResourceConnectionOrn)required

The ORN of the resource connection

resourceIndicatorstring, (uri)(ResourceConnectionResourceIndicator)required

Resource indicator used when requesting tokens

scopeConditionstring(ScopeCondition)

Determines how Okta evaluates requested scopes for the connection

Enum ValueDescription
ALL_SCOPES

All scopes are evaluated as part of the connection. For this condition, the scopes array must contain a single value of * to indicate all scopes.

INCLUDE_ONLY

Only the scopes specified in scopes are evaluated as part of the connection

EXCLUDE

All scopes except those specified in scopes are evaluated as part of the connection

scopesArray of strings, non-empty(ConnectionScopes)

Array of scopes. Required for all scopeCondition values.

statusstring(ResourceConnectionStatus)required

The status of the connection

Enum ValueDescription
ACTIVE

The agent connection is active

INACTIVE

The agent connection is inactive

Response
{ "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": { … } } }