All Products
Search
Document Center

Identity as a Service:ListConditionalAccessPolicies

Last Updated:Apr 14, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

List of Conditional Access Policies

Operation description

Paginated query for the list of conditional access policies

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
eiam:ListConditionalAccessPolicieslist
*ConditionalAccessPolicy
acs:eiam:{#regionId}:{#accountId}:instance/{#InstanceId}/conditionalaccesspolicy/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

Instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx
NextTokenstringNo

Token for the next page query.

NTxxxxxexample
MaxResultslongNo

Number of items per page in a paginated query.

20
PreviousTokenstringNo

Token for the previous page query.

PTxxxxxexample

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

Request ID.

0441BD79-92F3-53AA-8657-F8CE4A2B912A
TotalCountlong

Total number of items in the list.

100
NextTokenstring

The token value returned by this call for the next page query.

NTxxxexample
ConditionalAccessPoliciesarray<object>

Collection of conditional access policies

ConditionalAccessPolicyobject
InstanceIdstring

Instance ID

idaas_ksvv5c7f2l6uzh6oqspeks23ni
ConditionalAccessPolicyIdstring

Conditional access policy ID

cp_xxxxx
ConditionalAccessPolicyNamestring

Conditional access policy name

My Policy
Descriptionstring

Description of the conditional access policy

My Policy Description
ConditionalAccessPolicyTypestring

Type of the conditional access policy

arn:alibaba:idaas:authn:access:policy:system
Statusstring

Enable or disable status of the conditional access policy

disabled
DecisionTypestring

Execution type of the conditional access policy

enforcement
EvaluateAtstring

Execution point of the conditional access policy

arn:alibaba:idaas:authn:access:rule:eval_at:after_step1
Priorityinteger

Priority, 1-100

1
DecisionConfigobject

Action of the conditional access policy

Effectstring

Decision action of the conditional access policy: deny Deny allow Allow

deny
MfaTypestring

Conditional Access Policy Mfa Type

directly_access
MfaAuthenticationIntervalSecondslong

Re-authentication interval for the conditional access policy (in seconds) 300-86400

300
MfaAuthenticationMethodsarray

MFA types allowed by the conditional access policy

MfaAuthenticationMethodstring

MFA types allowed by the conditional access policy, with the following options:

  • ia_otp_sms: SMS verification code
  • ia_otp_email: Email verification code
  • ia_totp: OTP dynamic password
  • ia_webauthn: WebAuthn
ia_otp_email
ActiveSessionReuseStatusstring

Whether to enable session reuse for secondary authentication

disabled
ConditionsConfigobject

Content of the conditional access policy

Applicationsobject

Target applications of the conditional access policy

IncludeApplicationsarray

Selected applications

IncludeApplicationstring

Application ID

app_xxxxx
ExcludeApplicationsarray

Excluded applications

ExcludeApplicationstring

Application ID

app_xxxxx
Usersobject

Target users of the conditional access policy

IncludeUsersarray

Selected users

IncludeUserstring

User ID

user_xxxxx
ExcludeUsersarray

Excluded users

ExcludeUserstring

User ID

user_xxxxx
IncludeGroupsarray

Included user groups

IncludeGroupstring

User group ID

group_xxxxx
ExcludeGroupsarray

Excluded user groups

ExcludeGroupstring

User group ID

group_xxxxx
IncludeOrganizationalUnitsarray

Included organizations

IncludeOrganizationalUnitstring

Organization ID

ou_xxxxx
ExcludeOrganizationalUnitsarray

Excluded organizations

ExcludeOrganizationalUnitstring

Organization ID

ou_xxxxx
NetworkZonesobject

Network zones for conditional access policies

IncludeNetworkZonesarray

Included network ranges

IncludeNetworkZonstring

Selected network range ID

network_xxxxx
ExcludeNetworkZonesarray

Excluded network zones

ExcludeNetworkZonstring

IDs of excluded network zones

network_xxxxx
CreateTimelong

Creation time

1741857554000
LastUpdatedTimelong

Last updated time

1741857554000
PreviousTokenstring

Previous page query token (Token)

PTxxxxxexample

Examples

Sample success responses

JSONformat

{
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
  "TotalCount": 100,
  "NextToken": "NTxxxexample",
  "ConditionalAccessPolicies": [
    {
      "InstanceId": "idaas_ksvv5c7f2l6uzh6oqspeks23ni",
      "ConditionalAccessPolicyId": "cp_xxxxx",
      "ConditionalAccessPolicyName": "My Policy",
      "Description": "My Policy Description",
      "ConditionalAccessPolicyType": "arn:alibaba:idaas:authn:access:policy:system",
      "Status": "disabled",
      "DecisionType": "enforcement",
      "EvaluateAt": "arn:alibaba:idaas:authn:access:rule:eval_at:after_step1",
      "Priority": 1,
      "DecisionConfig": {
        "Effect": "deny",
        "MfaType": "directly_access",
        "MfaAuthenticationIntervalSeconds": 300,
        "MfaAuthenticationMethods": [
          "ia_otp_email"
        ],
        "ActiveSessionReuseStatus": "disabled"
      },
      "ConditionsConfig": {
        "Applications": {
          "IncludeApplications": [
            "app_xxxxx"
          ],
          "ExcludeApplications": [
            "app_xxxxx"
          ]
        },
        "Users": {
          "IncludeUsers": [
            "user_xxxxx"
          ],
          "ExcludeUsers": [
            "user_xxxxx"
          ],
          "IncludeGroups": [
            "group_xxxxx"
          ],
          "ExcludeGroups": [
            "group_xxxxx"
          ],
          "IncludeOrganizationalUnits": [
            "ou_xxxxx"
          ],
          "ExcludeOrganizationalUnits": [
            "ou_xxxxx"
          ]
        },
        "NetworkZones": {
          "IncludeNetworkZones": [
            "network_xxxxx"
          ],
          "ExcludeNetworkZones": [
            "network_xxxxx"
          ]
        }
      },
      "CreateTime": 1741857554000,
      "LastUpdatedTime": 1741857554000
    }
  ],
  "PreviousToken": "PTxxxxxexample"
}

Error codes

For a list of error codes, visit the Service error codes.