azure-native.labservices.getEnvironment
Get environment API Version: 2018-10-15.
Using getEnvironment
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 getEnvironment(args: GetEnvironmentArgs, opts?: InvokeOptions): Promise<GetEnvironmentResult>
function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentResult>
def get_environment(environment_name: Optional[str] = None,
environment_setting_name: Optional[str] = None,
expand: Optional[str] = None,
lab_account_name: Optional[str] = None,
lab_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnvironmentResult
def get_environment_output(environment_name: Optional[pulumi.Input[str]] = None,
environment_setting_name: Optional[pulumi.Input[str]] = None,
expand: Optional[pulumi.Input[str]] = None,
lab_account_name: Optional[pulumi.Input[str]] = None,
lab_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentResult]
func LookupEnvironment(ctx *Context, args *LookupEnvironmentArgs, opts ...InvokeOption) (*LookupEnvironmentResult, error)
func LookupEnvironmentOutput(ctx *Context, args *LookupEnvironmentOutputArgs, opts ...InvokeOption) LookupEnvironmentResultOutput
> Note: This function is named LookupEnvironment
in the Go SDK.
public static class GetEnvironment
{
public static Task<GetEnvironmentResult> InvokeAsync(GetEnvironmentArgs args, InvokeOptions? opts = null)
public static Output<GetEnvironmentResult> Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:labservices:getEnvironment
arguments:
# arguments dictionary
The following arguments are supported:
- Environment
Name string The name of the environment.
- Environment
Setting stringName The name of the environment Setting.
- Lab
Account stringName The name of the lab Account.
- Lab
Name string The name of the lab.
- Resource
Group stringName The name of the resource group.
- Expand string
Specify the $expand query. Example: 'properties($expand=networkInterface)'
- Environment
Name string The name of the environment.
- Environment
Setting stringName The name of the environment Setting.
- Lab
Account stringName The name of the lab Account.
- Lab
Name string The name of the lab.
- Resource
Group stringName The name of the resource group.
- Expand string
Specify the $expand query. Example: 'properties($expand=networkInterface)'
- environment
Name String The name of the environment.
- environment
Setting StringName The name of the environment Setting.
- lab
Account StringName The name of the lab Account.
- lab
Name String The name of the lab.
- resource
Group StringName The name of the resource group.
- expand String
Specify the $expand query. Example: 'properties($expand=networkInterface)'
- environment
Name string The name of the environment.
- environment
Setting stringName The name of the environment Setting.
- lab
Account stringName The name of the lab Account.
- lab
Name string The name of the lab.
- resource
Group stringName The name of the resource group.
- expand string
Specify the $expand query. Example: 'properties($expand=networkInterface)'
- environment_
name str The name of the environment.
- environment_
setting_ strname The name of the environment Setting.
- lab_
account_ strname The name of the lab Account.
- lab_
name str The name of the lab.
- resource_
group_ strname The name of the resource group.
- expand str
Specify the $expand query. Example: 'properties($expand=networkInterface)'
- environment
Name String The name of the environment.
- environment
Setting StringName The name of the environment Setting.
- lab
Account StringName The name of the lab Account.
- lab
Name String The name of the lab.
- resource
Group StringName The name of the resource group.
- expand String
Specify the $expand query. Example: 'properties($expand=networkInterface)'
getEnvironment Result
The following output properties are available:
- Claimed
By stringUser Name The name or email address of the user who has claimed the environment
- Claimed
By stringUser Object Id The AAD object Id of the user who has claimed the environment
- Claimed
By stringUser Principal Id The user principal Id of the user who has claimed the environment
- Id string
The identifier of the resource.
- Is
Claimed bool Is the environment claimed or not
- Last
Known stringPower State Last known power state of the environment
- Latest
Operation Pulumi.Result Azure Native. Lab Services. Outputs. Latest Operation Result Response The details of the latest operation. ex: status, error
- Name string
The name of the resource.
- Network
Interface Pulumi.Azure Native. Lab Services. Outputs. Network Interface Response Network details of the environment
- Password
Last stringReset When the password was last reset on the environment.
- Total
Usage string How long the environment has been used by a lab user
- Type string
The type of the resource.
- Location string
The location of the resource.
- Provisioning
State string The provisioning status of the resource.
- Resource
Sets Pulumi.Azure Native. Lab Services. Outputs. Resource Set Response The set of a VM and the setting id it was created for
- Dictionary<string, string>
The tags of the resource.
- Unique
Identifier string The unique immutable identifier of a resource (Guid).
- Claimed
By stringUser Name The name or email address of the user who has claimed the environment
- Claimed
By stringUser Object Id The AAD object Id of the user who has claimed the environment
- Claimed
By stringUser Principal Id The user principal Id of the user who has claimed the environment
- Id string
The identifier of the resource.
- Is
Claimed bool Is the environment claimed or not
- Last
Known stringPower State Last known power state of the environment
- Latest
Operation LatestResult Operation Result Response The details of the latest operation. ex: status, error
- Name string
The name of the resource.
- Network
Interface NetworkInterface Response Network details of the environment
- Password
Last stringReset When the password was last reset on the environment.
- Total
Usage string How long the environment has been used by a lab user
- Type string
The type of the resource.
- Location string
The location of the resource.
- Provisioning
State string The provisioning status of the resource.
- Resource
Sets ResourceSet Response The set of a VM and the setting id it was created for
- map[string]string
The tags of the resource.
- Unique
Identifier string The unique immutable identifier of a resource (Guid).
- claimed
By StringUser Name The name or email address of the user who has claimed the environment
- claimed
By StringUser Object Id The AAD object Id of the user who has claimed the environment
- claimed
By StringUser Principal Id The user principal Id of the user who has claimed the environment
- id String
The identifier of the resource.
- is
Claimed Boolean Is the environment claimed or not
- last
Known StringPower State Last known power state of the environment
- latest
Operation LatestResult Operation Result Response The details of the latest operation. ex: status, error
- name String
The name of the resource.
- network
Interface NetworkInterface Response Network details of the environment
- password
Last StringReset When the password was last reset on the environment.
- total
Usage String How long the environment has been used by a lab user
- type String
The type of the resource.
- location String
The location of the resource.
- provisioning
State String The provisioning status of the resource.
- resource
Sets ResourceSet Response The set of a VM and the setting id it was created for
- Map<String,String>
The tags of the resource.
- unique
Identifier String The unique immutable identifier of a resource (Guid).
- claimed
By stringUser Name The name or email address of the user who has claimed the environment
- claimed
By stringUser Object Id The AAD object Id of the user who has claimed the environment
- claimed
By stringUser Principal Id The user principal Id of the user who has claimed the environment
- id string
The identifier of the resource.
- is
Claimed boolean Is the environment claimed or not
- last
Known stringPower State Last known power state of the environment
- latest
Operation LatestResult Operation Result Response The details of the latest operation. ex: status, error
- name string
The name of the resource.
- network
Interface NetworkInterface Response Network details of the environment
- password
Last stringReset When the password was last reset on the environment.
- total
Usage string How long the environment has been used by a lab user
- type string
The type of the resource.
- location string
The location of the resource.
- provisioning
State string The provisioning status of the resource.
- resource
Sets ResourceSet Response The set of a VM and the setting id it was created for
- {[key: string]: string}
The tags of the resource.
- unique
Identifier string The unique immutable identifier of a resource (Guid).
- claimed_
by_ struser_ name The name or email address of the user who has claimed the environment
- claimed_
by_ struser_ object_ id The AAD object Id of the user who has claimed the environment
- claimed_
by_ struser_ principal_ id The user principal Id of the user who has claimed the environment
- id str
The identifier of the resource.
- is_
claimed bool Is the environment claimed or not
- last_
known_ strpower_ state Last known power state of the environment
- latest_
operation_ Latestresult Operation Result Response The details of the latest operation. ex: status, error
- name str
The name of the resource.
- network_
interface NetworkInterface Response Network details of the environment
- password_
last_ strreset When the password was last reset on the environment.
- total_
usage str How long the environment has been used by a lab user
- type str
The type of the resource.
- location str
The location of the resource.
- provisioning_
state str The provisioning status of the resource.
- resource_
sets ResourceSet Response The set of a VM and the setting id it was created for
- Mapping[str, str]
The tags of the resource.
- unique_
identifier str The unique immutable identifier of a resource (Guid).
- claimed
By StringUser Name The name or email address of the user who has claimed the environment
- claimed
By StringUser Object Id The AAD object Id of the user who has claimed the environment
- claimed
By StringUser Principal Id The user principal Id of the user who has claimed the environment
- id String
The identifier of the resource.
- is
Claimed Boolean Is the environment claimed or not
- last
Known StringPower State Last known power state of the environment
- latest
Operation Property MapResult The details of the latest operation. ex: status, error
- name String
The name of the resource.
- network
Interface Property Map Network details of the environment
- password
Last StringReset When the password was last reset on the environment.
- total
Usage String How long the environment has been used by a lab user
- type String
The type of the resource.
- location String
The location of the resource.
- provisioning
State String The provisioning status of the resource.
- resource
Sets Property Map The set of a VM and the setting id it was created for
- Map<String>
The tags of the resource.
- unique
Identifier String The unique immutable identifier of a resource (Guid).
Supporting Types
LatestOperationResultResponse
- Error
Code string Error code on failure.
- Error
Message string The error message.
- Http
Method string The HttpMethod - PUT/POST/DELETE for the operation.
- Operation
Url string The URL to use to check long-running operation status
- Request
Uri string Request URI of the operation.
- Status string
The current status of the operation.
- Error
Code string Error code on failure.
- Error
Message string The error message.
- Http
Method string The HttpMethod - PUT/POST/DELETE for the operation.
- Operation
Url string The URL to use to check long-running operation status
- Request
Uri string Request URI of the operation.
- Status string
The current status of the operation.
- error
Code String Error code on failure.
- error
Message String The error message.
- http
Method String The HttpMethod - PUT/POST/DELETE for the operation.
- operation
Url String The URL to use to check long-running operation status
- request
Uri String Request URI of the operation.
- status String
The current status of the operation.
- error
Code string Error code on failure.
- error
Message string The error message.
- http
Method string The HttpMethod - PUT/POST/DELETE for the operation.
- operation
Url string The URL to use to check long-running operation status
- request
Uri string Request URI of the operation.
- status string
The current status of the operation.
- error_
code str Error code on failure.
- error_
message str The error message.
- http_
method str The HttpMethod - PUT/POST/DELETE for the operation.
- operation_
url str The URL to use to check long-running operation status
- request_
uri str Request URI of the operation.
- status str
The current status of the operation.
- error
Code String Error code on failure.
- error
Message String The error message.
- http
Method String The HttpMethod - PUT/POST/DELETE for the operation.
- operation
Url String The URL to use to check long-running operation status
- request
Uri String Request URI of the operation.
- status String
The current status of the operation.
NetworkInterfaceResponse
- Private
Ip stringAddress PrivateIp address of the Compute VM
- string
Connection information for Windows
- string
Connection information for Linux
- Username string
Username of the VM
- Private
Ip stringAddress PrivateIp address of the Compute VM
- string
Connection information for Windows
- string
Connection information for Linux
- Username string
Username of the VM
- private
Ip StringAddress PrivateIp address of the Compute VM
- String
Connection information for Windows
- String
Connection information for Linux
- username String
Username of the VM
- private
Ip stringAddress PrivateIp address of the Compute VM
- string
Connection information for Windows
- string
Connection information for Linux
- username string
Username of the VM
- private_
ip_ straddress PrivateIp address of the Compute VM
- str
Connection information for Windows
- str
Connection information for Linux
- username str
Username of the VM
- private
Ip StringAddress PrivateIp address of the Compute VM
- String
Connection information for Windows
- String
Connection information for Linux
- username String
Username of the VM
ResourceSetResponse
- Resource
Setting stringId resourceSettingId for the environment
- Vm
Resource stringId VM resource Id for the environment
- Resource
Setting stringId resourceSettingId for the environment
- Vm
Resource stringId VM resource Id for the environment
- resource
Setting StringId resourceSettingId for the environment
- vm
Resource StringId VM resource Id for the environment
- resource
Setting stringId resourceSettingId for the environment
- vm
Resource stringId VM resource Id for the environment
- resource_
setting_ strid resourceSettingId for the environment
- vm_
resource_ strid VM resource Id for the environment
- resource
Setting StringId resourceSettingId for the environment
- vm
Resource StringId VM resource Id for the environment
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0