UpdateBootAndAntiUninstallPolicy

Updated at:

Update 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:UpdateBootAndAntiUninstallPolicy

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

IsBoot

boolean

No

Enable auto-start.

true

IsAntiUninstall

boolean

No

Enable anti-uninstall.

true

AllowReport

boolean

No

Let end users submit approval requests.

true

WhitelistUsers

array

No

List of whitelisted users.

string

No

Username of a whitelisted user.

王先生

UserGroupIds

array

No

List of user group IDs to which this policy applies.

string

No

User group ID to which this policy applies.

usergroup-086bcf2d650b****

BlockContent

object

No

Content shown in the client-side block dialog.

BlockTextZh

object

No

Chinese text.

Title

string

No

Dialog title.

防卸载警告

Content

string

No

Dialog content.

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

MainButtonText

string

No

Main button text.

去报备

MinorButtonText

string

No

Secondary button text.

我知道了

BlockTextEn

object

No

English text.

Title

string

No

Dialog title.

Anti-Uninstall Warning

Content

string

No

Dialog content.

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

MainButtonText

string

No

Main button text.

Report

MinorButtonText

string

No

Secondary button text.

Ignore

Response elements

Element

Type

Description

Example

object

Response schema

RequestId

string

ID of this request.

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

Strategy

object

Auto-start and anti-uninstall policy.

CreateTime

string

Time when the policy was created.

2023-04-16 10:50:05

UpdateTime

string

Time when the policy was last updated.

2024-06-14 10:17:14

IsBoot

boolean

Indicates whether the auto-start feature is enabled.

true

IsAntiUninstall

boolean

Indicates whether the anti-uninstall feature is enabled.

true

AllowReport

boolean

End users can submit approval requests.

true

WhitelistUsers

array

List of whitelisted users.

string

Username of a whitelisted user.

王先生

UserGroupIds

array

List of user group IDs to which this policy applies.

string

User group ID to which this policy applies.

usergroup-086bcf2d650b****

PolicyId

string

Policy ID.

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

BlockContent

object

Content shown in the client-side block dialog.

BlockTextZh

object

Chinese text.

Title

string

Dialog title.

防卸载警告

Content

string

Dialog content.

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

MainButtonText

string

Main button text.

去报备

MinorButtonText

string

Secondary button text.

我知道了

BlockTextEn

object

English text.

Title

string

Dialog title.

Anti-Uninstall Warning

Content

string

Dialog content.

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

MainButtonText

string

Main button text.

Report

MinorButtonText

string

Secondary button text.

Ignore

ReportProcessId

string

ID of the approval process associated with this policy.

approval-process-65c255598826****

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-65c255598826****"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.