GetBootAndAntiUninstallPolicy

Updated at:

Queries the details of the auto-start and anti-uninstall policy for your Alibaba Cloud account.

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

csas:GetBootAndAntiUninstallPolicy

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

Response schema

RequestId

string

The ID of this request.

CB67D866-1E54-5106-89DF-6D70C73E5989

Strategy

object

The auto-start and anti-uninstall policy.

CreateTime

string

The time when the policy was created.

2023-04-16 10:50:05

UpdateTime

string

The time when the policy was last updated.

2024-06-14 10:17:14

IsBoot

boolean

Indicates whether auto-start is enabled.

true

IsAntiUninstall

boolean

Indicates whether anti-uninstall is enabled.

true

AllowReport

boolean

Indicates whether end users can submit approval requests.

true

WhitelistUsers

array

The list of users in the whitelist.

string

A username in the whitelist.

王先生

UserGroupIds

array

The list of user group IDs to which the policy applies.

string

A user group ID to which the policy applies.

usergroup-086bcf2d650b****

PolicyId

string

The ID of the policy.

auto-boot-anti-uninstall-6f6cbf5f6605****

BlockContent

object

The content shown in the client block pop-up window.

BlockTextZh

object

Chinese content.

Title

string

The title of the pop-up window.

防卸载警告

Content

string

The body text of the pop-up window.

卸载后该设备无法再用于公司办公,同时该设备将失去进入公司内网权限!

MainButtonText

string

The label on the primary button of the pop-up window.

去报备

MinorButtonText

string

The label on the secondary button of the pop-up window.

我知道了

BlockTextEn

object

English content.

Title

string

The title of the pop-up window.

Anti-Uninstall Warning

Content

string

The body text of the pop-up window.

After uninstalling, the device can no longer be used for company work, and it will lose access to the company's intranet!

MainButtonText

string

The label on the primary button of the pop-up window.

Report

MinorButtonText

string

The label on the secondary button of the pop-up window.

Ignore

ReportProcessId

string

The ID of the approval process associated with the policy.

approval-process-300abfb970cc****

Examples

Success response

JSON format

{
  "RequestId": "CB67D866-1E54-5106-89DF-6D70C73E5989",
  "Strategy": {
    "CreateTime": "2023-04-16 10:50:05",
    "UpdateTime": "2024-06-14 10:17:14",
    "IsBoot": true,
    "IsAntiUninstall": true,
    "AllowReport": true,
    "WhitelistUsers": [
      "王先生"
    ],
    "UserGroupIds": [
      "usergroup-086bcf2d650b****"
    ],
    "PolicyId": "auto-boot-anti-uninstall-6f6cbf5f6605****",
    "BlockContent": {
      "BlockTextZh": {
        "Title": "防卸载警告",
        "Content": "卸载后该设备无法再用于公司办公,同时该设备将失去进入公司内网权限!",
        "MainButtonText": "去报备",
        "MinorButtonText": "我知道了"
      },
      "BlockTextEn": {
        "Title": "Anti-Uninstall Warning",
        "Content": "After uninstalling, the device can no longer be used for company work, and it will lose access to the company's intranet!",
        "MainButtonText": "Report",
        "MinorButtonText": "Ignore"
      }
    },
    "ReportProcessId": "approval-process-300abfb970cc****"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.