Create Tenant Account

View as Markdown
Create a Tenant Account. Org must have an Infrastructure Provider entity and its ID must match the Infrastructure Provider ID in request data. User must have `FORGE_PROVIDER_ADMIN` authorization role Infrastructure Provider can create a Tenant Account by specifying the Tenant's UUID or Tenant's org name. This will set the status of the Tenant Account to "Invited". Then the Tenant can view this account information and are able to confirm/accept the account by updating the Tenant Account.

Authentication

AuthorizationBearer
``` export JWT_BEARER_TOKEN="<jwt-bearer-token>" # Example org name: "acme-inc export ORG_NAME=<org-name> # Use the JWT bearer token in your API request auth header: curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://carbide-rest-api.carbide.svc.cluster.local/v2/org/$ORG_NAME/carbide/user/current ```

Path parameters

orgstringRequired

Request

This endpoint expects an object.
infrastructureProviderIdstringRequiredformat: "uuid"
tenantOrgstringRequiredformat: "^[A-Za-z0-9-_]+$">=1 character
Must be a valid Org name

Response

Created
idstringRead-onlyformat: "uuid"
infrastructureProviderIdstringformat: "uuid"
infrastructureProviderOrgstring
tenantIdstring or nullformat: "uuid"
tenantOrgstring or null
tenantContactobject
Details of the user collected from authentication tokens
allocationCountinteger
statusenum
Status values for Tenant Account objects
Allowed values:
statusHistorylist of objects
createddatetimeRead-only
updateddatetimeRead-only

Errors

400
Bad Request Error
403
Forbidden Error