Create cloud tenant
Create cloud tenant. Available for Operations account with platform account management permissions. Accepts type, name, status, external IDs (pyraTenantId, cloudConsumptionId, providerId), and optional account reference. Returns the created cloud tenant object with revision 1.
Body
typestring · enumOptionalPossible values:
namestring · min: 1 · max: 100Required
statusstring · enumOptionalPossible values:
Responses
201
Created
application/json
idstringOptional
namestringOptional
revisioninteger · int32Optional
statusstringOptional
typestringOptional
400
Bad Request
application/json
post/public/v1/accounts/cloud-tenants
POST /public/v1/accounts/cloud-tenants HTTP/1.1
Host: api.platform.softwareone.com
Content-Type: application/json
Accept: */*
Content-Length: 281
{
"type": "CspAzure",
"name": "AdAstraflex Germany",
"status": "Active",
"externalIds": {
"pyraTenantId": "c6469e97-302a-408a-8589-2122a0bb725d",
"cloudConsumptionId": "012b2a18-1df0-473f-8759-c3c019b54486",
"providerId": "7270638c-ca21-4500-ac82-25dca634566a"
},
"account": {
"id": "ACC-2253-2884"
}
}{
"id": "CLT-3206-7146",
"revision": 1,
"name": "AdAstraflex Germany",
"status": "Active",
"type": "CspAzure",
"account": {
"id": "ACC-2253-2884",
"name": "AdAstrafleX"
},
"externalIds": {
"pyraTenantId": "c6469e97-302a-408a-8589-2122a0bb725d",
"cloudConsumptionId": "012b2a18-1df0-473f-8759-c3c019b54486",
"providerId": "7270638c-ca21-4500-ac82-25dca634566a"
},
"audit": {
"created": {
"at": "2024-02-01T09:12:23+00:00",
"by": {
"id": "TKN-9299-7556",
"name": "Migration token"
}
},
"updated": {
"at": "2024-02-01T09:12:23+00:00",
"by": {
"id": "TKN-9299-7556",
"name": "Migration token"
}
}
}
}Last updated
Was this helpful?