API referenceCloud targets and applications
POST /cloud/targets
POST /cloud/targets: OrkStage Control API v1 endpoint reference.
POST
header
AuthorizationBearer <token>Organization API key (scoped). Sessions use the cookie instead.
x-orkstage-csrf?unknownCookie sessions: send "1" on POST/PATCH/PUT/DELETE. Not needed with an API key.
application/json- body
provider*stringValue in
"aws""azure""gcp""oci""digitalocean""vultr""coreweave""magalu""vercel""render""supabase""mock"name*stringLength
2 <= length <= 80environment?stringDefault
"any"Value in
"production""staging""development""sandbox""any"config*credentialRef?stringMatch
^(env|aws-sm):\/\/\S+$Length
length <= 300allowedRegions*array<>Items
1 <= itemsdefaultRegion*stringLength
2 <= lengthtenantId?stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidmaxConcurrentDeployments?integerRange
1 <= value <= 20Default
3curl -X POST 'http://localhost:4300/api/v1/cloud/targets' \ -H 'Content-Type: application/json' \ -d '{ "provider": "aws", "name": "string", "config": { "property1": null, "property2": null }, "allowedRegions": [ "string" ], "defaultRegion": "string"}'Empty