GrantBsnCode

Updated at:
Copy as MD

You can call the GrantBsnCode operation to grant cross-account authorization for a service identification number. This is required if the account that generates the service identification number is different from the account that uses it.

Request parameters

Name

Type

Required

Example

Description

Action

String

Yes

GrantBsnCode

The name of the operation. This is a required parameter. Set the value to GrantBsnCode.

Sn

String

Yes

1131-*******-233

The service identification number.

Aliuid

Long

Yes

456*******163

The Alibaba Cloud account ID (KP/AliUid) of the service identification number owner.

GrantToAliuid

Long

Yes

124*******345

ID of the authorized Alibaba Cloud account (KP/AliUid)

Notes

String

No

Grant to subsidiary

The remarks.

Response parameters

Name

Type

Example

Description

Sn

String

1131-*******-233

The service identification number.

Aliuid

Long

456*******163

The Alibaba Cloud account ID (KP/AliUid) of the service identification number owner.

GrantToAliuid

Long

124*******345

Alibaba Cloud account ID (KP/AliUid)

Notes

String

Grant to subsidiary

The remarks.

Success

String

true

Indicates whether the call was successful.

Request example

https://bsn.aliyuncs.com/?Action=GrantBsnCode
&GrantToAliuid=4564313156161****
&Sn=a3f6d494-c6df
&Notes=Remarks
&AliUid=456431315616****
&<Common request parameters>

Response example

XML format

<GrantBsnResponse>
  <Sn>a3f6d494-c6df</Sn>
  <AliUid>4564313156161****</AliUid>
  <GrantToAliuid >4564313156161****</GrantToAliuid>
  <Notes>Remarks</Notes>
  <Success>true<Success>
</GrantBsnResponse>

JSON format

{
  "Sn": "a3f6d494-c6df"
  "AliUid": 456431315616****,
  "GrantToAliuid": 4564313156161****,
  "Success": true,
  "Notes": "Remarks"
}

Error codes

Error code

Error message

401

Invalid account ID, invalid destination account ID, or invalid current account ID.

402

Invalid instance.

403

The current instance does not have an IP address available for ICP filing.

405

The Sn does not exist.

406

The service identification number does not exist.

407

The information does not exist.

408

Invalid account.

410

Trial products cannot be attached to a service identification number.

411

This product type cannot be attached to a service identification number.

412

The specified account is not the owner of the instance.

413

The current instance status is not suitable for ICP filing.

504

The operation failed.

506

Illegal request.

602

A required parameter cannot be empty.

603

The number of service identification numbers is limited to 1 to 20 per request.

604

The specified account is different from the account that invokes the operation.

609

The number of service identification numbers attached to the instance has reached the upper limit.

600

This type of product does not support ICP filing.

616

The service identification number does not belong to the account specified in the request.

617

The number of authorizations has reached the upper limit.

619

Authorization failed.

622

The Sn is already authorized and cannot be authorized again.

623

The number of granted authorizations has reached the upper limit.