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

APIKeys interface

表示 APIKeys 的接口。

方法

create(string, string, APIKeyRequest, APIKeysCreateOptionalParams)

创建 Application Insights 组件的 API 密钥。

delete(string, string, string, APIKeysDeleteOptionalParams)

删除 Application Insights 组件的 API 密钥。

get(string, string, string, APIKeysGetOptionalParams)

获取此密钥 ID 的 API 密钥。

list(string, string, APIKeysListOptionalParams)

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

方法详细信息

create(string, string, APIKeyRequest, APIKeysCreateOptionalParams)

创建 Application Insights 组件的 API 密钥。

function create(resourceGroupName: string, resourceName: string, aPIKeyProperties: APIKeyRequest, options?: APIKeysCreateOptionalParams): Promise<ApplicationInsightsComponentAPIKey>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

aPIKeyProperties
APIKeyRequest

需要指定的属性来创建 Application Insights 组件的 API 密钥。

options
APIKeysCreateOptionalParams

选项参数。

返回

delete(string, string, string, APIKeysDeleteOptionalParams)

删除 Application Insights 组件的 API 密钥。

function delete(resourceGroupName: string, resourceName: string, keyId: string, options?: APIKeysDeleteOptionalParams): Promise<ApplicationInsightsComponentAPIKey>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

keyId

string

API 密钥 ID。 这在 Application Insights 组件中是唯一的。

options
APIKeysDeleteOptionalParams

选项参数。

返回

get(string, string, string, APIKeysGetOptionalParams)

获取此密钥 ID 的 API 密钥。

function get(resourceGroupName: string, resourceName: string, keyId: string, options?: APIKeysGetOptionalParams): Promise<ApplicationInsightsComponentAPIKey>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

keyId

string

API 密钥 ID。 这在 Application Insights 组件中是唯一的。

options
APIKeysGetOptionalParams

选项参数。

返回

list(string, string, APIKeysListOptionalParams)

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

function list(resourceGroupName: string, resourceName: string, options?: APIKeysListOptionalParams): PagedAsyncIterableIterator<ApplicationInsightsComponentAPIKey, ApplicationInsightsComponentAPIKey[], PageSettings>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

options
APIKeysListOptionalParams

选项参数。

返回