Skip to content

Create C

POST
/v1/armada/datacenter_contract

Create a contract

Authorizations

Request Body required

object
start_date

Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone

string format: date-time
end_date

Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone

string format: date-time
cancel_date

Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone

string format: date-time
period_days

The number of days in the contract period

integer
extend_period_days

The service extend period in days

integer
notice_days

The number of days notice required to cancel the contract

integer
purchase_order

The purchase order number or description for the contract

string
>= 1 characters
payment_term_days

The number of days after the invoice is sent that payment is due

integer
hosts

The IDs of the hosts this contract is associated with

Array<string>

Responses

200

Successful Response

object
start_date

Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone

string format: date-time
end_date

Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone

string format: date-time
cancel_date

Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone

string format: date-time
period_days

The number of days in the contract period

integer
extend_period_days

The service extend period in days

integer
notice_days

The number of days notice required to cancel the contract

integer
purchase_order

The purchase order number or description for the contract

string
>= 1 characters
payment_term_days

The number of days after the invoice is sent that payment is due

integer
hosts

The IDs of the hosts this contract is associated with

Array<string>
datacenter_contract_id
required
string format: uuid

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string