Preview Organization content
Select
SaaS
Customer Managed
Discovers the accounts in the AWS organization that matches the defined content rules.
- application/json
Request Body
credential object required
- accessNodes object[] required
List of servers and server groups to use to access the organization.
tagContents object
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
discoveredAccounts object[]
{
"discoveredAccounts": [
{
"accountName": "string",
"accountId": "string",
"accountArn": "string",
"accountEmail": "string",
"organizationPath": "string",
"accountStatus": "ACTIVE"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- errorType AWSOrganizationErrorType
Possible values: [
UNKNOWN
,INVALID_REQUEST
,ACCESS_NODE_COMMUNICATION_FAILED
,SERVICE_ENDPOINT_NOT_REACHABLE
,CREDENTIAL_INVALID
,NOT_ENOUGH_PERMISSIONS
,ALL_ACCOUNTS_FAILED_DISCOVERY
]Type of AWS Organization specific error that occured
- errorMessage string
{
"errorType": "UNKNOWN",
"errorMessage": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
POST /v4/cloud/aws/organization/content/preview
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/AWS/Organization/Content/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"credential": {
"credentialType": "CREDENTIALS_MANAGER_CREDENTIAL",
"credentialId": 0,
"awsIamRoleArn": "string",
"awsExternalId": "string"
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"tagContents": {
"tagType": "ORGANIZATIONAL_UNIT_TAG",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/AWS/Organization/Content/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"credential": {
"credentialType": "CREDENTIALS_MANAGER_CREDENTIAL",
"credentialId": 0,
"awsIamRoleArn": "string",
"awsExternalId": "string"
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"tagContents": {
"tagType": "ORGANIZATIONAL_UNIT_TAG",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/AWS/Organization/Content/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"credential": {
"credentialType": "CREDENTIALS_MANAGER_CREDENTIAL",
"credentialId": 0,
"awsIamRoleArn": "string",
"awsExternalId": "string"
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"tagContents": {
"tagType": "ORGANIZATIONAL_UNIT_TAG",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/AWS/Organization/Content/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"credential": {
"credentialType": "CREDENTIALS_MANAGER_CREDENTIAL",
"credentialId": 0,
"awsIamRoleArn": "string",
"awsExternalId": "string"
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"tagContents": {
"tagType": "ORGANIZATIONAL_UNIT_TAG",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/AWS/Organization/Content/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"credential": {
"credentialType": "CREDENTIALS_MANAGER_CREDENTIAL",
"credentialId": 0,
"awsIamRoleArn": "string",
"awsExternalId": "string"
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"tagContents": {
"tagType": "ORGANIZATIONAL_UNIT_TAG",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/AWS/Organization/Content/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"credential": {
"credentialType": "CREDENTIALS_MANAGER_CREDENTIAL",
"credentialId": 0,
"awsIamRoleArn": "string",
"awsExternalId": "string"
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"tagContents": {
"tagType": "ORGANIZATIONAL_UNIT_TAG",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Cloud/AWS/Organization/Content/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"credential": {
"credentialType": "CREDENTIALS_MANAGER_CREDENTIAL",
"credentialId": 0,
"awsIamRoleArn": "string",
"awsExternalId": "string"
},
"accessNodes": [
{
"id": 0,
"name": "string",
"displayName": "string",
"accessNodeType": "SERVER"
}
],
"tagContents": {
"tagType": "ORGANIZATIONAL_UNIT_TAG",
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}'