Skip to main content

Manage Cyber Resilience Credentials

Select

SaaS
Customer Managed

Manage Credentials configured for Cyber Resilience

Request Body
  • credentials object[]
  • id int32 required

    Possible values: >= 1

    Credential ID

  • operation string required

    Possible values: [ADD, DELETE]

    Basic operation types

  • refreshToken TCORefreshToken
  • RefreshTokenId int32

    Refresh Token ID

  • RefreshToken string

    Refresh Token

  • Provider string

    Cloud Provider name

  • ErrorMesage string

    Error message while saving/validating refresh token

  • ErrorCode int32

    Error code while saving/validating refresh token

  • cyberResiliencyCloudConnector CyberResiliencyCloudConnector

    Possible values: [AZURE, AWS, GCP, M365, AD]

    Default value: AZURE

    Supported Connector Types for Cyber Resilience Cost Assessment Dashboard

  • cloudConnector CyberResiliencyCloudConnector

    Possible values: [AZURE, AWS, GCP, M365, AD]

    Default value: AZURE

    Supported Connector Types for Cyber Resilience Cost Assessment Dashboard

  • authType TCOCredentialAuthType

    Possible values: [OAUTH2, CREDENTIAL_VAULT]

    Default value: CREDENTIAL_VAULT

    Supported Credential Authentication Types for Cyber Resilience Cost Assessment Dashboard

Responses

OK


Schema
  • errorCode CyberResilienceErrorCode

    Possible values: [NO_ERROR, INVALID_INPUT, INDEX_SERVER_NOT_EXIST, INDEX_SERVER_INACCESSIBLE, INDEX_SERVER_DATA_ANALYTICS_ROLE_MISSING, CREDENTIAL_UNSUPPORTED, CREDENTIAL_INACCESSIBLE, CYBER_RESILIENCE_ALREADY_CONFIGURED, CYBER_RESILIENCE_NOT_CONFIGURED, DELETING_UNCONFIGURED_CREDENTIAL, ADDING_CONFIGURED_CREDENTIAL, UNKNOWN_ERROR, INTERNAL_SERVER_ERROR, CREDENTIAL_INVALID]

  • errorMessage string
PUT /v4/cyberresilience/credentials    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body
{
"credentials": [
{
"id": 0,
"operation": "ADD"
}
],
"refreshToken": {
"RefreshTokenId": 0,
"RefreshToken": "string",
"Provider": "string",
"ErrorMesage": "string",
"ErrorCode": 0
},
"cyberResiliencyCloudConnector": "AZURE",
"cloudConnector": "AZURE",
"authType": "CREDENTIAL_VAULT"
}
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/CyberResilience/Credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"credentials": [
{
"id": 0,
"operation": "ADD"
}
],
"refreshToken": {
"RefreshTokenId": 0,
"RefreshToken": "string",
"Provider": "string",
"ErrorMesage": "string",
"ErrorCode": 0
},
"cyberResiliencyCloudConnector": "AZURE",
"cloudConnector": "AZURE",
"authType": "CREDENTIAL_VAULT"
}'