This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getEnvironment.go
56 lines (51 loc) · 2.09 KB
/
getEnvironment.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package latest
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupEnvironment(ctx *pulumi.Context, args *LookupEnvironmentArgs, opts ...pulumi.InvokeOption) (*LookupEnvironmentResult, error) {
var rv LookupEnvironmentResult
err := ctx.Invoke("azure-nextgen:devtestlab/latest:getEnvironment", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupEnvironmentArgs struct {
// Specify the $expand query. Example: 'properties($select=deploymentProperties)'
Expand *string `pulumi:"expand"`
// The name of the lab.
LabName string `pulumi:"labName"`
// The name of the environment.
Name string `pulumi:"name"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the user profile.
UserName string `pulumi:"userName"`
}
// An environment, which is essentially an ARM template deployment.
type LookupEnvironmentResult struct {
// The display name of the Azure Resource Manager template that produced the environment.
ArmTemplateDisplayName *string `pulumi:"armTemplateDisplayName"`
// The creator of the environment.
CreatedByUser string `pulumi:"createdByUser"`
// The deployment properties of the environment.
DeploymentProperties *EnvironmentDeploymentPropertiesResponse `pulumi:"deploymentProperties"`
// The identifier of the resource.
Id string `pulumi:"id"`
// The location of the resource.
Location *string `pulumi:"location"`
// The name of the resource.
Name string `pulumi:"name"`
// The provisioning status of the resource.
ProvisioningState string `pulumi:"provisioningState"`
// The identifier of the resource group containing the environment's resources.
ResourceGroupId string `pulumi:"resourceGroupId"`
// The tags of the resource.
Tags map[string]string `pulumi:"tags"`
// The type of the resource.
Type string `pulumi:"type"`
// The unique immutable identifier of a resource (Guid).
UniqueIdentifier string `pulumi:"uniqueIdentifier"`
}