Compartilhar via


Secrets interface

Interface que representa um Segredos.

Métodos

beginCreateOrUpdate(string, string, string, string, Secret, SecretsCreateOrUpdateOptionalParams)

Crie ou substitua um segredo existente. Essa operação pode demorar um pouco para ser concluída.

beginCreateOrUpdateAndWait(string, string, string, string, Secret, SecretsCreateOrUpdateOptionalParams)

Crie ou substitua um segredo existente. Essa operação pode demorar um pouco para ser concluída.

delete(string, string, string, string, SecretsDeleteOptionalParams)

Excluir segredo.

get(string, string, string, string, SecretsGetOptionalParams)

Obter segredo.

list(string, string, string, SecretsListOptionalParams)

Listar segredos em um determinado perfil de usuário.

update(string, string, string, string, SecretFragment, SecretsUpdateOptionalParams)

Permite modificar marcas de segredos. Todas as outras propriedades serão ignoradas.

Detalhes do método

beginCreateOrUpdate(string, string, string, string, Secret, SecretsCreateOrUpdateOptionalParams)

Crie ou substitua um segredo existente. Essa operação pode demorar um pouco para ser concluída.

function beginCreateOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, secret: Secret, options?: SecretsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<Secret>, Secret>>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos.

labName

string

O nome do laboratório.

userName

string

O nome do perfil do usuário.

name

string

O nome do segredo.

secret
Secret

Um segredo.

options
SecretsCreateOrUpdateOptionalParams

Os parâmetros de opções.

Retornos

Promise<PollerLike<@azure/core-lro.PollOperationState<Secret>, Secret>>

beginCreateOrUpdateAndWait(string, string, string, string, Secret, SecretsCreateOrUpdateOptionalParams)

Crie ou substitua um segredo existente. Essa operação pode demorar um pouco para ser concluída.

function beginCreateOrUpdateAndWait(resourceGroupName: string, labName: string, userName: string, name: string, secret: Secret, options?: SecretsCreateOrUpdateOptionalParams): Promise<Secret>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos.

labName

string

O nome do laboratório.

userName

string

O nome do perfil do usuário.

name

string

O nome do segredo.

secret
Secret

Um segredo.

options
SecretsCreateOrUpdateOptionalParams

Os parâmetros de opções.

Retornos

Promise<Secret>

delete(string, string, string, string, SecretsDeleteOptionalParams)

Excluir segredo.

function delete(resourceGroupName: string, labName: string, userName: string, name: string, options?: SecretsDeleteOptionalParams): Promise<void>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos.

labName

string

O nome do laboratório.

userName

string

O nome do perfil do usuário.

name

string

O nome do segredo.

options
SecretsDeleteOptionalParams

Os parâmetros de opções.

Retornos

Promise<void>

get(string, string, string, string, SecretsGetOptionalParams)

Obter segredo.

function get(resourceGroupName: string, labName: string, userName: string, name: string, options?: SecretsGetOptionalParams): Promise<Secret>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos.

labName

string

O nome do laboratório.

userName

string

O nome do perfil do usuário.

name

string

O nome do segredo.

options
SecretsGetOptionalParams

Os parâmetros de opções.

Retornos

Promise<Secret>

list(string, string, string, SecretsListOptionalParams)

Listar segredos em um determinado perfil de usuário.

function list(resourceGroupName: string, labName: string, userName: string, options?: SecretsListOptionalParams): PagedAsyncIterableIterator<Secret, Secret[], PageSettings>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos.

labName

string

O nome do laboratório.

userName

string

O nome do perfil do usuário.

options
SecretsListOptionalParams

Os parâmetros de opções.

Retornos

update(string, string, string, string, SecretFragment, SecretsUpdateOptionalParams)

Permite modificar marcas de segredos. Todas as outras propriedades serão ignoradas.

function update(resourceGroupName: string, labName: string, userName: string, name: string, secret: SecretFragment, options?: SecretsUpdateOptionalParams): Promise<Secret>

Parâmetros

resourceGroupName

string

O nome do grupo de recursos.

labName

string

O nome do laboratório.

userName

string

O nome do perfil do usuário.

name

string

O nome do segredo.

secret
SecretFragment

Um segredo.

options
SecretsUpdateOptionalParams

Os parâmetros de opções.

Retornos

Promise<Secret>