Create Cloud Connection
Select
Creates a cloud connection.
- application/json
Request Body
- cloudType CloudConnectionCloudType
Possible values: [
AMAZON_WEB_SERVICES
,MICROSOFT_AZURE
]Cloud type for the connection.
- name string
Name of the cloud connection.
credentials object
- accessNodes object[]
List of servers and server groups to use to access the cloud connection.
cloudSpecificConfiguration object
- 200
- 400
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
- id int32
- name string
{
"id": 0,
"name": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
Tells about the error occured
- errorCode ErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,VALUE_NOT_FOUND
,UNKNOWN_EXCEPTION
,CONNECTION_PROBLEM
,UNKNOWN_SQL_ERROR
,INVALID_USER
,INVALID_OPERATION_TYPE
,INTERNAL_SERVER_PROBLEM
,INSUFFICIENT_USER_PERMISSION_ON_ENTITY
,INVALID_ENTITY_ID
,REFRESH_TOKEN_EXPIRED
]Error code value
{
"errorMessage": "string",
"errorCode": "NO_ERROR"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
Tells about the error occured
- errorCode ErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,VALUE_NOT_FOUND
,UNKNOWN_EXCEPTION
,CONNECTION_PROBLEM
,UNKNOWN_SQL_ERROR
,INVALID_USER
,INVALID_OPERATION_TYPE
,INTERNAL_SERVER_PROBLEM
,INSUFFICIENT_USER_PERMISSION_ON_ENTITY
,INVALID_ENTITY_ID
,REFRESH_TOKEN_EXPIRED
]Error code value
{
"errorMessage": "string",
"errorCode": "NO_ERROR"
}
POST /v4/cloud/cloudconnection
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/CloudConnection' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudType": "AMAZON_WEB_SERVICES",
"name": "string",
"credentials": {
"credentialType": "AWS_STS_ASSUME_ROLE",
"credentialId": 0
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"cloudSpecificConfiguration": {
"aws": {
"regions": "string",
"iamRoleAccountId": "string"
},
"azure": {
"tenantId": "string",
"tenantName": "string",
"environment": "string",
"subscriptions": [
{
"name": "string",
"id": "string",
"uuid": "string",
"email": "string"
}
],
"discoverAllSubscription": false
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/CloudConnection' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudType": "AMAZON_WEB_SERVICES",
"name": "string",
"credentials": {
"credentialType": "AWS_STS_ASSUME_ROLE",
"credentialId": 0
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"cloudSpecificConfiguration": {
"aws": {
"regions": "string",
"iamRoleAccountId": "string"
},
"azure": {
"tenantId": "string",
"tenantName": "string",
"environment": "string",
"subscriptions": [
{
"name": "string",
"id": "string",
"uuid": "string",
"email": "string"
}
],
"discoverAllSubscription": false
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/CloudConnection' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudType": "AMAZON_WEB_SERVICES",
"name": "string",
"credentials": {
"credentialType": "AWS_STS_ASSUME_ROLE",
"credentialId": 0
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"cloudSpecificConfiguration": {
"aws": {
"regions": "string",
"iamRoleAccountId": "string"
},
"azure": {
"tenantId": "string",
"tenantName": "string",
"environment": "string",
"subscriptions": [
{
"name": "string",
"id": "string",
"uuid": "string",
"email": "string"
}
],
"discoverAllSubscription": false
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/CloudConnection' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudType": "AMAZON_WEB_SERVICES",
"name": "string",
"credentials": {
"credentialType": "AWS_STS_ASSUME_ROLE",
"credentialId": 0
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"cloudSpecificConfiguration": {
"aws": {
"regions": "string",
"iamRoleAccountId": "string"
},
"azure": {
"tenantId": "string",
"tenantName": "string",
"environment": "string",
"subscriptions": [
{
"name": "string",
"id": "string",
"uuid": "string",
"email": "string"
}
],
"discoverAllSubscription": false
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/CloudConnection' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudType": "AMAZON_WEB_SERVICES",
"name": "string",
"credentials": {
"credentialType": "AWS_STS_ASSUME_ROLE",
"credentialId": 0
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"cloudSpecificConfiguration": {
"aws": {
"regions": "string",
"iamRoleAccountId": "string"
},
"azure": {
"tenantId": "string",
"tenantName": "string",
"environment": "string",
"subscriptions": [
{
"name": "string",
"id": "string",
"uuid": "string",
"email": "string"
}
],
"discoverAllSubscription": false
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/CloudConnection' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudType": "AMAZON_WEB_SERVICES",
"name": "string",
"credentials": {
"credentialType": "AWS_STS_ASSUME_ROLE",
"credentialId": 0
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"cloudSpecificConfiguration": {
"aws": {
"regions": "string",
"iamRoleAccountId": "string"
},
"azure": {
"tenantId": "string",
"tenantName": "string",
"environment": "string",
"subscriptions": [
{
"name": "string",
"id": "string",
"uuid": "string",
"email": "string"
}
],
"discoverAllSubscription": false
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/CloudConnection' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudType": "AMAZON_WEB_SERVICES",
"name": "string",
"credentials": {
"credentialType": "AWS_STS_ASSUME_ROLE",
"credentialId": 0
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"cloudSpecificConfiguration": {
"aws": {
"regions": "string",
"iamRoleAccountId": "string"
},
"azure": {
"tenantId": "string",
"tenantName": "string",
"environment": "string",
"subscriptions": [
{
"name": "string",
"id": "string",
"uuid": "string",
"email": "string"
}
],
"discoverAllSubscription": false
}
}
}'