This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
azure-native.devtestlab.getSecret
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
Get secret. Azure REST API version: 2018-09-15.
Other available API versions: 2016-05-15.
Using getSecret
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSecret(args: GetSecretArgs, opts?: InvokeOptions): Promise<GetSecretResult>
function getSecretOutput(args: GetSecretOutputArgs, opts?: InvokeOptions): Output<GetSecretResult>
def get_secret(expand: Optional[str] = None,
lab_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
user_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretResult
def get_secret_output(expand: Optional[pulumi.Input[str]] = None,
lab_name: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
user_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecretResult]
func LookupSecret(ctx *Context, args *LookupSecretArgs, opts ...InvokeOption) (*LookupSecretResult, error)
func LookupSecretOutput(ctx *Context, args *LookupSecretOutputArgs, opts ...InvokeOption) LookupSecretResultOutput
> Note: This function is named LookupSecret
in the Go SDK.
public static class GetSecret
{
public static Task<GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions? opts = null)
public static Output<GetSecretResult> Invoke(GetSecretInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:devtestlab:getSecret
arguments:
# arguments dictionary
The following arguments are supported:
- Lab
Name string - The name of the lab.
- Name string
- The name of the secret.
- Resource
Group stringName - The name of the resource group.
- User
Name string - The name of the user profile.
- Expand string
- Specify the $expand query. Example: 'properties($select=value)'
- Lab
Name string - The name of the lab.
- Name string
- The name of the secret.
- Resource
Group stringName - The name of the resource group.
- User
Name string - The name of the user profile.
- Expand string
- Specify the $expand query. Example: 'properties($select=value)'
- lab
Name String - The name of the lab.
- name String
- The name of the secret.
- resource
Group StringName - The name of the resource group.
- user
Name String - The name of the user profile.
- expand String
- Specify the $expand query. Example: 'properties($select=value)'
- lab
Name string - The name of the lab.
- name string
- The name of the secret.
- resource
Group stringName - The name of the resource group.
- user
Name string - The name of the user profile.
- expand string
- Specify the $expand query. Example: 'properties($select=value)'
- lab_
name str - The name of the lab.
- name str
- The name of the secret.
- resource_
group_ strname - The name of the resource group.
- user_
name str - The name of the user profile.
- expand str
- Specify the $expand query. Example: 'properties($select=value)'
- lab
Name String - The name of the lab.
- name String
- The name of the secret.
- resource
Group StringName - The name of the resource group.
- user
Name String - The name of the user profile.
- expand String
- Specify the $expand query. Example: 'properties($select=value)'
getSecret Result
The following output properties are available:
- Id string
- The identifier of the resource.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning status of the resource.
- Type string
- The type of the resource.
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- Location string
- The location of the resource.
- Dictionary<string, string>
- The tags of the resource.
- Value string
- The value of the secret for secret creation.
- Id string
- The identifier of the resource.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning status of the resource.
- Type string
- The type of the resource.
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- Location string
- The location of the resource.
- map[string]string
- The tags of the resource.
- Value string
- The value of the secret for secret creation.
- id String
- The identifier of the resource.
- name String
- The name of the resource.
- provisioning
State String - The provisioning status of the resource.
- type String
- The type of the resource.
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
- location String
- The location of the resource.
- Map<String,String>
- The tags of the resource.
- value String
- The value of the secret for secret creation.
- id string
- The identifier of the resource.
- name string
- The name of the resource.
- provisioning
State string - The provisioning status of the resource.
- type string
- The type of the resource.
- unique
Identifier string - The unique immutable identifier of a resource (Guid).
- location string
- The location of the resource.
- {[key: string]: string}
- The tags of the resource.
- value string
- The value of the secret for secret creation.
- id str
- The identifier of the resource.
- name str
- The name of the resource.
- provisioning_
state str - The provisioning status of the resource.
- type str
- The type of the resource.
- unique_
identifier str - The unique immutable identifier of a resource (Guid).
- location str
- The location of the resource.
- Mapping[str, str]
- The tags of the resource.
- value str
- The value of the secret for secret creation.
- id String
- The identifier of the resource.
- name String
- The name of the resource.
- provisioning
State String - The provisioning status of the resource.
- type String
- The type of the resource.
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
- location String
- The location of the resource.
- Map<String>
- The tags of the resource.
- value String
- The value of the secret for secret creation.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi