DescribeUserProfilePathRules

Updated at:

Queries the system default path rules, or the user profile roaming rules for a specified app instance group or app instance group set.

Operation description

When querying a specified target, specify either the app instance group ID or the app instance group set ID. When querying a set, the rules of the primary app instance group are returned. You can use the query results as a reference for modifying rules, and then call SetUserProfilePathRules to submit the complete rule list.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

appstreaming:DescribeUserProfilePathRules

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AppInstanceGroupId

string

No

The app instance group ID. Specify either this parameter or AppInstanceGroupSetId when querying app instance group rules. This parameter can be omitted when querying system default rules.

aig-0bi83v****

AppInstanceGroupSetId

string

No

The app instance group set ID. Specify either this parameter or AppInstanceGroupId when querying app instance group set rules. This parameter can be omitted when querying system default rules.

set-3jm9d0abc00example

RuleType

string

Yes

The path rule type. Valid values:

  • Default: Queries system default rules. Both target IDs can be omitted.

  • AppInstanceGroup: Queries the rules of an app instance group or an app instance group set.

AppInstanceGroup

RegionId

string

Yes

The region ID of the request. When querying or setting rules for a specified app instance group, use the region where the target app instance group is located.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

The response to the API call.

RequestId

string

The unique identifier of the request, which can be used for troubleshooting.

01A1CEEB-CDFF-18F9-B2BF-9997600D****

Code

string

The error code returned when the request fails.

InvalidParameter.RuleType

Message

string

The error message returned when the request fails.

The parameter RuleType is invalid.

Data

object

The path rules and user profile roaming configurations.

Rules

array<object>

The list of user profile roaming path rules.

array<object>

A single rule, including the excluded paths and the exception paths within the excluded directories.

WhitePaths

array<object>

The list of files or directories that still participate in user profile roaming under the excluded directories.

object

A roaming exception rule within an excluded directory.

Path

string

The exception path relative to BlackPath.Path.

.\Microsoft\Office

Type

string

The path type. Valid values:

  • file: File.

  • folder: Folder.

folder

BlackPath

object

The file or directory excluded from user profile roaming.

Path

string

The excluded path relative to the user profile directory.

AppData\Local

Type

string

The path type. Valid values:

  • file: File.

  • folder: Folder.

folder

ProfileFollowSwitch

boolean

The user profile roaming switch. A value of true indicates that the feature is enabled, and a value of false indicates that the feature is disabled.

FileSystemId

string

Not enabled. The current query result does not provide the file system ID. The example is used to illustrate the field status.

Not applicable (not enabled)

AppInstanceGroupId

string

The app instance group ID corresponding to the rule. When querying set rules, this is the primary app instance group ID.

aig-0bi83v****

AppInstanceGroupSetId

string

The app instance group set ID corresponding to the rule. This is returned when querying set rules.

set-3jm9d0abc00example

RuleType

string

The path rule type. Valid values:

  • Default: Queries system default rules. Both target IDs can be omitted.

  • AppInstanceGroup: Queries the rules of an app instance group or an app instance group set.

AppInstanceGroup

UserProfileSwitch

boolean

The user profile roaming switch. The value is the same as ProfileFollowSwitch. A value of true indicates that the feature is enabled, and a value of false indicates that the feature is disabled.

RemoteStoragePath

string

The remote storage path for user profile roaming. If this path is not separately configured for the app instance group, the app instance group ID is returned.

aig-0bi83v****

UserProfileSize

integer

The storage quota for user profile roaming, in GB. This field may be omitted if it is not configured.

30

DomainId

string

The user profile roaming storage domain ID bound to the app instance group. This field may be omitted if no domain is bound.

domain-existing

Examples

Success response

JSON format

{
  "RequestId": "01A1CEEB-CDFF-18F9-B2BF-9997600D****",
  "Code": "InvalidParameter.RuleType",
  "Message": "The parameter RuleType is invalid.",
  "Data": {
    "Rules": [
      {
        "WhitePaths": [
          {
            "Path": ".\\Microsoft\\Office",
            "Type": "folder"
          }
        ],
        "BlackPath": {
          "Path": "AppData\\Local",
          "Type": "folder"
        }
      }
    ],
    "ProfileFollowSwitch": false,
    "FileSystemId": "N/A (not enabled)",
    "AppInstanceGroupId": "aig-0bi83v****",
    "AppInstanceGroupSetId": "set-3jm9d0abc00example",
    "RuleType": "AppInstanceGroup",
    "UserProfileSwitch": false,
    "RemoteStoragePath": "aig-0bi83v****",
    "UserProfileSize": 30,
    "DomainId": "domain-existing"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.