次の方法で共有


DevTestLabUserResource.GetDevTestLabSecret メソッド

定義

シークレットを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}
  • 操作IdSecrets_Get
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabSecretResource> GetDevTestLabSecret (string name, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDevTestLabSecret : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabSecretResource>
override this.GetDevTestLabSecret : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabSecretResource>
Public Overridable Function GetDevTestLabSecret (name As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DevTestLabSecretResource)

パラメーター

name
String

シークレットの名前。

expand
String

$expand クエリを指定します。 例: 'properties($select=value)'

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

name は空の文字列であり、空でないと予想されていました。

name が null です。

適用対象