你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Secrets interface
表示机密的接口。
方法
方法详细信息
createOrUpdate(string, string, string, Secret, SecretsCreateOrUpdateOptionalParams)
该操作返回机密的属性。
function createOrUpdate(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: Secret, options?: SecretsCreateOrUpdateOptionalParams): Promise<Secret>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
OpenShift 群集资源的名称。
- childResourceName
-
string
机密资源的名称。
- parameters
- Secret
机密资源。
选项参数。
返回
Promise<Secret>
delete(string, string, string, SecretsDeleteOptionalParams)
该操作不返回任何内容。
function delete(resourceGroupName: string, resourceName: string, childResourceName: string, options?: SecretsDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
OpenShift 群集资源的名称。
- childResourceName
-
string
机密资源的名称。
- options
- SecretsDeleteOptionalParams
选项参数。
返回
Promise<void>
get(string, string, string, SecretsGetOptionalParams)
该操作返回机密的属性。
function get(resourceGroupName: string, resourceName: string, childResourceName: string, options?: SecretsGetOptionalParams): Promise<Secret>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
OpenShift 群集资源的名称。
- childResourceName
-
string
机密资源的名称。
- options
- SecretsGetOptionalParams
选项参数。
返回
Promise<Secret>
list(string, string, SecretsListOptionalParams)
该操作返回每个机密的属性。
function list(resourceGroupName: string, resourceName: string, options?: SecretsListOptionalParams): PagedAsyncIterableIterator<Secret, Secret[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
OpenShift 群集资源的名称。
- options
- SecretsListOptionalParams
选项参数。
返回
update(string, string, string, SecretUpdate, SecretsUpdateOptionalParams)
该操作返回机密的属性。
function update(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: SecretUpdate, options?: SecretsUpdateOptionalParams): Promise<Secret>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
OpenShift 群集资源的名称。
- childResourceName
-
string
机密资源的名称。
- parameters
- SecretUpdate
机密资源。
- options
- SecretsUpdateOptionalParams
选项参数。
返回
Promise<Secret>