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.
^ACC-\d\d\d\d-\d\d\d\d$^ACC-\d\d\d\d-\d\d\d\d$^ACC-\d\d\d\d-\d\d\d\d$^ACC-\d\d\d\d-\d\d\d\d$^ACC-\d\d\d\d-\d\d\d\d$Created
Bad Request
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"
}
}
}
}