This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getApiDiagnostic.go
56 lines (51 loc) · 2.27 KB
/
getApiDiagnostic.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 v20200601preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupApiDiagnostic(ctx *pulumi.Context, args *LookupApiDiagnosticArgs, opts ...pulumi.InvokeOption) (*LookupApiDiagnosticResult, error) {
var rv LookupApiDiagnosticResult
err := ctx.Invoke("azure-nextgen:apimanagement/v20200601preview:getApiDiagnostic", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupApiDiagnosticArgs struct {
// API identifier. Must be unique in the current API Management service instance.
ApiId string `pulumi:"apiId"`
// Diagnostic identifier. Must be unique in the current API Management service instance.
DiagnosticId string `pulumi:"diagnosticId"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the API Management service.
ServiceName string `pulumi:"serviceName"`
}
// Diagnostic details.
type LookupApiDiagnosticResult struct {
// Specifies for what type of messages sampling settings should not apply.
AlwaysLog *string `pulumi:"alwaysLog"`
// Diagnostic settings for incoming/outgoing HTTP messages to the Backend
Backend *PipelineDiagnosticSettingsResponse `pulumi:"backend"`
// Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
Frontend *PipelineDiagnosticSettingsResponse `pulumi:"frontend"`
// Sets correlation protocol to use for Application Insights diagnostics.
HttpCorrelationProtocol *string `pulumi:"httpCorrelationProtocol"`
// Resource ID.
Id string `pulumi:"id"`
// Log the ClientIP. Default is false.
LogClientIp *bool `pulumi:"logClientIp"`
// Resource Id of a target logger.
LoggerId string `pulumi:"loggerId"`
// Resource name.
Name string `pulumi:"name"`
// The format of the Operation Name for Application Insights telemetries. Default is Name.
OperationNameFormat *string `pulumi:"operationNameFormat"`
// Sampling settings for Diagnostic.
Sampling *SamplingSettingsResponse `pulumi:"sampling"`
// Resource type for API Management resource.
Type string `pulumi:"type"`
// The verbosity level applied to traces emitted by trace policies.
Verbosity *string `pulumi:"verbosity"`
}