CreateConditionalAccessPolicy
Creates a conditional access policy.
Operation description
Creates a conditional access policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:CreateConditionalAccessPolicy |
create |
*ConditionalAccessPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| ConditionalAccessPolicyName |
string |
Yes |
Conditional access policy name. |
My conditional access policy |
| Description |
string |
No |
Conditional access policy description. |
Test description |
| ConditionalAccessPolicyType |
string |
Yes |
Conditional access policy type. Valid values: arn:alibaba:idaas:authn:access:policy:system: system policy. Valid values:
|
arn:alibaba:idaas:authn:access:policy:system |
| DecisionType |
string |
Yes |
Conditional access policy execution type. Valid values: enforcement: enforcement policy. Valid values:
|
enforcement |
| EvaluateAt |
string |
Yes |
Conditional access policy evaluation point. Valid values:
Valid values:
|
arn:alibaba:idaas:authn:access:rule:eval_at:after_step1 |
| DecisionConfig |
object |
No |
Conditional access policy action configuration. |
|
| Effect |
string |
No |
Conditional access policy decision action. Valid values:
Valid values:
|
allow or deny |
| MfaType |
string |
No |
Conditional access policy MFA type. Valid values:
Valid values:
|
directly_access |
| MfaAuthenticationIntervalSeconds |
integer |
No |
Conditional access policy re-authentication interval (seconds).
|
500 |
| MfaAuthenticationMethods |
array |
No |
MFA types allowed by the conditional access policy. Valid values:
Valid values:
|
|
|
string |
No |
MFA type. |
ia_totp |
|
| ActiveSessionReuseStatus |
string |
No |
Specifies whether to enable session reuse. Valid values:
|
enabled |
| ConditionsConfig |
object |
No |
Conditional access policy condition configuration. |
|
| Applications |
object |
No |
Conditional access policy target applications. |
|
| IncludeApplications |
array |
No |
Included applications. |
|
|
string |
No |
Application ID. |
app_xxxx |
|
| ExcludeApplications |
array |
No |
Excluded applications. |
|
|
string |
No |
Application ID. |
app_xxxx |
|
| Users |
object |
No |
Conditional access policy target users. |
|
| IncludeUsers |
array |
No |
Included users. |
|
|
string |
No |
User ID. |
user_xxxx |
|
| ExcludeUsers |
array |
No |
Excluded users. |
|
|
string |
No |
User ID. |
user_xxxx |
|
| IncludeGroups |
array |
No |
Included user groups. |
|
|
string |
No |
Group ID. |
group_xxxxx |
|
| ExcludeGroups |
array |
No |
Excluded user groups. |
|
|
string |
No |
Group ID. |
group_xxxxx |
|
| IncludeOrganizationalUnits |
array |
No |
Included organizational units. |
|
|
string |
No |
Organizational unit ID. |
ou_sdfnbsxxxx |
|
| ExcludeOrganizationalUnits |
array |
No |
Excluded organizational units. |
|
|
string |
No |
Organizational unit ID. |
ou_xxxxx |
|
| NetworkZones |
object |
No |
Conditional access policy network zones. |
|
| IncludeNetworkZones |
array |
No |
Included network zones. |
|
|
string |
No |
Network zone ID. |
network_xxxxx |
|
| ExcludeNetworkZones |
array |
No |
Excluded network zones. |
|
|
string |
No |
Network zone ID. |
network_xxxxx |
|
| Priority |
integer |
No |
Conditional access policy priority. A smaller value indicates a higher priority. Minimum value: 1. Maximum value: 100. |
1 |
| ClientToken |
string |
No |
Idempotency token. |
client-token-example |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response parameters. |
||
| RequestId |
string |
Request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| ConditionalAccessPolicyId |
string |
Conditional access policy ID. |
cp_xxxxx |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"ConditionalAccessPolicyId": "cp_xxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.