Creates a Stack.

POST {{baseUrl}}/stacks

Creates a stack in the specified compartment. You can create a stack from a Terraform configuration. The Terraform configuration can be directly uploaded or referenced from a source code control system. You can also create a stack from an existing compartment. You can also upload the Terraform configuration from an Object Storage bucket. For more information, see To create a stack.

Request Body

{"compartmentId"=>"{{compartment_ocid}}", "configSource"=>{"configSourceType"=>"in nisi", "workingDirectory"=>"proident Exc"}, "description"=>"consequat sed officia nostrud et", "displayName"=>"fugiat Lorem nostrud", "terraformVersion"=>"ad adipisicing do"}

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a
particular request, please provide the request ID.
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of retrying the same action. Retry tokens expire after
24 hours, but can be invalidated before then due to conflicting operations. For example,
if a resource has been deleted and purged from the system, then a retry of the original
creation request may be rejected.
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{"compartmentId":"laboris et","configSource":{"configSourceType":"GIT_CONFIG_SOURCE","workingDirectory":"dolor proident"},"definedTags":{},"description":"adipisicing eiusmod commodo","displayName":"sunt adipisicing dolor eu","freeformTags":{},"id":"exercitation in a","lifecycleState":"FAILED","stackDriftStatus":"IN_SYNC","terraformVersion":"aliquip quis minim","timeCreated":"1997-06-27T17:49:02.930Z","timeDriftLastChecked":"1948-08-01T08:01:48.417Z","variables":{}}