mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
修正部分错误码描述
Signed-off-by: h30034439 <hanyiyichn@163.com>
This commit is contained in:
parent
f15df4e671
commit
a1a19b23f5
20
api/@ohos.enterprise.accountManager.d.ts
vendored
20
api/@ohos.enterprise.accountManager.d.ts
vendored
@ -40,7 +40,7 @@ declare namespace accountManager {
|
||||
* @param { boolean } disallow - true if the user is not allowed to add local account.
|
||||
* @param { AsyncCallback<void> } callback - the callback of disallowAddLocalAccount.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -62,7 +62,7 @@ declare namespace accountManager {
|
||||
* @param { boolean } disallow - true if the user is not allowed to add local account.
|
||||
* @returns { Promise<void> } the promise returned by the disallowAddLocalAccount.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -84,7 +84,7 @@ declare namespace accountManager {
|
||||
* @param { number } userId - indicates the user ID. It cannot be the ID of a user that does not exist.
|
||||
* @param { boolean } disallow - true if the specific user is not allowed to add an OS account.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -106,7 +106,7 @@ declare namespace accountManager {
|
||||
* @param { number } userId - indicates the user ID. It cannot be the ID of a user that does not exist.
|
||||
* @returns { boolean } true if the specific user is not allowed to add an OS account.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -129,8 +129,8 @@ declare namespace accountManager {
|
||||
* @param { osAccount.OsAccountType } type - the OS account type. It can only be one of specified types.
|
||||
* @returns { osAccount.OsAccountInfo } information about the OS account added.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201003 - failed to add an OS account.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201003 - Failed to add an OS account.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -152,7 +152,7 @@ declare namespace accountManager {
|
||||
* @param { boolean } disallow - true if the specific account or all accounts are not allowed to add an OS account.
|
||||
* @param { number } [accountId] - indicates the account ID. It cannot be the ID of an account that does not exist.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -172,7 +172,7 @@ declare namespace accountManager {
|
||||
* @param { number } [accountId] - indicates the account ID. It cannot be the ID of an account that does not exist.
|
||||
* @returns { boolean } true if the specific account or all accounts are not allowed to add an OS account.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -193,8 +193,8 @@ declare namespace accountManager {
|
||||
* @param { osAccount.OsAccountType } type - the OS account type. It can only be one of correct types.
|
||||
* @returns { Promise<osAccount.OsAccountInfo> } information about the OS account added.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201003 - failed to add an OS account.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201003 - Failed to add an OS account.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
26
api/@ohos.enterprise.adminManager.d.ts
vendored
26
api/@ohos.enterprise.adminManager.d.ts
vendored
@ -146,8 +146,8 @@ declare namespace adminManager {
|
||||
* @param { EnterpriseInfo } enterpriseInfo - enterpriseInfo indicates the enterprise information of the calling application.
|
||||
* @param { AdminType } type - type indicates the type of administrator to set.
|
||||
* @param { AsyncCallback<void> } callback - the callback of enableAdmin.
|
||||
* @throws { BusinessError } 9200003 - the administrator ability component is invalid.
|
||||
* @throws { BusinessError } 9200004 - failed to enable the administrator application of the device.
|
||||
* @throws { BusinessError } 9200003 - The administrator ability component is invalid.
|
||||
* @throws { BusinessError } 9200004 - Failed to activate the administrator application of the device.
|
||||
* @throws { BusinessError } 9200007 - The system ability works abnormally.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -171,8 +171,8 @@ declare namespace adminManager {
|
||||
* @param { AdminType } type - type indicates the type of administrator to set.
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of enableAdmin.
|
||||
* @throws { BusinessError } 9200003 - the administrator ability component is invalid.
|
||||
* @throws { BusinessError } 9200004 - failed to enable the administrator application of the device.
|
||||
* @throws { BusinessError } 9200003 - The administrator ability component is invalid.
|
||||
* @throws { BusinessError } 9200004 - Failed to activate the administrator application of the device.
|
||||
* @throws { BusinessError } 9200007 - The system ability works abnormally.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -196,8 +196,8 @@ declare namespace adminManager {
|
||||
* @param { AdminType } type - type indicates the type of administrator to set.
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<void> } the promise returned by the enableAdmin.
|
||||
* @throws { BusinessError } 9200003 - the administrator ability component is invalid.
|
||||
* @throws { BusinessError } 9200004 - failed to enable the administrator application of the device.
|
||||
* @throws { BusinessError } 9200003 - The administrator ability component is invalid.
|
||||
* @throws { BusinessError } 9200004 - Failed to activate the administrator application of the device.
|
||||
* @throws { BusinessError } 9200007 - The system ability works abnormally.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -218,7 +218,7 @@ declare namespace adminManager {
|
||||
* @param { Want } admin - admin indicates the enterprise admin extension ability information.
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<void> } callback - the callback of disableAdmin.
|
||||
* @throws { BusinessError } 9200005 - failed to disable the administrator application of the device.
|
||||
* @throws { BusinessError } 9200005 - Failed to deactivate the administrator application of the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -239,7 +239,7 @@ declare namespace adminManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of disableAdmin.
|
||||
* @throws { BusinessError } 9200005 - failed to disable the administrator application of the device.
|
||||
* @throws { BusinessError } 9200005 - Failed to deactivate the administrator application of the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -260,7 +260,7 @@ declare namespace adminManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<void> } the promise returned by the disableAdmin.
|
||||
* @throws { BusinessError } 9200005 - failed to disable the administrator application of the device.
|
||||
* @throws { BusinessError } 9200005 - Failed to deactivate the administrator application of the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -277,7 +277,7 @@ declare namespace adminManager {
|
||||
* @permission ohos.permission.MANAGE_ENTERPRISE_DEVICE_ADMIN
|
||||
* @param { String } bundleName - bundleName indicates the administrator bundle information.
|
||||
* @param { AsyncCallback<void> } callback - the callback of disableSuperAdmin.
|
||||
* @throws { BusinessError } 9200005 - failed to disable the administrator application of the device.
|
||||
* @throws { BusinessError } 9200005 - Failed to deactivate the administrator application of the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -296,7 +296,7 @@ declare namespace adminManager {
|
||||
* @permission ohos.permission.MANAGE_ENTERPRISE_DEVICE_ADMIN
|
||||
* @param { String } bundleName - bundleName indicates the administrator bundle information.
|
||||
* @returns { Promise<void> } the promise returned by the disableSuperAdmin.
|
||||
* @throws { BusinessError } 9200005 - failed to disable the administrator application of the device.
|
||||
* @throws { BusinessError } 9200005 - Failed to deactivate the administrator application of the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -545,7 +545,7 @@ declare namespace adminManager {
|
||||
* @param { string } bundleName - bundleName indicates the administrator bundle information.
|
||||
* @param { AsyncCallback<void> } callback - the callback of authorizeAdmin.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200009 - Failed to grant the permission to the application.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -566,7 +566,7 @@ declare namespace adminManager {
|
||||
* @param { string } bundleName - bundleName indicates the administrator bundle information.
|
||||
* @returns { Promise<void> } the promise returned by the authorizeAdmin.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200009 - Failed to grant the permission to the application.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
|
30
api/@ohos.enterprise.applicationManager.d.ts
vendored
30
api/@ohos.enterprise.applicationManager.d.ts
vendored
@ -40,7 +40,7 @@ declare namespace applicationManager {
|
||||
* cannot be greater than 200.
|
||||
* @param { AsyncCallback<void> } callback - the callback of addDisallowedRunningBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -64,7 +64,7 @@ declare namespace applicationManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of addDisallowedRunningBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -88,7 +88,7 @@ declare namespace applicationManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @returns { Promise<void> } the promise returned by the addDisallowedRunningBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -111,7 +111,7 @@ declare namespace applicationManager {
|
||||
* cannot be greater than 200.
|
||||
* @param { number } [accountId] - accountId indicates the account ID.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -132,7 +132,7 @@ declare namespace applicationManager {
|
||||
* cannot be greater than 200.
|
||||
* @param { AsyncCallback<void> } callback - the callback of removeDisallowedRunningBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -156,7 +156,7 @@ declare namespace applicationManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of removeDisallowedRunningBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -180,7 +180,7 @@ declare namespace applicationManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @returns { Promise<void> } the promise returned by the removeDisallowedRunningBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -203,7 +203,7 @@ declare namespace applicationManager {
|
||||
* cannot be greater than 200.
|
||||
* @param { number } [accountId] - accountId indicates the user ID.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -222,7 +222,7 @@ declare namespace applicationManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback of getDisallowedRunningBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -244,7 +244,7 @@ declare namespace applicationManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback of getDisallowedRunningBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -266,7 +266,7 @@ declare namespace applicationManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @returns { Promise<Array<string>> } the promise returned by the getDisallowedRunningBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -288,7 +288,7 @@ declare namespace applicationManager {
|
||||
* @param { number } [accountId] - accountId indicates the user ID.
|
||||
* @returns { Array<string> } ids of the bundle are disallowed to run.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -309,7 +309,7 @@ declare namespace applicationManager {
|
||||
* The bundleName and abilityName of the want cannot be non-exist.
|
||||
* The size of the array after setting cannot be greater than 10.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -330,7 +330,7 @@ declare namespace applicationManager {
|
||||
* The bundleName and abilityName of the want cannot be non-exist.
|
||||
* The size of the array after setting cannot be greater 10.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -349,7 +349,7 @@ declare namespace applicationManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Array<Want> } the information of auto start applications.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
12
api/@ohos.enterprise.bluetoothManager.d.ts
vendored
12
api/@ohos.enterprise.bluetoothManager.d.ts
vendored
@ -80,7 +80,7 @@ declare namespace bluetoothManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { BluetoothInfo } the bluetooth information.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -99,7 +99,7 @@ declare namespace bluetoothManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { boolean } disabled - true if disable the bluetooth, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -120,7 +120,7 @@ declare namespace bluetoothManager {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @returns { boolean } true if the bluetooth is disabled, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -142,7 +142,7 @@ declare namespace bluetoothManager {
|
||||
* @param { Array<string> } deviceIds - IDs of the bluetooth devices to be added to the list.
|
||||
* The size of the array after setting cannot be greater than 1000.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200010 - A conflict policy has been configured.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -163,7 +163,7 @@ declare namespace bluetoothManager {
|
||||
* @param { Array<string> } deviceIds - IDs of the bluetooth devices to be removed from the list.
|
||||
* The size of the array after setting cannot be greater than 1000.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -182,7 +182,7 @@ declare namespace bluetoothManager {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @returns { Array<string> } IDs of the bluetooth devices in the list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
6
api/@ohos.enterprise.browser.d.ts
vendored
6
api/@ohos.enterprise.browser.d.ts
vendored
@ -41,7 +41,7 @@ declare namespace browser {
|
||||
* can be converted into browser policies.
|
||||
* @param { AsyncCallback<void> } callback - the callback of setPolicies.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -65,7 +65,7 @@ declare namespace browser {
|
||||
* can be converted into browser policies.
|
||||
* @returns { Promise<void> } the promise returned by the setPolicies.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -127,7 +127,7 @@ declare namespace browser {
|
||||
* @param { string } policyValue - policyValue indicates the browser policy value that need to set. It must be a
|
||||
* correct JSON character string that can be converted into browser policies.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
88
api/@ohos.enterprise.bundleManager.d.ts
vendored
88
api/@ohos.enterprise.bundleManager.d.ts
vendored
@ -68,7 +68,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { AsyncCallback<void> } callback - the callback of addAllowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -92,7 +92,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of addAllowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -116,7 +116,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<void> } the promise returned by the addAllowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -139,7 +139,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -160,7 +160,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { AsyncCallback<void> } callback - the callback of removeAllowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -184,7 +184,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of removeAllowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -208,7 +208,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<void> } the promise returned by the removeAllowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -231,7 +231,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -250,7 +250,7 @@ declare namespace bundleManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -272,7 +272,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -294,7 +294,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<Array<string>> } the promise that contains the appid list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -316,7 +316,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
|
||||
* @returns { Array<string> } ids of the bundle that can be installed.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -337,7 +337,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { AsyncCallback<void> } callback - the callback of addDisallowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -361,7 +361,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of addDisallowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -385,7 +385,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<void> } the promise returned by the addDisallowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -408,7 +408,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -429,7 +429,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { AsyncCallback<void> } callback - the callback of removeDisallowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -453,7 +453,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of removeDisallowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -477,7 +477,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<void> } the promise returned by the removeDisallowedInstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -500,7 +500,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -519,7 +519,7 @@ declare namespace bundleManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -541,7 +541,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -563,7 +563,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<Array<string>> } the promise that contains the appid list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -585,7 +585,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
|
||||
* @returns { Array<string> } ids of the bundle that can not be installed.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -606,7 +606,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { AsyncCallback<void> } callback - the callback of addDisallowedUninstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -630,7 +630,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of addDisallowedUninstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -654,7 +654,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<void> } the promise returned by the addDisallowedUninstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -677,7 +677,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -698,7 +698,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { AsyncCallback<void> } callback - the callback of removeDisallowedUninstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -722,7 +722,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of removeDisallowedUninstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -746,7 +746,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<void> } the promise returned by the removeDisallowedUninstallBundles.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -769,7 +769,7 @@ declare namespace bundleManager {
|
||||
* setting cannot be greater than 200.
|
||||
* @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -788,7 +788,7 @@ declare namespace bundleManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -810,7 +810,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID.
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback that contains the appid list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -832,7 +832,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [userId] - userId indicates the user ID or do not pass user ID.
|
||||
* @returns { Promise<Array<string>> } the promise that contains the appid list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -854,7 +854,7 @@ declare namespace bundleManager {
|
||||
* @param { number } [accountId] - accountId indicates the account ID or do not pass account ID.
|
||||
* @returns { Array<string> } ids of the bundle that can not be uninstalled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -873,7 +873,7 @@ declare namespace bundleManager {
|
||||
* @param { string } bundleName - indicates the bundle name of the application to be uninstalled.
|
||||
* @param { AsyncCallback<void> } callback - the callback of uninstalling application result.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -895,7 +895,7 @@ declare namespace bundleManager {
|
||||
* @param { number } userId - userId indicates the user ID or do not pass user ID.
|
||||
* @param { AsyncCallback<void> } callback - the callback of uninstalling application result.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -917,7 +917,7 @@ declare namespace bundleManager {
|
||||
* @param { boolean } isKeepData - isKeepData indicates whether keep the data.
|
||||
* @param { AsyncCallback<void> } callback - the callback of uninstalling application result.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -940,7 +940,7 @@ declare namespace bundleManager {
|
||||
* @param { boolean } isKeepData - isKeepData indicates whether keep the data.
|
||||
* @param { AsyncCallback<void> } callback - the callback of uninstalling application result.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -963,7 +963,7 @@ declare namespace bundleManager {
|
||||
* @param { boolean } [isKeepData] - isKeepData indicates whether keep the data.
|
||||
* @returns { Promise<void> } the promise of uninstalling application result.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -982,7 +982,7 @@ declare namespace bundleManager {
|
||||
* @param { Array<string> } hapFilePaths - indicates the path of the application to be installed.
|
||||
* @param { AsyncCallback<void> } callback - the callback of installing application result.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201002 - Failed to install the application.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -1007,7 +1007,7 @@ declare namespace bundleManager {
|
||||
* The flag can only be one of correct flags.
|
||||
* @param { AsyncCallback<void> } callback - the callback of installing application result.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201002 - Failed to install the application.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -1032,7 +1032,7 @@ declare namespace bundleManager {
|
||||
* The flag can only be one of correct flags.
|
||||
* @returns { Promise<void> } the promise of installing application result.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201002 - Failed to install the application.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
|
12
api/@ohos.enterprise.dateTimeManager.d.ts
vendored
12
api/@ohos.enterprise.dateTimeManager.d.ts
vendored
@ -40,7 +40,7 @@ declare namespace dateTimeManager {
|
||||
* @param { number } time - time indicates the target time stamp (ms).
|
||||
* @param { AsyncCallback<void> } callback - the callback of setDateTime.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -62,7 +62,7 @@ declare namespace dateTimeManager {
|
||||
* @param { number } time - time indicates the target time stamp (ms).
|
||||
* @returns { Promise<void> } the promise returned by the setDateTime.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -84,7 +84,7 @@ declare namespace dateTimeManager {
|
||||
* @param { boolean } disallow - true if the user is not allowed to modify the system time.
|
||||
* @param { AsyncCallback<void> } callback - the callback of disallowModifyDateTime.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -106,7 +106,7 @@ declare namespace dateTimeManager {
|
||||
* @param { boolean } disallow - true if the user is not allowed to modify the system time.
|
||||
* @returns { Promise<void> } the promise returned by the disallowModifyDateTime.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -127,7 +127,7 @@ declare namespace dateTimeManager {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @param { AsyncCallback<boolean> } callback - return true if modify datetime is not allowed.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -148,7 +148,7 @@ declare namespace dateTimeManager {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @returns { Promise<boolean> } return true if modify datetime is not allowed.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
|
12
api/@ohos.enterprise.deviceControl.d.ts
vendored
12
api/@ohos.enterprise.deviceControl.d.ts
vendored
@ -38,7 +38,7 @@ declare namespace deviceControl {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<void> } callback - the callback of resetFactory.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -59,7 +59,7 @@ declare namespace deviceControl {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Promise<void> } the promise returned by the resetFactory.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -79,7 +79,7 @@ declare namespace deviceControl {
|
||||
* @param { Want } admin - admin indicates the enterprise admin extension ability information.
|
||||
* The admin must have the corresponding permission.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -99,7 +99,7 @@ declare namespace deviceControl {
|
||||
* @param { Want } admin - admin indicates the enterprise admin extension ability information.
|
||||
* The admin must have the corresponding permission.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -119,7 +119,7 @@ declare namespace deviceControl {
|
||||
* @param { Want } admin - admin indicates the enterprise admin extension ability information.
|
||||
* The admin must have the corresponding permission.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -142,7 +142,7 @@ declare namespace deviceControl {
|
||||
* the supported device operations include lockScreen, resetFactory, reboot and shutDown.
|
||||
* @param { string } [addition] - addition indicates the specify additional parameters when performing the operation.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
14
api/@ohos.enterprise.deviceInfo.d.ts
vendored
14
api/@ohos.enterprise.deviceInfo.d.ts
vendored
@ -38,7 +38,7 @@ declare namespace deviceInfo {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<string> } callback - the callback of getDeviceSerial.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -59,7 +59,7 @@ declare namespace deviceInfo {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Promise<string> } the promise returned by the getDeviceSerial.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -80,7 +80,7 @@ declare namespace deviceInfo {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<string> } callback - the callback of getDisplayVersion.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -101,7 +101,7 @@ declare namespace deviceInfo {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Promise<string> } the promise returned by the getDisplayVersion.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -122,7 +122,7 @@ declare namespace deviceInfo {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<string> } callback - the callback of getDeviceName.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -143,7 +143,7 @@ declare namespace deviceInfo {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Promise<string> } the promise returned by the getDeviceName.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -166,7 +166,7 @@ declare namespace deviceInfo {
|
||||
* the supported device information include deviceName, deviceSerial and simInfo.
|
||||
* @returns { string } the specific information of device.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
22
api/@ohos.enterprise.deviceSettings.d.ts
vendored
22
api/@ohos.enterprise.deviceSettings.d.ts
vendored
@ -185,7 +185,7 @@ declare namespace deviceSettings {
|
||||
* @param { number } time - screen off time. The minimum value is 15000. It is recommended that the time
|
||||
* is consistent with the optional screen-off time of the device.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -206,7 +206,7 @@ declare namespace deviceSettings {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<number> } callback - the callback of getScreenOffTime.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -227,7 +227,7 @@ declare namespace deviceSettings {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Promise<number> } the promise returned by the getScreenOffTime.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -249,7 +249,7 @@ declare namespace deviceSettings {
|
||||
* @param { CertBlob } certificate - certificate file content and alias. It cannot be empty or more than 40 characters.
|
||||
* @param { AsyncCallback<string> } callback - The callback carries the uri of the certificate used to uninstall
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201001 - Failed to manage the certificate.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -272,7 +272,7 @@ declare namespace deviceSettings {
|
||||
* @param { CertBlob } certificate - certificate file content and alias. It cannot be empty or more than 40 characters.
|
||||
* @returns { Promise<string> } the promise carries the uri of the certificate used to uninstall
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201001 - Failed to manage the certificate.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -295,7 +295,7 @@ declare namespace deviceSettings {
|
||||
* @param { string } certUri - uri of the certificate. It cannot be empty or more than 64 characters.
|
||||
* @param { AsyncCallback<void> } callback - the callback of uninstallUserCertificate.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201001 - Failed to manage the certificate.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -318,7 +318,7 @@ declare namespace deviceSettings {
|
||||
* @param { string } certUri - uri of the certificate. It cannot be empty or more than 64 characters.
|
||||
* @returns { Promise<void> } the promise returned by the uninstallUserCertificate.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201001 - Failed to manage the certificate.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -341,7 +341,7 @@ declare namespace deviceSettings {
|
||||
* @param { PowerScene } powerScene - the scene to execute power policy. Only timeout scenario is supported now.
|
||||
* @param { PowerPolicy } powerPolicy - device power policy.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -363,7 +363,7 @@ declare namespace deviceSettings {
|
||||
* @param { PowerScene } powerScene - the scene to execute power policy. Only timeout scenario is supported now.
|
||||
* @returns { PowerPolicy } device power policy.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -390,7 +390,7 @@ declare namespace deviceSettings {
|
||||
* When the screen off time is set, the minimum value is 15000. It is recommended that
|
||||
* the time is consistent with the optional screen-off time of the device.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -411,7 +411,7 @@ declare namespace deviceSettings {
|
||||
* screenOff means the device screen off time, powerPolicy means the device power policy.
|
||||
* @returns { string } device settings policy.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
4
api/@ohos.enterprise.locationManager.d.ts
vendored
4
api/@ohos.enterprise.locationManager.d.ts
vendored
@ -75,7 +75,7 @@ declare namespace locationManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { LocationPolicy } policy - the policy of location service.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -94,7 +94,7 @@ declare namespace locationManager {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @returns { LocationPolicy } the policy of location service.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
66
api/@ohos.enterprise.networkManager.d.ts
vendored
66
api/@ohos.enterprise.networkManager.d.ts
vendored
@ -523,7 +523,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<Array<string>> } callback - the callback of getAllNetworkInterfaces.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -544,7 +544,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Promise<Array<string>> } the promise returned by getAllNetworkInterfaces.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -565,7 +565,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Array<string> } all the network interfaces of the device.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -585,7 +585,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - networkInterface indicates the network interface to get ip address.
|
||||
* @param { AsyncCallback<string> } callback - the callback of getIpAddress.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -607,7 +607,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - networkInterface indicates the network interface to get ip address.
|
||||
* @returns { Promise<string> } the promise returned by getIpAddress.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -629,7 +629,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - the ip address of the network interface.
|
||||
* @returns { string } the promise returned by getIpAddress.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -649,7 +649,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - networkInterface indicates the network interface to get mac address.
|
||||
* @param { AsyncCallback<string> } callback - the callback of getMac.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -671,7 +671,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - networkInterface indicates the network interface to get mac address.
|
||||
* @returns { Promise<string> } the promise returned by getMac.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -693,7 +693,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - networkInterface indicates the network interface to get mac address.
|
||||
* @returns { string } the mac address of the network interface.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -713,7 +713,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - networkInterface indicates the network interface to get status.
|
||||
* @param { AsyncCallback<boolean> } callback - the callback of isNetworkInterfaceDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -735,7 +735,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - networkInterface indicates the network interface to get status.
|
||||
* @returns { Promise<boolean> } the promise returned by isNetworkInterfaceDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -757,7 +757,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - networkInterface indicates the network interface to get status.
|
||||
* @returns { boolean } true if disable the network interfaces, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -778,7 +778,7 @@ declare namespace networkManager {
|
||||
* @param { boolean } isDisabled - True if disable the network interfaces, otherwise false.
|
||||
* @param { AsyncCallback<void> } callback - the callback of setNetworkInterfaceDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -801,7 +801,7 @@ declare namespace networkManager {
|
||||
* @param { boolean } isDisabled - True if disable the network interfaces, otherwise false.
|
||||
* @returns { Promise<void> } the promise returned setNetworkInterfaceDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -823,7 +823,7 @@ declare namespace networkManager {
|
||||
* @param { string } networkInterface - networkInterface indicates the network interface to set status.
|
||||
* @param { boolean } isDisabled - True if disable the network interfaces, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -843,7 +843,7 @@ declare namespace networkManager {
|
||||
* @param { connection.HttpProxy } httpProxy - network global proxy configuration information.
|
||||
* @param { AsyncCallback<void> } callback - the callback of setGlobalProxy.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -865,7 +865,7 @@ declare namespace networkManager {
|
||||
* @param { connection.HttpProxy } httpProxy - network global proxy configuration information.
|
||||
* @returns { Promise<void> } the promise returned by the setGlobalProxy.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -886,7 +886,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { connection.HttpProxy } httpProxy - network global proxy configuration information.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -905,7 +905,7 @@ declare namespace networkManager {
|
||||
* have the corresponding permission.
|
||||
* @param { AsyncCallback<connection.HttpProxy> } callback - the callback carries the network global proxy configuration information.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -926,7 +926,7 @@ declare namespace networkManager {
|
||||
* have the corresponding permission.
|
||||
* @returns { Promise<connection.HttpProxy> } the promise carries the network global proxy configuration information.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -947,7 +947,7 @@ declare namespace networkManager {
|
||||
* have the corresponding permission.
|
||||
* @returns { connection.HttpProxy } the network global proxy configuration information.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -967,7 +967,7 @@ declare namespace networkManager {
|
||||
* @param { AddFilterRule } filterRule - iptables filter rule configuration information.
|
||||
* @param { AsyncCallback<void> } callback - the callback of addIptablesFilterRule.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -989,7 +989,7 @@ declare namespace networkManager {
|
||||
* @param { AddFilterRule } filterRule - iptables filter rule configuration information.
|
||||
* @returns { Promise<void> } the promise returned by the addIptablesFilterRule.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -1011,7 +1011,7 @@ declare namespace networkManager {
|
||||
* @param { RemoveFilterRule } filterRule - iptables filter rule configuration information.
|
||||
* @param { AsyncCallback<void> } callback - the callback of removeIptablesFilterRule.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -1033,7 +1033,7 @@ declare namespace networkManager {
|
||||
* @param { RemoveFilterRule } filterRule - iptables filter rule configuration information.
|
||||
* @returns { Promise<void> } the promise returned by the removeIptablesFilterRule.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -1054,7 +1054,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<string> } callback - the callback carries the iptables rules in the table filter.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -1075,7 +1075,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Promise<string> } the promise carries the iptables rules in the table filter.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -1096,7 +1096,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { FirewallRule } firewallRule - firewall rule that needs to be added.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -1116,7 +1116,7 @@ declare namespace networkManager {
|
||||
* @param { FirewallRule } firewallRule - matching rule used to remove firewall rule.
|
||||
* if firewallRule or firewallRule#direction,firewallRule#action is empty, multiple firewall rule can be removed.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -1135,7 +1135,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Array<FirewallRule> } an array of added firewall rules.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -1154,7 +1154,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { DomainFilterRule } domainFilterRule - domain filter rule that needs to be added.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -1174,7 +1174,7 @@ declare namespace networkManager {
|
||||
* @param { DomainFilterRule } domainFilterRule - matching rule used to remove domain filter rule.
|
||||
* if domainFilterRule or domainFilterRule#action is empty, multiple domain filter rule can be removed.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -1193,7 +1193,7 @@ declare namespace networkManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Array<DomainFilterRule> } an array of added domain filter rules.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
28
api/@ohos.enterprise.restrictions.d.ts
vendored
28
api/@ohos.enterprise.restrictions.d.ts
vendored
@ -39,7 +39,7 @@ declare namespace restrictions {
|
||||
* @param { boolean } disabled - true if the user disables the printing function.
|
||||
* @param { AsyncCallback<void> } callback - the callback of setPrinterDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -61,7 +61,7 @@ declare namespace restrictions {
|
||||
* @param { boolean } disabled - true if the user disables the printing function.
|
||||
* @returns { Promise<void> } the promise returned by the setPrinterDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -82,7 +82,7 @@ declare namespace restrictions {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @param { AsyncCallback<boolean> } callback - the callback of isPrinterDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -103,7 +103,7 @@ declare namespace restrictions {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @returns { Promise<boolean> } the promise returned by the isPrinterDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -125,7 +125,7 @@ declare namespace restrictions {
|
||||
* @param { boolean } disabled - true if the user disables the HDC function.
|
||||
* @param { AsyncCallback<void> } callback - the callback of setHdcDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -147,7 +147,7 @@ declare namespace restrictions {
|
||||
* @param { boolean } disabled - true if the user disables the HDC function.
|
||||
* @returns { Promise<void> } the promise returned by the setHdcDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -168,7 +168,7 @@ declare namespace restrictions {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @param { AsyncCallback<boolean> } callback - the callback of isHdcDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -189,7 +189,7 @@ declare namespace restrictions {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @returns { Promise<boolean> } the promise returned by the isHdcDisabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -209,7 +209,7 @@ declare namespace restrictions {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { boolean } disable - true if disable the microphone of device, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -229,7 +229,7 @@ declare namespace restrictions {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @returns { boolean } true if the microphone of device is disabled, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -249,7 +249,7 @@ declare namespace restrictions {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { boolean } disabled - true if set the fingerprint authorization capability disabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -269,7 +269,7 @@ declare namespace restrictions {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @returns { boolean } true if the fingerprint authorization capability is disabled.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -291,7 +291,7 @@ declare namespace restrictions {
|
||||
* the supported device features include modifyDateTime, bluetooth, printer, hdc, microphone, fingerprint, usb and wifi.
|
||||
* @param { boolean } disallow - true if disallow the specific feature of device, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -311,7 +311,7 @@ declare namespace restrictions {
|
||||
* the supported device features include modifyDateTime, bluetooth, printer, hdc, microphone, fingerprint, usb and wifi.
|
||||
* @returns { boolean } true if the specific feature of device is disallowed, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
18
api/@ohos.enterprise.securityManager.d.ts
vendored
18
api/@ohos.enterprise.securityManager.d.ts
vendored
@ -89,7 +89,7 @@ declare namespace securityManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { string } the security patch tag of the device.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -110,7 +110,7 @@ declare namespace securityManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { DeviceEncryptionStatus } device encryption status.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -133,7 +133,7 @@ declare namespace securityManager {
|
||||
* patch means the device security patch tag, and encryption means the device encryption status.
|
||||
* @returns { string } security policy of the specific type.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -153,7 +153,7 @@ declare namespace securityManager {
|
||||
* @param { CertBlob } certificate - certificate file content and alias. It cannot be empty or more than 40 characters.
|
||||
* @returns { Promise<string> } the promise carries the uri of the certificate used to uninstall
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201001 - Failed to manage the certificate.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -174,7 +174,7 @@ declare namespace securityManager {
|
||||
* @param { string } certUri - uri of the certificate. It cannot be empty or more than 64 characters.
|
||||
* @returns { Promise<void> } the promise returned by the uninstallUserCertificate.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9201001 - Failed to manage the certificate.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -193,7 +193,7 @@ declare namespace securityManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { PasswordPolicy } policy - password policy to be set.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -211,7 +211,7 @@ declare namespace securityManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { PasswordPolicy } the password policy of the device.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -241,7 +241,7 @@ declare namespace securityManager {
|
||||
* @param { number } tokenId - tokenId indicates the token id of the application.
|
||||
* @param { ClipboardPolicy } policy - clipboard policy to be set.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - invalid input parameter.
|
||||
* @syscap SystemCapability.Customization.EnterpriseDeviceManager
|
||||
@ -258,7 +258,7 @@ declare namespace securityManager {
|
||||
* @param { number } [tokenId] - tokenId indicates the token id of the application.
|
||||
* @returns { string } the json string of clipboard policy for each application of the device.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - invalid input parameter.
|
||||
* @syscap SystemCapability.Customization.EnterpriseDeviceManager
|
||||
|
8
api/@ohos.enterprise.systemManager.d.ts
vendored
8
api/@ohos.enterprise.systemManager.d.ts
vendored
@ -203,7 +203,7 @@ declare namespace systemManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { string } server - the address of NTP server.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -222,7 +222,7 @@ declare namespace systemManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { string } the address of NTP server.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -241,7 +241,7 @@ declare namespace systemManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { OtaUpdatePolicy } policy - OTA update policy.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -260,7 +260,7 @@ declare namespace systemManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { OtaUpdatePolicy } OTA update policy.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
18
api/@ohos.enterprise.usbManager.d.ts
vendored
18
api/@ohos.enterprise.usbManager.d.ts
vendored
@ -106,7 +106,7 @@ declare namespace usbManager {
|
||||
* @param { UsbPolicy } usbPolicy - usb policy code.
|
||||
* @param { AsyncCallback<void> } callback - the callback of setUsbPolicy.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -128,7 +128,7 @@ declare namespace usbManager {
|
||||
* @param { UsbPolicy } usbPolicy - usb policy code.
|
||||
* @returns { Promise<void> } the promise returned setUsbPolicy.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -149,7 +149,7 @@ declare namespace usbManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { boolean } disable - true if disable USB, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200010 - A conflict policy has been configured.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
@ -171,7 +171,7 @@ declare namespace usbManager {
|
||||
* If the admin is not empty, it must have the corresponding permission.
|
||||
* @returns { boolean } true if USB is disabled, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -193,7 +193,7 @@ declare namespace usbManager {
|
||||
* @param { Array<UsbDeviceId> } usbDeviceIds - an array of added USB device ids.
|
||||
* The size of the array after setting cannot be greater 1000.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200010 - A conflict policy has been configured.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -214,7 +214,7 @@ declare namespace usbManager {
|
||||
* @param { Array<UsbDeviceId> } usbDeviceIds - an array of removed USB device ids.
|
||||
* The size of the array after setting cannot be greater 1000.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -233,7 +233,7 @@ declare namespace usbManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Array<UsbDeviceId> } an array of the available USB device trust list.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -252,7 +252,7 @@ declare namespace usbManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { UsbPolicy } usbPolicy - USB policy of storage device.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200010 - A conflict policy has been configured.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -272,7 +272,7 @@ declare namespace usbManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { UsbPolicy } USB policy of storage device.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
|
16
api/@ohos.enterprise.wifiManager.d.ts
vendored
16
api/@ohos.enterprise.wifiManager.d.ts
vendored
@ -709,7 +709,7 @@ declare namespace wifiManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { AsyncCallback<boolean> } callback - the callback of isWifiActive.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -730,7 +730,7 @@ declare namespace wifiManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { Promise<boolean> } the promise returned by isWifiActive.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -751,7 +751,7 @@ declare namespace wifiManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @returns { boolean } true if Wi-Fi is active.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -770,7 +770,7 @@ declare namespace wifiManager {
|
||||
* @param { WifiProfile } profile - profile indicates the profile of wifi.
|
||||
* @param { AsyncCallback<void> } callback - the callback of setWifiProfile.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -791,7 +791,7 @@ declare namespace wifiManager {
|
||||
* @param { WifiProfile } profile - profile indicates the profile of wifi.
|
||||
* @returns { Promise<void> } the promise returned by setWifiProfile.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -811,7 +811,7 @@ declare namespace wifiManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { WifiProfile } profile - profile indicates the profile of Wi-Fi.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
* 2. Incorrect parameter types; 3. Parameter verification failed.
|
||||
@ -830,7 +830,7 @@ declare namespace wifiManager {
|
||||
* The admin must have the corresponding permission.
|
||||
* @param { boolean } disabled - true if set the Wi-Fi disabled, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
@ -851,7 +851,7 @@ declare namespace wifiManager {
|
||||
* have the corresponding permission.
|
||||
* @returns { boolean } true if the Wi-Fi is disabled, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - The application is not an administrator application of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
|
||||
|
Loading…
Reference in New Issue
Block a user