授予账户授权
curl --request POST \
--url https://api.hybridbox.io/v1/public/accounts/{account_id}/auth/authorizations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject_id": "<string>",
"capability_key": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"grant_kind": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject_id": "<string>",
"subject_type": "<string>",
"capability_key": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_type": "<string>",
"revoked_at": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt
Use this file to discover all available pages before exploring further.
Public API bearer credential sent as Authorization: Bearer <token>. Use either an OAuth access token or a Hybridbox Service account token.
用于授予新的基于能力的授权的架构。
授予类型
capability, account_owner, super_admin 用户或组标识符
1主体类型:用户 或 组
user, group, service_account 能力授予的能力键
作用域资源标识符
作用域资源类型
client, account, workspace, domain, dns_record, mailbox, redirect, forwarding, credential, tenant, route, proxy 此页面对您有帮助吗?
curl --request POST \
--url https://api.hybridbox.io/v1/public/accounts/{account_id}/auth/authorizations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject_id": "<string>",
"capability_key": "<string>",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"grant_kind": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject_id": "<string>",
"subject_type": "<string>",
"capability_key": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_type": "<string>",
"revoked_at": "2023-11-07T05:31:56Z"
}