通过


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

ApiKeys interface

表示 ApiKeys 的接口。

方法

createOrUpdate(string, string, string, ApiKeysCreateOrUpdateOptionalParams)

为 Nginx 部署创建或更新 API 密钥,以便访问数据平面 API 端点

delete(string, string, string, ApiKeysDeleteOptionalParams)

删除 Nginx 部署的 API 密钥

get(string, string, string, ApiKeysGetOptionalParams)

获取给定 Nginx 部署的指定 API 密钥

list(string, string, ApiKeysListOptionalParams)

列出给定 Nginx 部署的所有 API 密钥

方法详细信息

createOrUpdate(string, string, string, ApiKeysCreateOrUpdateOptionalParams)

为 Nginx 部署创建或更新 API 密钥,以便访问数据平面 API 端点

function createOrUpdate(resourceGroupName: string, deploymentName: string, apiKeyName: string, options?: ApiKeysCreateOrUpdateOptionalParams): Promise<NginxDeploymentApiKeyResponse>

参数

resourceGroupName

string

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

deploymentName

string

目标 NGINX 部署的名称

apiKeyName

string

API 密钥的资源名称

options
ApiKeysCreateOrUpdateOptionalParams

选项参数。

返回

delete(string, string, string, ApiKeysDeleteOptionalParams)

删除 Nginx 部署的 API 密钥

function delete(resourceGroupName: string, deploymentName: string, apiKeyName: string, options?: ApiKeysDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

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

deploymentName

string

目标 NGINX 部署的名称

apiKeyName

string

API 密钥的资源名称

options
ApiKeysDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, ApiKeysGetOptionalParams)

获取给定 Nginx 部署的指定 API 密钥

function get(resourceGroupName: string, deploymentName: string, apiKeyName: string, options?: ApiKeysGetOptionalParams): Promise<NginxDeploymentApiKeyResponse>

参数

resourceGroupName

string

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

deploymentName

string

目标 NGINX 部署的名称

apiKeyName

string

API 密钥的资源名称

options
ApiKeysGetOptionalParams

选项参数。

返回

list(string, string, ApiKeysListOptionalParams)

列出给定 Nginx 部署的所有 API 密钥

function list(resourceGroupName: string, deploymentName: string, options?: ApiKeysListOptionalParams): PagedAsyncIterableIterator<NginxDeploymentApiKeyResponse, NginxDeploymentApiKeyResponse[], PageSettings>

参数

resourceGroupName

string

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

deploymentName

string

目标 NGINX 部署的名称

options
ApiKeysListOptionalParams

选项参数。

返回