- Home
- API Enriched
- Tenant And Identity
- web
- Tenant Settings.
Tenant Settings.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/web/namespaces/system/tenant/settings';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"max_credentials_expiry":{"max_api_certificate_expiry_days":1,"max_api_token_expiry_days":1,"max_kube_config_expiry_days":1},"otp_enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/web/namespaces/system/tenant/settings \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "max_credentials_expiry": { "max_api_certificate_expiry_days": 1, "max_api_token_expiry_days": 1, "max_kube_config_expiry_days": 1 }, "otp_enabled": true }'Tenant settings.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Request to update tenant settings for specific tenant.
object
object
Certificate expiry period as days.
Token expiry period as days.
TokeKubeconfign expiry period as days.
OTP configuration for tenant scope.
Examplegenerated
{ "max_credentials_expiry": { "max_api_certificate_expiry_days": 1, "max_api_token_expiry_days": 1, "max_kube_config_expiry_days": 1 }, "otp_enabled": true}Responses
Section titled “Responses”A successful response.
Defines tenant specific settings.
object
object
Certificate expiry period as days.
Token expiry period as days.
TokeKubeconfign expiry period as days.
OTP configuration for tenant scope.
Flag to show SCIM is enabled for specific tenant.
Flag to show SSO is enabled for specific tenant.
X-displayName : “Validation errors” collection of validation errors.
Contains information on a single validation error.
object
Path indicates the field that is not valid.
More descriptive error message.
Example
{ "otp_status": "OTP_DISABLED"}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example