Skip to main content

Configure Asset Datasource

Select

SaaS
Customer Managed

Configures Asset datasource for a company in the environment

Request Body
  • indexServer int32

    Pseudo client id of the Index Server

  • credentials int32[]

    List of Credential ids to be analysed

  • configProperties object[]
  • credentialId int32
  • cloudConnectionId int32
  • 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

  • discoveryCriteria object

    Model for Workload Discovery Selector Object

  • count int32
  • totalRecords int32
  • criteria WorkloadDiscoveryCriteriaEnum

    Possible values: [SUBSCRIPTIONS, REGIONS, PROJECTS, ZONES, APPLICATION]

    Selection criteria for workload discovery while running a TCO Assessment

  • details object[]

    Additional Details related to respective select

  • id int32
  • name string
  • value string
  • assessmentConfig object

    TCO Assessment Configuration Fields

  • utilizationFactorVM float

    Virtual Machine Utilization Percentage

  • standardRetention float

    Standard Retention in Days for Workloadd

  • annualGrowthRate float

    Annual Projected Growth Rate for Workload

  • dailyChangeRateVM float
  • dailyChangeRateDB float
  • dailyChangeRateFO float
  • storageReplicationTarget float
  • workloadDetails object[]
  • costdetails object[]
  • name string
  • value string
  • resourceDetails object[]
  • resourcetype string

    Type of the resource

  • count int32

    Number of resources of this type

  • resourceSize int64

    Sum of the size of all the resources of this type

  • details object[]
  • resourceName string
  • resourceProperties object[]
  • name string
  • value string
  • workloadtype string
  • discoveredCount int32

    Total Count of Workload Resources

  • discoveredSize int64

    Total Size In Bytes for Discovered Resources

  • commvaultCost object
  • primarySnapshotStorageCost int64
  • secondarySnapshotStorageCost int64
  • asrTotalVMEnvironment int64
  • primaryCloudStorageUsedCost int64
  • primaryCloudStorageUsed3YCost int64
  • secondaryCloudStorageUsedCost int64
  • secondaryCloudStorageUsed3YCost int64
  • protectionCost int64
  • primaryInfraCost int64
  • secondaryInfraCost int64
  • dataTranmissionCost int64
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
POST /asset/discovery/configuration    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body
{
"indexServer": 0,
"credentials": [
0
],
"configProperties": [
{
"credentialId": 0,
"cloudConnectionId": 0,
"cloudConnector": "AZURE",
"authType": "CREDENTIAL_VAULT",
"discoveryCriteria": {
"count": 0,
"totalRecords": 0,
"criteria": "SUBSCRIPTIONS",
"details": [
{
"id": 0,
"name": "string",
"value": "string"
}
]
},
"assessmentConfig": {
"utilizationFactorVM": 0,
"standardRetention": 0,
"annualGrowthRate": 0,
"dailyChangeRateVM": 0,
"dailyChangeRateDB": 0,
"dailyChangeRateFO": 0,
"storageReplicationTarget": 0
},
"workloadDetails": [
{
"costdetails": [
{
"name": "string",
"value": "string"
}
],
"resourceDetails": [
{
"resourcetype": "string",
"count": 0,
"resourceSize": 0,
"details": [
{
"resourceName": "string",
"resourceProperties": [
{
"name": "string",
"value": "string"
}
]
}
]
}
],
"workloadtype": "string",
"discoveredCount": 0,
"discoveredSize": 0
}
],
"commvaultCost": {
"primarySnapshotStorageCost": 0,
"secondarySnapshotStorageCost": 0,
"asrTotalVMEnvironment": 0,
"primaryCloudStorageUsedCost": 0,
"primaryCloudStorageUsed3YCost": 0,
"secondaryCloudStorageUsedCost": 0,
"secondaryCloudStorageUsed3YCost": 0,
"protectionCost": 0,
"primaryInfraCost": 0,
"secondaryInfraCost": 0,
"dataTranmissionCost": 0
}
}
]
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Asset/Discovery/Configuration' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"indexServer": 0,
"credentials": [
0
],
"configProperties": [
{
"credentialId": 0,
"cloudConnectionId": 0,
"cloudConnector": "AZURE",
"authType": "CREDENTIAL_VAULT",
"discoveryCriteria": {
"count": 0,
"totalRecords": 0,
"criteria": "SUBSCRIPTIONS",
"details": [
{
"id": 0,
"name": "string",
"value": "string"
}
]
},
"assessmentConfig": {
"utilizationFactorVM": 0,
"standardRetention": 0,
"annualGrowthRate": 0,
"dailyChangeRateVM": 0,
"dailyChangeRateDB": 0,
"dailyChangeRateFO": 0,
"storageReplicationTarget": 0
},
"workloadDetails": [
{
"costdetails": [
{
"name": "string",
"value": "string"
}
],
"resourceDetails": [
{
"resourcetype": "string",
"count": 0,
"resourceSize": 0,
"details": [
{
"resourceName": "string",
"resourceProperties": [
{
"name": "string",
"value": "string"
}
]
}
]
}
],
"workloadtype": "string",
"discoveredCount": 0,
"discoveredSize": 0
}
],
"commvaultCost": {
"primarySnapshotStorageCost": 0,
"secondarySnapshotStorageCost": 0,
"asrTotalVMEnvironment": 0,
"primaryCloudStorageUsedCost": 0,
"primaryCloudStorageUsed3YCost": 0,
"secondaryCloudStorageUsedCost": 0,
"secondaryCloudStorageUsed3YCost": 0,
"protectionCost": 0,
"primaryInfraCost": 0,
"secondaryInfraCost": 0,
"dataTranmissionCost": 0
}
}
]
}'