Connectors
Cloud visibility: Connectors (1.0.0)
Download OpenAPI specification:Download
API for interacting with cloud connectors.
Get cloud connectors
Returns a collection of cloud connectors.
Authorizations:
query Parameters
page_number | integer >= 1 Default: 1 The page number. |
page_size | integer >= 1 Default: 100 The maximum number of items in the response. |
Responses
Response samples
- 200
- 400
- 500
{- "pagination": {
- "page_number": 1,
- "page_size": 1
}, - "items": [
- {
- "id": "523fei31e32u1295231l579e",
- "name": "Azure Snow",
- "type": "Azure",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": {
- "contextId": "802a6d0a-d295-42c7-8856-1e4e1dc62785",
- "updatedAt": "2019-08-24T14:15:22Z",
- "type": "inProgress",
- "errorCode": "Account-Connection-Error"
}
}
]
}
Add cloud connector configuration
Creates a cloud connector configuration for any supported cloud connector type.
Authorizations:
Request Body schema: application/jsonrequired
type required | string Enum: "AwsS3" "AzureBlob" The cloud connector type. | ||||||||||||
CloudConnectorSaveAWSRequest (object) or CloudConnectorSaveAzureRequest (object) The cloud connector details. | |||||||||||||
One of
|
Responses
Request samples
- Payload
{- "type": "AwsS3",
- "connectionDetails": {
- "bucketName": "cv-automation",
- "reportPrefix": "cv",
- "reportName": "datareport",
- "region": "us-east-1",
- "accessKey": "ADIAZCSR2LUYAYP42KQQ",
- "secretKey": "khjcfgg3jh42ffFASD@34k2j"
}
}
Response samples
- 201
- 400
- 500
{- "id": "523fei31e32u1295231l579e",
- "name": "Azure Snow",
- "type": "Azure",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": {
- "contextId": "802a6d0a-d295-42c7-8856-1e4e1dc62785",
- "updatedAt": "2019-08-24T14:15:22Z",
- "type": "inProgress",
- "errorCode": "Account-Connection-Error"
}
}
Get retrieval information
Returns a collection of retrieval details for a given cloud connector.
Authorizations:
path Parameters
id required | string The unique ID of the cloud connector for which the retrieval details are returned. |
query Parameters
page_number | integer >= 1 Default: 1 The page number. |
page_size | integer >= 1 Default: 100 The maximum number of items in the response. |
Responses
Response samples
- 200
- 400
- 404
- 500
{- "pagination": {
- "page_number": 1,
- "page_size": 1
}, - "items": [
- {
- "contextId": "ecc314f8-49c2-4c33-b2cc-ee44a23ab292",
- "calendarMonth": "2022-04-01",
- "updatedAt": "2019-08-24T14:15:22Z",
- "lastInProgressTime": "2019-08-24T14:15:22Z",
- "lastSuccessTime": "2019-08-24T14:15:22Z",
- "type": "inProgress",
- "errorCode": "Account-Connection-Error"
}
]
}
Update credentials
Modifies the credentials for a given cloud connector.
Authorizations:
path Parameters
id required | string The unique ID of the cloud connector for which the credentials are modified. |
Request Body schema: application/merge-patch+jsonrequired
required | CloudConnectorUpdateCredentialsAWSRequest (object) or CloudConnectorUpdateCredentialsAzureRequest (object) The cloud connector credentials. | ||||
One of
|
Responses
Request samples
- Payload
{- "credentials": {
- "accessKey": "ADIAZCSR2LUYAYP42KQQ",
- "secretKey": "khjcfgg3jh42ffFASD@34k2j"
}
}
Response samples
- 200
- 400
- 404
- 500
{- "id": "523fei31e32u1295231l579e",
- "name": "Azure Snow",
- "type": "Azure",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": {
- "contextId": "802a6d0a-d295-42c7-8856-1e4e1dc62785",
- "updatedAt": "2019-08-24T14:15:22Z",
- "type": "inProgress",
- "errorCode": "Account-Connection-Error"
}
}
Validate report name
Validates that the given report name is unique across the given cloud connector type. This validation is also done when a cloud connector configuration is created.
Authorizations:
Request Body schema: application/jsonrequired
type required | string Enum: "AwsS3" "AzureBlob" The cloud connector type. |
name required | string The cloud connector name. |
Responses
Request samples
- Payload
{- "type": "AwsS3",
- "name": "datareport"
}
Response samples
- 200
- 400
- 500
{- "unique": true
}
Test cloud connector configuration
Tests the cloud connector configuration for any supported cloud connector type. This test is also done when a cloud connector configuration is created.
Authorizations:
Request Body schema: application/jsonrequired
type required | string Enum: "AwsS3" "AzureBlob" The cloud connector type. | ||||||||||||
CloudConnectorSaveAWSRequest (object) or CloudConnectorSaveAzureRequest (object) The cloud connector details. | |||||||||||||
One of
|
Responses
Request samples
- Payload
{- "type": "AwsS3",
- "connectionDetails": {
- "bucketName": "cv-automation",
- "reportPrefix": "cv",
- "reportName": "datareport",
- "region": "us-east-1",
- "accessKey": "ADIAZCSR2LUYAYP42KQQ",
- "secretKey": "khjcfgg3jh42ffFASD@34k2j"
}
}
Response samples
- 200
- 400
- 500
{- "status": {
- "code": "bucketIsEmpty",
- "message": "bucket does not contain any reports"
}
}