Get TokenPlan account details and organization information.
Prerequisites
You have obtained the AccessKey of an Alibaba Cloud account or a RAM user, and the identity has been granted the RAM permissions required to call this operation. We recommend that you set the AccessKey as the environment variables ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET instead of hard-coding it.
Request description
- HTTP method:GET
-
Request URL
Region
Endpoint
Singapore
GET https://modelstudio.ap-southeast-1.aliyuncs.com/tokenplan/account -
Authentication
This operation is an Alibaba Cloud OpenAPI operation that uses AccessKey-based signatures (the
ACS3-HMAC-SHA256algorithm). TheAuthorization: Bearer {API_KEY}scheme is not supported. A request must carry the common headersx-acs-action: GetTokenPlanAccountDetail,x-acs-version: 2026-02-10,x-acs-date,x-acs-content-sha256,x-acs-signature-nonce, andAuthorization. We recommend that you call this operation with an Alibaba Cloud SDK or OpenAPI Explorer so that you do not have to calculate the signature yourself.
Request parameters
This API has no request parameters.
Response parameters
Parameter | Type | Description |
|---|---|---|
Success | boolean | Whether the API call was successful: |
Code | string | Response status code. |
Message | string | Response message. |
Data | object | Business data. |
AccountId | string | Account ID. |
AccountType | string | 账号类型: |
IsDeleted | boolean | 账号全局状态:0=正常,1=已冻结 |
Name | string | 账号显示名称 |
AliyunUid | string | 阿里云 UID(ALIYUN 类型账号) |
string | 邮箱(SSO 类型账号) | |
CreatedAt | string | Creation time. |
OrgMemberships | Array[Object] | 组织成员关系列表(树形结构,组织 → 工作空间) |
Array[Object] | ||
OrgId | string | Organization ID. |
MemberStatus | string | 组织成员状态 |
RoleId | string | 组织角色 ID |
RoleCode | string | 组织角色编码 |
Workspaces | Array[Object] | 该组织下账号已加入的工作空间列表 |
object | 工作空间列表。 | |
WorkspaceId | string | 工作空间 ID |
MemberStatus | string | 成员状态 |
RoleId | string | 工作空间角色 ID |
RoleCode | string | 工作空间角色编码 |
HttpStatusCode | integer | HTTP status code. |
RequestId | string | Unique request ID. |
Request example
This operation uses Alibaba Cloud OpenAPI signatures. In the following example, ${SIGNATURE} must be calculated with the ACS3-HMAC-SHA256 algorithm, and x-acs-date and x-acs-signature-nonce must be replaced with actual values.