Run Terraform Job
POST/v1/terraform/run_terraform_job
Run a terraform job
Request
- application/json
Body
required
The region ID of the region selected for the terraform job.
The disk ID of the disk selected for the terraform job.
The size ID of the size selected for the terraform job.
The resource group ID of the resource group selected for the terraform job.
The operating system ID of the operating system selected for the terraform job.
The zone of the region selected for the terraform job.
The total number virtual machines assigned to the resource group
Possible values: non-empty and <= 64 characters
The routing preference for the virtual machine
Possible values: non-empty and <= 64 characters
The user who triggered the terraform job.
Possible values: non-empty and <= 64 characters
The subnet range for the virtual machine
Possible values: non-empty and <= 64 characters
The organization name selected for the terraform job.
The product_guid selected for the terraform job.
The sandbox guid selected for the terraform job.
The rhdeployment guid selected for the terraform job.
Possible values: non-empty and <= 64 characters
The site selected for the terraform job.
Possible values: non-empty and <= 64 characters
The fleet selected for the terraform job.he subnet range for the virtual machine
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
The region ID of the region selected for the terraform job.
The disk ID of the disk selected for the terraform job.
The size ID of the size selected for the terraform job.
The resource group ID of the resource group selected for the terraform job.
The operating system ID of the operating system selected for the terraform job.
Possible values: non-empty and <= 64 characters
The name of the user that was logged in for the terraform job.
The name of the user that was logged in for the terraform job.
Possible values: non-empty
Raw JSON data sent from portal.
{
"terraform_vm_region_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"terraform_vm_disk_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"terraform_vm_size_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"terraform_vm_resource_group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"terraform_vm_operating_system_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"terraform_user_name": "string",
"terraform_job_timestamp": "2024-07-29T15:51:28.071Z",
"terraform_job_raw_json": "string",
"terraform_job_record_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}