Create Blueprint Mapping Using POST

Create Blueprint Mapping Using POST

Retrieves and parses the specified Terraform configuration file(s) and returns relevant information for blueprint construction.

Request
URI
POST
https://{api_host}/blueprint/api/blueprint-integrations/terraform/create-blueprint-mapping
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /blueprint/api/about


Request Body
TerraformConfigurationSourceReference of type(s) application/json
Required
{
    "commitId": "string",
    "repositoryId": "string",
    "sourceDirectory": "string"
}
string
commitId
Optional

ID that identifies the commit that corresponds to the desired version of the remote file(s).

string As uuid As uuid
repositoryId
Optional

The ID of the relevant configuration source repository.

string
sourceDirectory
Optional

A path to the desired Terraform directory.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns TerraformToBlueprintMapping of type(s) application/json
"TerraformToBlueprintMapping Object"
array of string
compatibleVersions
Optional

Compatible versions of Terraform that can be used to execute this configuration.

object
configurationSourceReference
Optional

Reference information about a Terraform Configuration source that stores Terraform configuration files.

array of object
outputValues
Optional

Information about output values generated by the Terraform configuration.

array of object
providers
Optional

Information about providers used in the Terraform configuration.

array of object
variables
Optional

Information about variables expected by the Terraform configuration.

array of string
warnings
Optional

A list of warnings related to the Terraform configuration.


400

Bad Request

Operation doesn't return any data structure

401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/blueprint/api/blueprint-integrations/terraform/create-blueprint-mapping