跳到主要内容

CreateTenant

调用该接口创建租户。

Request​

post \tenants

Request Body​

DescriptionTypeSchema
create tenant body paramsObjectv1TenantCreateBody

v1TenantCreateBody​

NameTypeDescription
adminset tenant admin
auth_typestringset tenant auth type: internal
id_provider_typestringexternal auth type : OIDC
remarkstringtenant remark
tenant_idstringtenant id
titlestringtenant title

Response​

Response 200​

Code2DescriptionTypeSchema
200OKObjectv1CreateTenantResponse

v1CreateTenantResponse​

NameTypeDescription
admin_usernamestringcreated tenant admin username
reset_keystringtenant admin password reset key
tenant_idstringcreated tenant id
tenant_titlestringcreated tenant title

Response 400​

Code3DescriptionType
400INVALID_ARGUMENT{ { }}

Response 409​

Code3DescriptionType
409ALREADY_EXISTS{ { }}

Response 500​

Code3DescriptionType
500UNEXPECT_INTERNAL{ { }}

Response default​

Code2DescriptionTypeSchema
defaultAn unexpected error response.ObjectrpcStatus

rpcStatus​

NameTypeDescription
codeinteger
detailsArray[protobufAny][ 具体参数可见下面 protobufAny ]
messagestring

protobufAny​

NameTypeDescription
@typestring