你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

APIKeys class

表示 APIKeys 的类。

构造函数

APIKeys(ApplicationInsightsManagementClientContext)

创建 APIKeys。

方法

create(string, string, APIKeyRequest, RequestOptionsBase)

创建 Application Insights 组件的 API 密钥。

create(string, string, APIKeyRequest, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentAPIKey>)
create(string, string, APIKeyRequest, ServiceCallback<ApplicationInsightsComponentAPIKey>)
deleteMethod(string, string, string, RequestOptionsBase)

删除 Application Insights 组件的 API 密钥。

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentAPIKey>)
deleteMethod(string, string, string, ServiceCallback<ApplicationInsightsComponentAPIKey>)
get(string, string, string, RequestOptionsBase)

获取此密钥 ID 的 API 密钥。

get(string, string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentAPIKey>)
get(string, string, string, ServiceCallback<ApplicationInsightsComponentAPIKey>)
list(string, string, RequestOptionsBase)

获取 Application Insights 组件的 API 密钥列表。

list(string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentAPIKeyListResult>)
list(string, string, ServiceCallback<ApplicationInsightsComponentAPIKeyListResult>)

构造函数详细信息

APIKeys(ApplicationInsightsManagementClientContext)

创建 APIKeys。

new APIKeys(client: ApplicationInsightsManagementClientContext)

参数

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

可选参数

返回

承诺<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

可选参数

返回

承诺<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

可选参数

返回

承诺<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<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 组件资源的名称。