Replace a vault provider
Changed onCompletely replaces an existing vault provider's configuration. All fields must be specified; any omitted fields will be reset to their defaults.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
ID of the directory
ID of the vault provider
Request body
The static name of the vault provider template to base this provider on (e.g. "github"). For static_secret, provide only name and credential_type ("shared"); the credential is provisioned separately via the vault provider credentials API, and client_id/client_secret are rejected.
OAuth client secret. Write-only; never returned in read APIs.
Defines if the provider is enabled or not
Overrides the template token endpoint.
Overrides the template authorization endpoint.
Requested OAuth scopes. Defaults to the full set of template default scopes when omitted. Each scope must be a valid RFC 6749 §3.3 scope-token.
Use PKCE (S256) on the authorization-code flow. Templates whose authorization server mandates PKCE (pkce_required, e.g. datadog) imply true when this field is omitted; setting it explicitly to false is rejected with 400.
Example request
{
"template_name": "github"
}Response
A vault provider
An credential provider configuration for a token-vault enabled directory.
Contains a unique identifier used for this resource.
Contains a unique identifier used for this resource.
The static name of the vault provider template to base this provider on (e.g. "github"). For static_secret, provide only name and credential_type ("shared"); the credential is provisioned separately via the vault provider credentials API, and client_id/client_secret are rejected.
Defines if the provider is enabled or not
Resolved token endpoint (provider override or template default).
Resolved authorization endpoint (provider override or template default).
Resolved DCR registration endpoint (provider override or template default).
True if this provider's OAuth client is obtained via Dynamic Client Registration (RFC 7591) rather than a statically-supplied client_id. When true, client_id is null on this provider -- each principal gets its own dynamically-registered client on first use.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"directory_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"template_name": "github",
"bearer_methods_supported": [
"header"
],
"credential_type": "user",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- info
endpoint added
- info