CreateCustomPrivacyPolicy
Creates a custom privacy policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:CreateCustomPrivacyPolicy |
create |
*CustomPrivacyPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| CustomPrivacyPolicyName |
string |
Yes |
The name of the custom privacy policy. |
Custom Privacy Policy Name |
| Status |
string |
No |
The status of the custom privacy policy. |
enabled |
| UserConsentType |
string |
No |
The user consent type. Valid values:
|
implied_consent |
| DefaultLanguageCode |
string |
No |
The default language code of the custom privacy policy. |
zh-Hans-CN |
| CustomPrivacyPolicyContents |
array<object> |
No |
The details of the custom privacy policy content. |
|
|
array<object> |
No |
|||
| CustomPrivacyPolicyTip |
string |
No |
The custom privacy policy tip. |
Please read and agree: |
| LanguageCode |
string |
No |
The language code of the custom privacy policy. The value is obtained from the LanguageCode parameter returned by the ListLanguages operation. |
zh-Hans-CN |
| CustomPrivacyPolicyItems |
array<object> |
No |
The custom privacy policy items. |
|
|
object |
No |
|||
| CustomPrivacyPolicyItemName |
string |
No |
The name of the custom privacy policy item. |
Custom Privacy Policy Name |
| CustomPrivacyPolicyItemUrl |
string |
No |
The URL of the custom privacy policy item. |
http://www.xxxx.com |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
client-token-example |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| CustomPrivacyPolicyId |
string |
The ID of the custom privacy policy. |
pp_neagxpoznsjdtxxxxx |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"CustomPrivacyPolicyId": "pp_neagxpoznsjdtxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.