Generate Connection Template
Returns the URLs for AWS CloudFormation and terraform templates corresponding to a given configuration of asset types.
- application/json
Request Body
- asset_types_enabled string[]
The asset types for which the template is to be generated. Valid values are any of ["EC2/EBS", "RDS", "DynamoDB", "EC2MSSQL", "S3", "EBS"].
NOTE -
- EC2/EBS is required for EC2MSSQL.
- EBS as a value is deprecated in favor of EC2/EBS.
- aws_account_id string
Account ID for the AWS environment to be connected Mandatory to pass a 12 digit string if show_manual_resources is set to true
- aws_region string
AWS Region of the AWS environment to be connected Mandatory to pass a non-empty string if show_manual_resources is set to true
- show_manual_resources boolean
Returns the resources to be created manually if set to true
Responses
- 200
- default
Success
- application/api.clumio.aws-templates=v1+json
- Schema
- Example (from schema)
Schema
_links object
- cloudformation_url string
The latest available URL for the template.
config object
- deployable_cloudformation_url string
The latest available URL for the deployable template.
resources object
- terraform_url string
The latest available URL for the terraform template.
{
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
}
},
"cloudformation_url": "string",
"config": {
"asset_types_enabled": [
"string"
],
"available_template_version": "string",
"dynamodb": {
"available_template_version": "string"
},
"ebs": {
"available_template_version": "string"
},
"ec2": {
"available_template_version": "string"
},
"ec2_mssql": {
"available_template_version": "string"
},
"rds": {
"available_template_version": "string"
},
"s3": {
"available_template_version": "string"
},
"warm_tier_protect": {
"asset_types_enabled": [
"string"
],
"available_template_version": "string",
"dynamodb": {
"available_template_version": "string"
}
}
},
"deployable_cloudformation_url": "string",
"resources": {
"policies": {},
"roles": {},
"rules": {},
"ssm_documents": {},
"topics": {}
},
"terraform_url": "string"
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}
POST /connections/aws/templates
Authorization
Request
Request
curl -L -X POST 'https://us-west-2.api.clumio.com/connections/aws/templates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-templates=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"asset_types_enabled": [
"string"
],
"aws_account_id": "string",
"aws_region": "string",
"show_manual_resources": true
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/connections/aws/templates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-templates=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"asset_types_enabled": [
"string"
],
"aws_account_id": "string",
"aws_region": "string",
"show_manual_resources": true
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/connections/aws/templates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-templates=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"asset_types_enabled": [
"string"
],
"aws_account_id": "string",
"aws_region": "string",
"show_manual_resources": true
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/connections/aws/templates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-templates=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"asset_types_enabled": [
"string"
],
"aws_account_id": "string",
"aws_region": "string",
"show_manual_resources": true
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/connections/aws/templates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-templates=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"asset_types_enabled": [
"string"
],
"aws_account_id": "string",
"aws_region": "string",
"show_manual_resources": true
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/connections/aws/templates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-templates=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"asset_types_enabled": [
"string"
],
"aws_account_id": "string",
"aws_region": "string",
"show_manual_resources": true
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/connections/aws/templates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-templates=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"asset_types_enabled": [
"string"
],
"aws_account_id": "string",
"aws_region": "string",
"show_manual_resources": true
}'