NewClientCredential
Reques body for creating a new ClientCredential object
Human readable name for the client credential
Optional human readable comment
target objectrequired
ApiTargetHandle represents a reference to an API target (ID and optional metadata)
API target unique identifier
Optional human readable API target name
Whether the API target has been deleted
NotBefore specifies the start of the client credential validity period. If not specified, the start is set to time of creation.
NotAfter specifies the end of the client credential validity period. If not specified, the end is set according to policy settings.
Optional IP address and/or CIDRs from which requests using this client credential are allowed.
Controls whether a valid PrivX login session is required for the owner of the client credential when using it. When set to DEFAULT, the API Proxy level setting require_privx_login_session decides the behaviour.
Possible values: [DEFAULT, ENABLED, DISABLED]
Whether this client credential is enabled or not. Requests authenticated with disabled credentials are rejected.
Optional client credential type. If not specified, the type is automatically selected based on target credential type.
Possible values: [``, token, basicauth, certificate]
{
"name": "string",
"comment": "string",
"target": {
"id": "string",
"name": "string",
"deleted": true
},
"not_before": "2024-07-29T15:51:28.071Z",
"not_after": "2024-07-29T15:51:28.071Z",
"source_address": [
"string"
],
"privx_login_session_required": "DEFAULT",
"enabled": true,
"type": ""
}