This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getApplication.go
56 lines (51 loc) · 2.57 KB
/
getApplication.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 v20180901preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupApplication(ctx *pulumi.Context, args *LookupApplicationArgs, opts ...pulumi.InvokeOption) (*LookupApplicationResult, error) {
var rv LookupApplicationResult
err := ctx.Invoke("azure-nextgen:servicefabricmesh/v20180901preview:getApplication", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupApplicationArgs struct {
// The identity of the application.
ApplicationResourceName string `pulumi:"applicationResourceName"`
// Azure resource group name
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// This type describes an application resource.
type LookupApplicationResult struct {
// Internal - used by Visual Studio to setup the debugging session on the local development environment.
DebugParams *string `pulumi:"debugParams"`
// User readable description of the application.
Description *string `pulumi:"description"`
// Describes the diagnostics definition and usage for an application resource.
Diagnostics *DiagnosticsDescriptionResponse `pulumi:"diagnostics"`
// Describes the health state of an application resource.
HealthState string `pulumi:"healthState"`
// The geo-location where the resource lives
Location string `pulumi:"location"`
// The name of the resource
Name string `pulumi:"name"`
// State of the resource.
ProvisioningState string `pulumi:"provisioningState"`
// Names of the services in the application.
ServiceNames []string `pulumi:"serviceNames"`
// Describes the services in the application. This property is used to create or modify services of the application. On get only the name of the service is returned. The service description can be obtained by querying for the service resource.
Services []ServiceResourceDescriptionResponse `pulumi:"services"`
// Status of the application.
Status string `pulumi:"status"`
// Gives additional information about the current status of the application.
StatusDetails string `pulumi:"statusDetails"`
// Resource tags.
Tags map[string]string `pulumi:"tags"`
// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Type string `pulumi:"type"`
// When the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy.
UnhealthyEvaluation string `pulumi:"unhealthyEvaluation"`
}