Creates subscription information.
Operation description
Creates subscription information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dhs:CreateSubscription |
create |
*Subscription
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The project name. |
test_project |
| TopicName |
string |
Yes |
The topic name. |
test_topic |
| SubscriptionId |
string |
No |
The subscription ID that you manually specify. If you do not specify this parameter, the server automatically generates one.
|
1764122860063VIIZ2 |
| Application |
string |
Yes |
The description of the new application. The description can be up to 256 characters in length. |
test_application |
| Comment |
string |
Yes |
The description of the subscription. |
test_abc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| SubscriptionId |
string |
The subscription ID. |
1764123368886L0S9H |
| RequestId |
string |
The request ID. |
2025092710234722c53d0b08e811d8 |
| Success |
string |
Indicates whether the request was successful. |
True |
Examples
Success response
JSON format
{
"SubscriptionId": "1764123368886L0S9H",
"RequestId": "2025092710234722c53d0b08e811d8",
"Success": "True"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Error:%s. | The parameter entered is illegal |
| 400 | MissingParameter | Error:%s. | Missing required parameters |
| 400 | ResourceAlreadyExist | Error:%s. | Resource already exists |
| 500 | InternalServerError | Error:%s. | Server error, server unavailable or unexpected error occurred |
| 403 | NoPermission | Error:%s. | You are not authorized to perform this operation. |
| 403 | OperationDenied | Error:%s. | Operation denied |
| 404 | ResourceNotFound | Error:%s. | Resource does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.