Creates a notification recipient for a project.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID of the bastion host. Note
You can invoke the DescribeInstances operation to query this parameter. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
The region ID of the bastion host. Note
For the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| ProjectId |
integer |
Yes |
The project ID. Note
You can call the ListProjects operation to query this parameter. |
3 |
| Name |
string |
Yes |
The name of the recipient. The name must be 1 to 128 characters in length, cannot start with a special character, and can contain only the following special characters: periods (.), underscores (_), hyphens (-), backslashes (\), and spaces. |
name |
| Phone |
string |
No |
The phone number of the recipient. Note
You must specify at least one of Phone or Email. |
131****1421 |
|
string |
No |
The email address of the recipient. Note
You must specify at least one of Phone or Email. |
1099**@qq.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ReceiverId |
string |
The ID of the notification recipient. |
1 |
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
81500666-d7f5-4143-8329-0223cc738105 |
Examples
Success response
JSON format
{
"ReceiverId": "1",
"RequestId": "81500666-d7f5-4143-8329-0223cc738105"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.