DescribeUserProfilePathRules
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
Test
RAM authorization
|
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:
|
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:
|
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:
|
folder |
| ProfileFollowSwitch |
boolean |
The user profile roaming switch. A value of |
|
| 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:
|
AppInstanceGroup |
| UserProfileSwitch |
boolean |
The user profile roaming switch. The value is the same as ProfileFollowSwitch. A value of |
|
| 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.