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

Keys interface

表示键的接口。

方法

createOrUpdate(string, string, string, Key, KeysCreateOrUpdateOptionalParams)

创建或更新工作区密钥

delete(string, string, string, KeysDeleteOptionalParams)

删除工作区密钥

get(string, string, string, KeysGetOptionalParams)

获取工作区密钥

listByWorkspace(string, string, KeysListByWorkspaceOptionalParams)

返回工作区中的密钥列表

方法详细信息

createOrUpdate(string, string, string, Key, KeysCreateOrUpdateOptionalParams)

创建或更新工作区密钥

function createOrUpdate(resourceGroupName: string, workspaceName: string, keyName: string, keyProperties: Key, options?: KeysCreateOrUpdateOptionalParams): Promise<Key>

参数

resourceGroupName

string

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

workspaceName

string

工作区的名称。

keyName

string

工作区密钥的名称

keyProperties
Key

密钥放置请求属性

options
KeysCreateOrUpdateOptionalParams

选项参数。

返回

Promise<Key>

delete(string, string, string, KeysDeleteOptionalParams)

删除工作区密钥

function delete(resourceGroupName: string, workspaceName: string, keyName: string, options?: KeysDeleteOptionalParams): Promise<Key>

参数

resourceGroupName

string

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

workspaceName

string

工作区的名称。

keyName

string

工作区密钥的名称

options
KeysDeleteOptionalParams

选项参数。

返回

Promise<Key>

get(string, string, string, KeysGetOptionalParams)

获取工作区密钥

function get(resourceGroupName: string, workspaceName: string, keyName: string, options?: KeysGetOptionalParams): Promise<Key>

参数

resourceGroupName

string

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

workspaceName

string

工作区的名称。

keyName

string

工作区密钥的名称

options
KeysGetOptionalParams

选项参数。

返回

Promise<Key>

listByWorkspace(string, string, KeysListByWorkspaceOptionalParams)

返回工作区中的密钥列表

function listByWorkspace(resourceGroupName: string, workspaceName: string, options?: KeysListByWorkspaceOptionalParams): PagedAsyncIterableIterator<Key, Key[], PageSettings>

参数

resourceGroupName

string

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

workspaceName

string

工作区的名称。

options
KeysListByWorkspaceOptionalParams

选项参数。

返回