Create a configuration plan

POST/configuration/plans

Calculates the steps required to bring the account to the state described in a configuration manifest, and returns them as a signed plan.

This operation is synchronous and does not modify any resource. The plan expires 24 hours after it is created, as indicated by expires_at. To apply it, submit the plan to the apply operation before it expires.

If the manifest is invalid, the API returns validation_failed with the same error codes reported by the validation operation, and no plan is created.

AuthorizationBearer <token>

Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A declarative configuration manifest document (cademi/configuration-manifest/v1).

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/configuration/plans" \  -H "Content-Type: application/json" \  -d '{    "resources": [      {        "kind": "showcase",        "ref": "string"      }    ]  }'
{  "data": {    "expires_at": "2019-08-24T14:15:22Z",    "id": "string",    "object": "plan",    "revisions": {},    "signature": "string",    "steps": [      {        "action": "create",        "attributes": {},        "changes": {},        "external_id": "string",        "id": "string",        "kind": "string",        "ref": "string",        "requires": [          "string"        ],        "revision": "string",        "skip_reason": "string"      }    ],    "summary": {      "create": 0,      "delete": 0,      "noop": 0,      "skip": 0,      "update": 0    }  }}