AttachWebHostingCertificate
Call the AttachWebHostingCertificate operation to attach a certificate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mpserverless:AttachWebHostingCertificate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SpaceId |
string |
Yes |
The workspace ID. |
0e16bb12-14af-4635-b24c-5ac1a9a***** |
| Domain |
string |
Yes |
The custom domain name. |
www.example.com |
| CertType |
string |
Yes |
The certificate type. Valid values:
|
upload |
| CertName |
string |
No |
The name of the certificate. |
testCert |
| ServerCertificate |
string |
Yes |
The content of the certificate. |
-----BEGIN CERTIFICATE----- ...... -----END CERTIFICATE----- |
| PrivateKey |
string |
Yes |
The private key of the certificate. |
-----BEGIN RSA PRIVATE KEY----- ...... -----END RSA PRIVATE KEY----- |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
boolean |
The result of the operation.
|
true |
| RequestId |
string |
The unique ID of the request. |
CEF9831B-A6D2-4485-9CAD-1B8FBC8B**** |
Examples
Success response
JSON format
{
"Data": true,
"RequestId": "CEF9831B-A6D2-4485-9CAD-1B8FBC8B****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.