CreateVccGrantRule
Users can use this API to connect Lingjun instance to the Lingjun HUB instance of the target account. After authorization, the target account can be associated with your Lingjun connection by using the authorized Lingjun HUB instance.
Operation description
When you call this operation to create cross-account authorization for Lingjun HUB, note that:
-
Make sure that the Alibaba Cloud ID and Lingjun HUB instance that you want to authorize are correct.
-
If you authorize the account of the other party, the account of the other party can load your local network instance to its Lingjun HUB, and the other party's network will be connected to your network. Please proceed with caution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:CreateVccGrantRule |
create |
*VccGrantRule
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Network Instance ID |
vcc-8rgvqazb |
| GrantTenantId |
string |
Yes |
Authorized Tenant ID |
1620939556166277 |
| RegionId |
string |
Yes |
The region ID. |
cn-wulanchabu |
| ErId |
string |
Yes |
Lingjun HUB ID |
er-kkopgtne |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
AjaxResult |
||
| Code |
integer |
The response status code. |
0 |
| Message |
string |
The error message. (If the instance is in the Exception state, the exception cause is prompted.) |
Success |
| RequestId |
string |
Request ID of the current request |
AC8C713A-A9F4-5984-A5E1-76496DF35153 |
| Content |
object |
The response parameters. |
{} |
| GrantRuleId |
string |
Authorized resource primary key ID |
grant-rule-8rgvqazb |
| AccessDeniedDetail |
string |
The details about the access denial. This parameter is returned only if Resource Access Management (RAM) permission verification failed. |
None |
Examples
Success response
JSON format
{
"Code": 0,
"Message": "Success",
"RequestId": "AC8C713A-A9F4-5984-A5E1-76496DF35153",
"Content": {
"GrantRuleId": "grant-rule-8rgvqazb"
},
"AccessDeniedDetail": "None"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.