GetBsnByResource
Updated at:
Copy as MD
You can call GetBsnByResource to query information about all service identification numbers attached to a cloud product instance.
Request parameters
| Name | Type | Required | Example | Description |
| Action | String | Yes | GetBsnByResource | The name of the operation. This is a required parameter. Set the value to GetBsnByResource. |
| resourceType | Integer | Yes | 1 | The type of the cloud product. Valid values:
|
| resourceId | String | Yes | 4123fsd634 | The ID of the cloud product instance. |
| aliuid | Long | Yes | 456*******163 | The Alibaba Cloud account ID of the instance owner. |
Response parameters
| Name | Type | Description |
| datas | List<BsnPopDO> | A list of service identification numbers attached to the specified instance. For more information about the bsnDO object, see the following table. |
| Name | Type | Example | Description |
| aliUid | Long | 456*******163 | The ID of the Alibaba Cloud account that owns the cloud product instance attached to the service identification number. |
| resourceType | Integer | 1 | The type of the cloud product attached to the service identification number.
|
| resourceId | String | ATX140*******c6f | The ID of the cloud product instance attached to the service identification number. |
| sn | String | 4f9f0d9c-*******69448375e0f8 | The service identification number. One service identification number can be used to submit one website ICP filing on the Alibaba Cloud ICP filing platform. |
| status | Integer | 1 | The status of the service identification number:
|
| beianNum | String | - | The website ICP filing number issued by the Ministry of Industry and Information Technology (MIIT) after the ICP filing is successful. This parameter is empty if the filing is not successful. |
| opSource | Integer | 2 | Always 2. This parameter can be ignored. |
Request example
https://bsn.aliyuncs.com/?Action=GetBsnByResource
&resourceType =1
& resourceId=4123fsd634
&aliuid=456*******163
&<Common request parameters>Response examples
XML format
<GetBsnByResourceResponse>
<datas>
<bsnDO>
<beianNum></beianNum>
<resourceId>ATX140519190523990c6f</resourceId>
<sn>4f9f0d********448375e0f8</sn>
<status>1</status>
<aliUid>137*******210</aliUid>
<opSource>2</opSource>
<resourceType>1</resourceType>
</bsnDO>
</datas>
</GetBsnByResourceResponse>JSON format
{
"datas": {
"bsnDO": [
{
"resourceId":"ATX140519190523990c6f",
"sn":"4f9f0d********448375e0f8",
"status":"1",
"aliUid":"137*******210",
"opSource": "2",
"resourceType": "1"
},
{
"resourceId":"ATX140519190523990c6f",
"sn":"4f9f0d********448375e0f8",
"status":"1",
"aliUid":"137*******210",
"opSource":"2",
"resourceType":"1"
}
]
}
}Note An error is returned if the specified cloud product instance does not belong to the specified account.
Error codes
| HttpCode | Error code | Error message |
| 400 | 407 | The information does not exist. |
| 400 | 507 | An API error occurred. |
| 400 | 602 | A required parameter cannot be empty. |
Is this page helpful?