APIKeys class
表示 APIKeys 的类。
构造函数
| APIKeys(Application |
创建 APIKeys。 |
方法
构造函数详细信息
APIKeys(ApplicationInsightsManagementClientContext)
创建 APIKeys。
new APIKeys(client: ApplicationInsightsManagementClientContext)
参数
对服务客户端的引用。
方法详细信息
create(string, string, APIKeyRequest, RequestOptionsBase)
创建 Application Insights 组件的 API 密钥。
function create(resourceGroupName: string, resourceName: string, aPIKeyProperties: APIKeyRequest, options?: RequestOptionsBase): Promise<APIKeysCreateResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- aPIKeyProperties
- APIKeyRequest
需要指定的属性来创建 Application Insights 组件的 API 密钥。
- options
- RequestOptionsBase
可选参数
返回
Promise<APIKeysCreateResponse>
承诺<Models.APIKeysCreateResponse>
create(string, string, APIKeyRequest, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentAPIKey>)
function create(resourceGroupName: string, resourceName: string, aPIKeyProperties: APIKeyRequest, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentAPIKey>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- aPIKeyProperties
- APIKeyRequest
需要指定的属性来创建 Application Insights 组件的 API 密钥。
- options
- RequestOptionsBase
可选参数
回调
create(string, string, APIKeyRequest, ServiceCallback<ApplicationInsightsComponentAPIKey>)
function create(resourceGroupName: string, resourceName: string, aPIKeyProperties: APIKeyRequest, callback: ServiceCallback<ApplicationInsightsComponentAPIKey>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- aPIKeyProperties
- APIKeyRequest
需要指定的属性来创建 Application Insights 组件的 API 密钥。
回调
deleteMethod(string, string, string, RequestOptionsBase)
删除 Application Insights 组件的 API 密钥。
function deleteMethod(resourceGroupName: string, resourceName: string, keyId: string, options?: RequestOptionsBase): Promise<APIKeysDeleteMethodResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- keyId
-
string
API 密钥 ID。 这在 Application Insights 组件中是唯一的。
- options
- RequestOptionsBase
可选参数
返回
Promise<APIKeysDeleteMethodResponse>
承诺<Models.APIKeysDeleteMethodResponse>
deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentAPIKey>)
function deleteMethod(resourceGroupName: string, resourceName: string, keyId: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentAPIKey>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- keyId
-
string
API 密钥 ID。 这在 Application Insights 组件中是唯一的。
- options
- RequestOptionsBase
可选参数
回调
deleteMethod(string, string, string, ServiceCallback<ApplicationInsightsComponentAPIKey>)
function deleteMethod(resourceGroupName: string, resourceName: string, keyId: string, callback: ServiceCallback<ApplicationInsightsComponentAPIKey>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- keyId
-
string
API 密钥 ID。 这在 Application Insights 组件中是唯一的。
回调
get(string, string, string, RequestOptionsBase)
获取此密钥 ID 的 API 密钥。
function get(resourceGroupName: string, resourceName: string, keyId: string, options?: RequestOptionsBase): Promise<APIKeysGetResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- keyId
-
string
API 密钥 ID。 这在 Application Insights 组件中是唯一的。
- options
- RequestOptionsBase
可选参数
返回
Promise<APIKeysGetResponse>
承诺<Models.APIKeysGetResponse>
get(string, string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentAPIKey>)
function get(resourceGroupName: string, resourceName: string, keyId: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentAPIKey>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- keyId
-
string
API 密钥 ID。 这在 Application Insights 组件中是唯一的。
- options
- RequestOptionsBase
可选参数
回调
get(string, string, string, ServiceCallback<ApplicationInsightsComponentAPIKey>)
function get(resourceGroupName: string, resourceName: string, keyId: string, callback: ServiceCallback<ApplicationInsightsComponentAPIKey>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- keyId
-
string
API 密钥 ID。 这在 Application Insights 组件中是唯一的。
回调
list(string, string, RequestOptionsBase)
获取 Application Insights 组件的 API 密钥列表。
function list(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<APIKeysListResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<APIKeysListResponse>
Promise<Models.APIKeysList响应>
list(string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentAPIKeyListResult>)
function list(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentAPIKeyListResult>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- options
- RequestOptionsBase
可选参数
list(string, string, ServiceCallback<ApplicationInsightsComponentAPIKeyListResult>)
function list(resourceGroupName: string, resourceName: string, callback: ServiceCallback<ApplicationInsightsComponentAPIKeyListResult>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。