UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

114 lines (113 loc) 2.98 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get environment. * * Uses Azure REST API version 2018-09-15. */ export declare function getEnvironment(args: GetEnvironmentArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentResult>; export interface GetEnvironmentArgs { /** * Specify the $expand query. Example: 'properties($select=deploymentProperties)' */ expand?: string; /** * The name of the lab. */ labName: string; /** * The name of the DtlEnvironment */ name: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The name of the user profile. */ userName: string; } /** * An environment, which is essentially an ARM template deployment. */ export interface GetEnvironmentResult { /** * The display name of the Azure Resource Manager template that produced the environment. */ readonly armTemplateDisplayName?: string; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The creator of the environment. */ readonly createdByUser: string; /** * The deployment properties of the environment. */ readonly deploymentProperties?: outputs.devtestlab.EnvironmentDeploymentPropertiesResponse; /** * The identifier of the resource. */ readonly id: string; /** * The location of the resource. */ readonly location?: string; /** * The name of the resource. */ readonly name: string; /** * The provisioning status of the resource. */ readonly provisioningState: string; /** * The identifier of the resource group containing the environment's resources. */ readonly resourceGroupId: string; /** * The tags of the resource. */ readonly tags?: { [key: string]: string; }; /** * The type of the resource. */ readonly type: string; /** * The unique immutable identifier of a resource (Guid). */ readonly uniqueIdentifier: string; } /** * Get environment. * * Uses Azure REST API version 2018-09-15. */ export declare function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEnvironmentResult>; export interface GetEnvironmentOutputArgs { /** * Specify the $expand query. Example: 'properties($select=deploymentProperties)' */ expand?: pulumi.Input<string>; /** * The name of the lab. */ labName: pulumi.Input<string>; /** * The name of the DtlEnvironment */ name: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * The name of the user profile. */ userName: pulumi.Input<string>; }