Binds a new custom domain name to a project.
Operation description
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:CreateDomain |
create |
*Project
|
|
None |
Request syntax
POST /domains HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
ali-test-project |
| body |
object |
Yes |
The information about the domain name. |
|
| domainName |
string |
Yes |
The domain name. |
example.com |
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.