azure-native.apimanagement.Diagnostic
Explore with Pulumi AI
Diagnostic details. Azure REST API version: 2022-08-01. Prior API version in Azure Native 1.x: 2020-12-01.
Other available API versions: 2018-01-01, 2019-01-01, 2022-09-01-preview, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01, 2024-06-01-preview.
Example Usage
ApiManagementCreateDiagnostic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var diagnostic = new AzureNative.ApiManagement.Diagnostic("diagnostic", new()
    {
        AlwaysLog = AzureNative.ApiManagement.AlwaysLog.AllErrors,
        Backend = new AzureNative.ApiManagement.Inputs.PipelineDiagnosticSettingsArgs
        {
            Request = new AzureNative.ApiManagement.Inputs.HttpMessageDiagnosticArgs
            {
                Body = new AzureNative.ApiManagement.Inputs.BodyDiagnosticSettingsArgs
                {
                    Bytes = 512,
                },
                Headers = new[]
                {
                    "Content-type",
                },
            },
            Response = new AzureNative.ApiManagement.Inputs.HttpMessageDiagnosticArgs
            {
                Body = new AzureNative.ApiManagement.Inputs.BodyDiagnosticSettingsArgs
                {
                    Bytes = 512,
                },
                Headers = new[]
                {
                    "Content-type",
                },
            },
        },
        DiagnosticId = "applicationinsights",
        Frontend = new AzureNative.ApiManagement.Inputs.PipelineDiagnosticSettingsArgs
        {
            Request = new AzureNative.ApiManagement.Inputs.HttpMessageDiagnosticArgs
            {
                Body = new AzureNative.ApiManagement.Inputs.BodyDiagnosticSettingsArgs
                {
                    Bytes = 512,
                },
                Headers = new[]
                {
                    "Content-type",
                },
            },
            Response = new AzureNative.ApiManagement.Inputs.HttpMessageDiagnosticArgs
            {
                Body = new AzureNative.ApiManagement.Inputs.BodyDiagnosticSettingsArgs
                {
                    Bytes = 512,
                },
                Headers = new[]
                {
                    "Content-type",
                },
            },
        },
        LoggerId = "/loggers/azuremonitor",
        ResourceGroupName = "rg1",
        Sampling = new AzureNative.ApiManagement.Inputs.SamplingSettingsArgs
        {
            Percentage = 50,
            SamplingType = AzureNative.ApiManagement.SamplingType.@Fixed,
        },
        ServiceName = "apimService1",
    });
});
package main
import (
	apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apimanagement.NewDiagnostic(ctx, "diagnostic", &apimanagement.DiagnosticArgs{
			AlwaysLog: pulumi.String(apimanagement.AlwaysLogAllErrors),
			Backend: &apimanagement.PipelineDiagnosticSettingsArgs{
				Request: &apimanagement.HttpMessageDiagnosticArgs{
					Body: &apimanagement.BodyDiagnosticSettingsArgs{
						Bytes: pulumi.Int(512),
					},
					Headers: pulumi.StringArray{
						pulumi.String("Content-type"),
					},
				},
				Response: &apimanagement.HttpMessageDiagnosticArgs{
					Body: &apimanagement.BodyDiagnosticSettingsArgs{
						Bytes: pulumi.Int(512),
					},
					Headers: pulumi.StringArray{
						pulumi.String("Content-type"),
					},
				},
			},
			DiagnosticId: pulumi.String("applicationinsights"),
			Frontend: &apimanagement.PipelineDiagnosticSettingsArgs{
				Request: &apimanagement.HttpMessageDiagnosticArgs{
					Body: &apimanagement.BodyDiagnosticSettingsArgs{
						Bytes: pulumi.Int(512),
					},
					Headers: pulumi.StringArray{
						pulumi.String("Content-type"),
					},
				},
				Response: &apimanagement.HttpMessageDiagnosticArgs{
					Body: &apimanagement.BodyDiagnosticSettingsArgs{
						Bytes: pulumi.Int(512),
					},
					Headers: pulumi.StringArray{
						pulumi.String("Content-type"),
					},
				},
			},
			LoggerId:          pulumi.String("/loggers/azuremonitor"),
			ResourceGroupName: pulumi.String("rg1"),
			Sampling: &apimanagement.SamplingSettingsArgs{
				Percentage:   pulumi.Float64(50),
				SamplingType: pulumi.String(apimanagement.SamplingTypeFixed),
			},
			ServiceName: pulumi.String("apimService1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.Diagnostic;
import com.pulumi.azurenative.apimanagement.DiagnosticArgs;
import com.pulumi.azurenative.apimanagement.inputs.PipelineDiagnosticSettingsArgs;
import com.pulumi.azurenative.apimanagement.inputs.HttpMessageDiagnosticArgs;
import com.pulumi.azurenative.apimanagement.inputs.BodyDiagnosticSettingsArgs;
import com.pulumi.azurenative.apimanagement.inputs.SamplingSettingsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var diagnostic = new Diagnostic("diagnostic", DiagnosticArgs.builder()
            .alwaysLog("allErrors")
            .backend(PipelineDiagnosticSettingsArgs.builder()
                .request(HttpMessageDiagnosticArgs.builder()
                    .body(BodyDiagnosticSettingsArgs.builder()
                        .bytes(512)
                        .build())
                    .headers("Content-type")
                    .build())
                .response(HttpMessageDiagnosticArgs.builder()
                    .body(BodyDiagnosticSettingsArgs.builder()
                        .bytes(512)
                        .build())
                    .headers("Content-type")
                    .build())
                .build())
            .diagnosticId("applicationinsights")
            .frontend(PipelineDiagnosticSettingsArgs.builder()
                .request(HttpMessageDiagnosticArgs.builder()
                    .body(BodyDiagnosticSettingsArgs.builder()
                        .bytes(512)
                        .build())
                    .headers("Content-type")
                    .build())
                .response(HttpMessageDiagnosticArgs.builder()
                    .body(BodyDiagnosticSettingsArgs.builder()
                        .bytes(512)
                        .build())
                    .headers("Content-type")
                    .build())
                .build())
            .loggerId("/loggers/azuremonitor")
            .resourceGroupName("rg1")
            .sampling(SamplingSettingsArgs.builder()
                .percentage(50)
                .samplingType("fixed")
                .build())
            .serviceName("apimService1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const diagnostic = new azure_native.apimanagement.Diagnostic("diagnostic", {
    alwaysLog: azure_native.apimanagement.AlwaysLog.AllErrors,
    backend: {
        request: {
            body: {
                bytes: 512,
            },
            headers: ["Content-type"],
        },
        response: {
            body: {
                bytes: 512,
            },
            headers: ["Content-type"],
        },
    },
    diagnosticId: "applicationinsights",
    frontend: {
        request: {
            body: {
                bytes: 512,
            },
            headers: ["Content-type"],
        },
        response: {
            body: {
                bytes: 512,
            },
            headers: ["Content-type"],
        },
    },
    loggerId: "/loggers/azuremonitor",
    resourceGroupName: "rg1",
    sampling: {
        percentage: 50,
        samplingType: azure_native.apimanagement.SamplingType.Fixed,
    },
    serviceName: "apimService1",
});
import pulumi
import pulumi_azure_native as azure_native
diagnostic = azure_native.apimanagement.Diagnostic("diagnostic",
    always_log=azure_native.apimanagement.AlwaysLog.ALL_ERRORS,
    backend={
        "request": {
            "body": {
                "bytes": 512,
            },
            "headers": ["Content-type"],
        },
        "response": {
            "body": {
                "bytes": 512,
            },
            "headers": ["Content-type"],
        },
    },
    diagnostic_id="applicationinsights",
    frontend={
        "request": {
            "body": {
                "bytes": 512,
            },
            "headers": ["Content-type"],
        },
        "response": {
            "body": {
                "bytes": 512,
            },
            "headers": ["Content-type"],
        },
    },
    logger_id="/loggers/azuremonitor",
    resource_group_name="rg1",
    sampling={
        "percentage": 50,
        "sampling_type": azure_native.apimanagement.SamplingType.FIXED,
    },
    service_name="apimService1")
resources:
  diagnostic:
    type: azure-native:apimanagement:Diagnostic
    properties:
      alwaysLog: allErrors
      backend:
        request:
          body:
            bytes: 512
          headers:
            - Content-type
        response:
          body:
            bytes: 512
          headers:
            - Content-type
      diagnosticId: applicationinsights
      frontend:
        request:
          body:
            bytes: 512
          headers:
            - Content-type
        response:
          body:
            bytes: 512
          headers:
            - Content-type
      loggerId: /loggers/azuremonitor
      resourceGroupName: rg1
      sampling:
        percentage: 50
        samplingType: fixed
      serviceName: apimService1
Create Diagnostic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Diagnostic(name: string, args: DiagnosticArgs, opts?: CustomResourceOptions);@overload
def Diagnostic(resource_name: str,
               args: DiagnosticArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def Diagnostic(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               resource_group_name: Optional[str] = None,
               logger_id: Optional[str] = None,
               service_name: Optional[str] = None,
               backend: Optional[PipelineDiagnosticSettingsArgs] = None,
               diagnostic_id: Optional[str] = None,
               frontend: Optional[PipelineDiagnosticSettingsArgs] = None,
               http_correlation_protocol: Optional[Union[str, HttpCorrelationProtocol]] = None,
               log_client_ip: Optional[bool] = None,
               metrics: Optional[bool] = None,
               operation_name_format: Optional[Union[str, OperationNameFormat]] = None,
               always_log: Optional[Union[str, AlwaysLog]] = None,
               sampling: Optional[SamplingSettingsArgs] = None,
               verbosity: Optional[Union[str, Verbosity]] = None)func NewDiagnostic(ctx *Context, name string, args DiagnosticArgs, opts ...ResourceOption) (*Diagnostic, error)public Diagnostic(string name, DiagnosticArgs args, CustomResourceOptions? opts = null)
public Diagnostic(String name, DiagnosticArgs args)
public Diagnostic(String name, DiagnosticArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:Diagnostic
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DiagnosticArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DiagnosticArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DiagnosticArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DiagnosticArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DiagnosticArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var diagnosticResource = new AzureNative.ApiManagement.Diagnostic("diagnosticResource", new()
{
    ResourceGroupName = "string",
    LoggerId = "string",
    ServiceName = "string",
    Backend = new AzureNative.ApiManagement.Inputs.PipelineDiagnosticSettingsArgs
    {
        Request = new AzureNative.ApiManagement.Inputs.HttpMessageDiagnosticArgs
        {
            Body = new AzureNative.ApiManagement.Inputs.BodyDiagnosticSettingsArgs
            {
                Bytes = 0,
            },
            DataMasking = new AzureNative.ApiManagement.Inputs.DataMaskingArgs
            {
                Headers = new[]
                {
                    new AzureNative.ApiManagement.Inputs.DataMaskingEntityArgs
                    {
                        Mode = "string",
                        Value = "string",
                    },
                },
                QueryParams = new[]
                {
                    new AzureNative.ApiManagement.Inputs.DataMaskingEntityArgs
                    {
                        Mode = "string",
                        Value = "string",
                    },
                },
            },
            Headers = new[]
            {
                "string",
            },
        },
        Response = new AzureNative.ApiManagement.Inputs.HttpMessageDiagnosticArgs
        {
            Body = new AzureNative.ApiManagement.Inputs.BodyDiagnosticSettingsArgs
            {
                Bytes = 0,
            },
            DataMasking = new AzureNative.ApiManagement.Inputs.DataMaskingArgs
            {
                Headers = new[]
                {
                    new AzureNative.ApiManagement.Inputs.DataMaskingEntityArgs
                    {
                        Mode = "string",
                        Value = "string",
                    },
                },
                QueryParams = new[]
                {
                    new AzureNative.ApiManagement.Inputs.DataMaskingEntityArgs
                    {
                        Mode = "string",
                        Value = "string",
                    },
                },
            },
            Headers = new[]
            {
                "string",
            },
        },
    },
    DiagnosticId = "string",
    Frontend = new AzureNative.ApiManagement.Inputs.PipelineDiagnosticSettingsArgs
    {
        Request = new AzureNative.ApiManagement.Inputs.HttpMessageDiagnosticArgs
        {
            Body = new AzureNative.ApiManagement.Inputs.BodyDiagnosticSettingsArgs
            {
                Bytes = 0,
            },
            DataMasking = new AzureNative.ApiManagement.Inputs.DataMaskingArgs
            {
                Headers = new[]
                {
                    new AzureNative.ApiManagement.Inputs.DataMaskingEntityArgs
                    {
                        Mode = "string",
                        Value = "string",
                    },
                },
                QueryParams = new[]
                {
                    new AzureNative.ApiManagement.Inputs.DataMaskingEntityArgs
                    {
                        Mode = "string",
                        Value = "string",
                    },
                },
            },
            Headers = new[]
            {
                "string",
            },
        },
        Response = new AzureNative.ApiManagement.Inputs.HttpMessageDiagnosticArgs
        {
            Body = new AzureNative.ApiManagement.Inputs.BodyDiagnosticSettingsArgs
            {
                Bytes = 0,
            },
            DataMasking = new AzureNative.ApiManagement.Inputs.DataMaskingArgs
            {
                Headers = new[]
                {
                    new AzureNative.ApiManagement.Inputs.DataMaskingEntityArgs
                    {
                        Mode = "string",
                        Value = "string",
                    },
                },
                QueryParams = new[]
                {
                    new AzureNative.ApiManagement.Inputs.DataMaskingEntityArgs
                    {
                        Mode = "string",
                        Value = "string",
                    },
                },
            },
            Headers = new[]
            {
                "string",
            },
        },
    },
    HttpCorrelationProtocol = "string",
    LogClientIp = false,
    Metrics = false,
    OperationNameFormat = "string",
    AlwaysLog = "string",
    Sampling = new AzureNative.ApiManagement.Inputs.SamplingSettingsArgs
    {
        Percentage = 0,
        SamplingType = "string",
    },
    Verbosity = "string",
});
example, err := apimanagement.NewDiagnostic(ctx, "diagnosticResource", &apimanagement.DiagnosticArgs{
	ResourceGroupName: pulumi.String("string"),
	LoggerId:          pulumi.String("string"),
	ServiceName:       pulumi.String("string"),
	Backend: &apimanagement.PipelineDiagnosticSettingsArgs{
		Request: &apimanagement.HttpMessageDiagnosticArgs{
			Body: &apimanagement.BodyDiagnosticSettingsArgs{
				Bytes: pulumi.Int(0),
			},
			DataMasking: &apimanagement.DataMaskingArgs{
				Headers: apimanagement.DataMaskingEntityArray{
					&apimanagement.DataMaskingEntityArgs{
						Mode:  pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
				QueryParams: apimanagement.DataMaskingEntityArray{
					&apimanagement.DataMaskingEntityArgs{
						Mode:  pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
			},
			Headers: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		Response: &apimanagement.HttpMessageDiagnosticArgs{
			Body: &apimanagement.BodyDiagnosticSettingsArgs{
				Bytes: pulumi.Int(0),
			},
			DataMasking: &apimanagement.DataMaskingArgs{
				Headers: apimanagement.DataMaskingEntityArray{
					&apimanagement.DataMaskingEntityArgs{
						Mode:  pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
				QueryParams: apimanagement.DataMaskingEntityArray{
					&apimanagement.DataMaskingEntityArgs{
						Mode:  pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
			},
			Headers: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	DiagnosticId: pulumi.String("string"),
	Frontend: &apimanagement.PipelineDiagnosticSettingsArgs{
		Request: &apimanagement.HttpMessageDiagnosticArgs{
			Body: &apimanagement.BodyDiagnosticSettingsArgs{
				Bytes: pulumi.Int(0),
			},
			DataMasking: &apimanagement.DataMaskingArgs{
				Headers: apimanagement.DataMaskingEntityArray{
					&apimanagement.DataMaskingEntityArgs{
						Mode:  pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
				QueryParams: apimanagement.DataMaskingEntityArray{
					&apimanagement.DataMaskingEntityArgs{
						Mode:  pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
			},
			Headers: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		Response: &apimanagement.HttpMessageDiagnosticArgs{
			Body: &apimanagement.BodyDiagnosticSettingsArgs{
				Bytes: pulumi.Int(0),
			},
			DataMasking: &apimanagement.DataMaskingArgs{
				Headers: apimanagement.DataMaskingEntityArray{
					&apimanagement.DataMaskingEntityArgs{
						Mode:  pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
				QueryParams: apimanagement.DataMaskingEntityArray{
					&apimanagement.DataMaskingEntityArgs{
						Mode:  pulumi.String("string"),
						Value: pulumi.String("string"),
					},
				},
			},
			Headers: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	HttpCorrelationProtocol: pulumi.String("string"),
	LogClientIp:             pulumi.Bool(false),
	Metrics:                 pulumi.Bool(false),
	OperationNameFormat:     pulumi.String("string"),
	AlwaysLog:               pulumi.String("string"),
	Sampling: &apimanagement.SamplingSettingsArgs{
		Percentage:   pulumi.Float64(0),
		SamplingType: pulumi.String("string"),
	},
	Verbosity: pulumi.String("string"),
})
var diagnosticResource = new Diagnostic("diagnosticResource", DiagnosticArgs.builder()
    .resourceGroupName("string")
    .loggerId("string")
    .serviceName("string")
    .backend(PipelineDiagnosticSettingsArgs.builder()
        .request(HttpMessageDiagnosticArgs.builder()
            .body(BodyDiagnosticSettingsArgs.builder()
                .bytes(0)
                .build())
            .dataMasking(DataMaskingArgs.builder()
                .headers(DataMaskingEntityArgs.builder()
                    .mode("string")
                    .value("string")
                    .build())
                .queryParams(DataMaskingEntityArgs.builder()
                    .mode("string")
                    .value("string")
                    .build())
                .build())
            .headers("string")
            .build())
        .response(HttpMessageDiagnosticArgs.builder()
            .body(BodyDiagnosticSettingsArgs.builder()
                .bytes(0)
                .build())
            .dataMasking(DataMaskingArgs.builder()
                .headers(DataMaskingEntityArgs.builder()
                    .mode("string")
                    .value("string")
                    .build())
                .queryParams(DataMaskingEntityArgs.builder()
                    .mode("string")
                    .value("string")
                    .build())
                .build())
            .headers("string")
            .build())
        .build())
    .diagnosticId("string")
    .frontend(PipelineDiagnosticSettingsArgs.builder()
        .request(HttpMessageDiagnosticArgs.builder()
            .body(BodyDiagnosticSettingsArgs.builder()
                .bytes(0)
                .build())
            .dataMasking(DataMaskingArgs.builder()
                .headers(DataMaskingEntityArgs.builder()
                    .mode("string")
                    .value("string")
                    .build())
                .queryParams(DataMaskingEntityArgs.builder()
                    .mode("string")
                    .value("string")
                    .build())
                .build())
            .headers("string")
            .build())
        .response(HttpMessageDiagnosticArgs.builder()
            .body(BodyDiagnosticSettingsArgs.builder()
                .bytes(0)
                .build())
            .dataMasking(DataMaskingArgs.builder()
                .headers(DataMaskingEntityArgs.builder()
                    .mode("string")
                    .value("string")
                    .build())
                .queryParams(DataMaskingEntityArgs.builder()
                    .mode("string")
                    .value("string")
                    .build())
                .build())
            .headers("string")
            .build())
        .build())
    .httpCorrelationProtocol("string")
    .logClientIp(false)
    .metrics(false)
    .operationNameFormat("string")
    .alwaysLog("string")
    .sampling(SamplingSettingsArgs.builder()
        .percentage(0)
        .samplingType("string")
        .build())
    .verbosity("string")
    .build());
diagnostic_resource = azure_native.apimanagement.Diagnostic("diagnosticResource",
    resource_group_name="string",
    logger_id="string",
    service_name="string",
    backend={
        "request": {
            "body": {
                "bytes": 0,
            },
            "data_masking": {
                "headers": [{
                    "mode": "string",
                    "value": "string",
                }],
                "query_params": [{
                    "mode": "string",
                    "value": "string",
                }],
            },
            "headers": ["string"],
        },
        "response": {
            "body": {
                "bytes": 0,
            },
            "data_masking": {
                "headers": [{
                    "mode": "string",
                    "value": "string",
                }],
                "query_params": [{
                    "mode": "string",
                    "value": "string",
                }],
            },
            "headers": ["string"],
        },
    },
    diagnostic_id="string",
    frontend={
        "request": {
            "body": {
                "bytes": 0,
            },
            "data_masking": {
                "headers": [{
                    "mode": "string",
                    "value": "string",
                }],
                "query_params": [{
                    "mode": "string",
                    "value": "string",
                }],
            },
            "headers": ["string"],
        },
        "response": {
            "body": {
                "bytes": 0,
            },
            "data_masking": {
                "headers": [{
                    "mode": "string",
                    "value": "string",
                }],
                "query_params": [{
                    "mode": "string",
                    "value": "string",
                }],
            },
            "headers": ["string"],
        },
    },
    http_correlation_protocol="string",
    log_client_ip=False,
    metrics=False,
    operation_name_format="string",
    always_log="string",
    sampling={
        "percentage": 0,
        "sampling_type": "string",
    },
    verbosity="string")
const diagnosticResource = new azure_native.apimanagement.Diagnostic("diagnosticResource", {
    resourceGroupName: "string",
    loggerId: "string",
    serviceName: "string",
    backend: {
        request: {
            body: {
                bytes: 0,
            },
            dataMasking: {
                headers: [{
                    mode: "string",
                    value: "string",
                }],
                queryParams: [{
                    mode: "string",
                    value: "string",
                }],
            },
            headers: ["string"],
        },
        response: {
            body: {
                bytes: 0,
            },
            dataMasking: {
                headers: [{
                    mode: "string",
                    value: "string",
                }],
                queryParams: [{
                    mode: "string",
                    value: "string",
                }],
            },
            headers: ["string"],
        },
    },
    diagnosticId: "string",
    frontend: {
        request: {
            body: {
                bytes: 0,
            },
            dataMasking: {
                headers: [{
                    mode: "string",
                    value: "string",
                }],
                queryParams: [{
                    mode: "string",
                    value: "string",
                }],
            },
            headers: ["string"],
        },
        response: {
            body: {
                bytes: 0,
            },
            dataMasking: {
                headers: [{
                    mode: "string",
                    value: "string",
                }],
                queryParams: [{
                    mode: "string",
                    value: "string",
                }],
            },
            headers: ["string"],
        },
    },
    httpCorrelationProtocol: "string",
    logClientIp: false,
    metrics: false,
    operationNameFormat: "string",
    alwaysLog: "string",
    sampling: {
        percentage: 0,
        samplingType: "string",
    },
    verbosity: "string",
});
type: azure-native:apimanagement:Diagnostic
properties:
    alwaysLog: string
    backend:
        request:
            body:
                bytes: 0
            dataMasking:
                headers:
                    - mode: string
                      value: string
                queryParams:
                    - mode: string
                      value: string
            headers:
                - string
        response:
            body:
                bytes: 0
            dataMasking:
                headers:
                    - mode: string
                      value: string
                queryParams:
                    - mode: string
                      value: string
            headers:
                - string
    diagnosticId: string
    frontend:
        request:
            body:
                bytes: 0
            dataMasking:
                headers:
                    - mode: string
                      value: string
                queryParams:
                    - mode: string
                      value: string
            headers:
                - string
        response:
            body:
                bytes: 0
            dataMasking:
                headers:
                    - mode: string
                      value: string
                queryParams:
                    - mode: string
                      value: string
            headers:
                - string
    httpCorrelationProtocol: string
    logClientIp: false
    loggerId: string
    metrics: false
    operationNameFormat: string
    resourceGroupName: string
    sampling:
        percentage: 0
        samplingType: string
    serviceName: string
    verbosity: string
Diagnostic Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Diagnostic resource accepts the following input properties:
- LoggerId string
- Resource Id of a target logger.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ServiceName string
- The name of the API Management service.
- AlwaysLog string | Pulumi.Azure Native. Api Management. Always Log 
- Specifies for what type of messages sampling settings should not apply.
- Backend
Pulumi.Azure Native. Api Management. Inputs. Pipeline Diagnostic Settings 
- Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- DiagnosticId string
- Diagnostic identifier. Must be unique in the current API Management service instance.
- Frontend
Pulumi.Azure Native. Api Management. Inputs. Pipeline Diagnostic Settings 
- Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- HttpCorrelation string | Pulumi.Protocol Azure Native. Api Management. Http Correlation Protocol 
- Sets correlation protocol to use for Application Insights diagnostics.
- LogClient boolIp 
- Log the ClientIP. Default is false.
- Metrics bool
- Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
- OperationName string | Pulumi.Format Azure Native. Api Management. Operation Name Format 
- The format of the Operation Name for Application Insights telemetries. Default is Name.
- Sampling
Pulumi.Azure Native. Api Management. Inputs. Sampling Settings 
- Sampling settings for Diagnostic.
- Verbosity
string | Pulumi.Azure Native. Api Management. Verbosity 
- The verbosity level applied to traces emitted by trace policies.
- LoggerId string
- Resource Id of a target logger.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ServiceName string
- The name of the API Management service.
- AlwaysLog string | AlwaysLog 
- Specifies for what type of messages sampling settings should not apply.
- Backend
PipelineDiagnostic Settings Args 
- Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- DiagnosticId string
- Diagnostic identifier. Must be unique in the current API Management service instance.
- Frontend
PipelineDiagnostic Settings Args 
- Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- HttpCorrelation string | HttpProtocol Correlation Protocol 
- Sets correlation protocol to use for Application Insights diagnostics.
- LogClient boolIp 
- Log the ClientIP. Default is false.
- Metrics bool
- Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
- OperationName string | OperationFormat Name Format 
- The format of the Operation Name for Application Insights telemetries. Default is Name.
- Sampling
SamplingSettings Args 
- Sampling settings for Diagnostic.
- Verbosity string | Verbosity
- The verbosity level applied to traces emitted by trace policies.
- loggerId String
- Resource Id of a target logger.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- serviceName String
- The name of the API Management service.
- alwaysLog String | AlwaysLog 
- Specifies for what type of messages sampling settings should not apply.
- backend
PipelineDiagnostic Settings 
- Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- diagnosticId String
- Diagnostic identifier. Must be unique in the current API Management service instance.
- frontend
PipelineDiagnostic Settings 
- Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- httpCorrelation String | HttpProtocol Correlation Protocol 
- Sets correlation protocol to use for Application Insights diagnostics.
- logClient BooleanIp 
- Log the ClientIP. Default is false.
- metrics Boolean
- Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
- operationName String | OperationFormat Name Format 
- The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling
SamplingSettings 
- Sampling settings for Diagnostic.
- verbosity String | Verbosity
- The verbosity level applied to traces emitted by trace policies.
- loggerId string
- Resource Id of a target logger.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- serviceName string
- The name of the API Management service.
- alwaysLog string | AlwaysLog 
- Specifies for what type of messages sampling settings should not apply.
- backend
PipelineDiagnostic Settings 
- Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- diagnosticId string
- Diagnostic identifier. Must be unique in the current API Management service instance.
- frontend
PipelineDiagnostic Settings 
- Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- httpCorrelation string | HttpProtocol Correlation Protocol 
- Sets correlation protocol to use for Application Insights diagnostics.
- logClient booleanIp 
- Log the ClientIP. Default is false.
- metrics boolean
- Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
- operationName string | OperationFormat Name Format 
- The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling
SamplingSettings 
- Sampling settings for Diagnostic.
- verbosity string | Verbosity
- The verbosity level applied to traces emitted by trace policies.
- logger_id str
- Resource Id of a target logger.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- service_name str
- The name of the API Management service.
- always_log str | AlwaysLog 
- Specifies for what type of messages sampling settings should not apply.
- backend
PipelineDiagnostic Settings Args 
- Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- diagnostic_id str
- Diagnostic identifier. Must be unique in the current API Management service instance.
- frontend
PipelineDiagnostic Settings Args 
- Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- http_correlation_ str | Httpprotocol Correlation Protocol 
- Sets correlation protocol to use for Application Insights diagnostics.
- log_client_ boolip 
- Log the ClientIP. Default is false.
- metrics bool
- Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
- operation_name_ str | Operationformat Name Format 
- The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling
SamplingSettings Args 
- Sampling settings for Diagnostic.
- verbosity str | Verbosity
- The verbosity level applied to traces emitted by trace policies.
- loggerId String
- Resource Id of a target logger.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- serviceName String
- The name of the API Management service.
- alwaysLog String | "allErrors" 
- Specifies for what type of messages sampling settings should not apply.
- backend Property Map
- Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- diagnosticId String
- Diagnostic identifier. Must be unique in the current API Management service instance.
- frontend Property Map
- Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- httpCorrelation String | "None" | "Legacy" | "W3C"Protocol 
- Sets correlation protocol to use for Application Insights diagnostics.
- logClient BooleanIp 
- Log the ClientIP. Default is false.
- metrics Boolean
- Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
- operationName String | "Name" | "Url"Format 
- The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling Property Map
- Sampling settings for Diagnostic.
- verbosity String | "verbose" | "information" | "error"
- The verbosity level applied to traces emitted by trace policies.
Outputs
All input properties are implicitly available as output properties. Additionally, the Diagnostic resource produces the following output properties:
Supporting Types
AlwaysLog, AlwaysLogArgs    
- AllErrors 
- allErrorsAlways log all erroneous request regardless of sampling settings.
- AlwaysLog All Errors 
- allErrorsAlways log all erroneous request regardless of sampling settings.
- AllErrors 
- allErrorsAlways log all erroneous request regardless of sampling settings.
- AllErrors 
- allErrorsAlways log all erroneous request regardless of sampling settings.
- ALL_ERRORS
- allErrorsAlways log all erroneous request regardless of sampling settings.
- "allErrors" 
- allErrorsAlways log all erroneous request regardless of sampling settings.
BodyDiagnosticSettings, BodyDiagnosticSettingsArgs      
- Bytes int
- Number of request body bytes to log.
- Bytes int
- Number of request body bytes to log.
- bytes Integer
- Number of request body bytes to log.
- bytes number
- Number of request body bytes to log.
- bytes int
- Number of request body bytes to log.
- bytes Number
- Number of request body bytes to log.
BodyDiagnosticSettingsResponse, BodyDiagnosticSettingsResponseArgs        
- Bytes int
- Number of request body bytes to log.
- Bytes int
- Number of request body bytes to log.
- bytes Integer
- Number of request body bytes to log.
- bytes number
- Number of request body bytes to log.
- bytes int
- Number of request body bytes to log.
- bytes Number
- Number of request body bytes to log.
DataMasking, DataMaskingArgs    
- Headers
List<Pulumi.Azure Native. Api Management. Inputs. Data Masking Entity> 
- Masking settings for headers
- QueryParams List<Pulumi.Azure Native. Api Management. Inputs. Data Masking Entity> 
- Masking settings for Url query parameters
- Headers
[]DataMasking Entity 
- Masking settings for headers
- QueryParams []DataMasking Entity 
- Masking settings for Url query parameters
- headers
List<DataMasking Entity> 
- Masking settings for headers
- queryParams List<DataMasking Entity> 
- Masking settings for Url query parameters
- headers
DataMasking Entity[] 
- Masking settings for headers
- queryParams DataMasking Entity[] 
- Masking settings for Url query parameters
- headers
Sequence[DataMasking Entity] 
- Masking settings for headers
- query_params Sequence[DataMasking Entity] 
- Masking settings for Url query parameters
- headers List<Property Map>
- Masking settings for headers
- queryParams List<Property Map>
- Masking settings for Url query parameters
DataMaskingEntity, DataMaskingEntityArgs      
- Mode
string | Pulumi.Azure Native. Api Management. Data Masking Mode 
- Data masking mode.
- Value string
- The name of an entity to mask (e.g. a name of a header or a query parameter).
- Mode
string | DataMasking Mode 
- Data masking mode.
- Value string
- The name of an entity to mask (e.g. a name of a header or a query parameter).
- mode
String | DataMasking Mode 
- Data masking mode.
- value String
- The name of an entity to mask (e.g. a name of a header or a query parameter).
- mode
string | DataMasking Mode 
- Data masking mode.
- value string
- The name of an entity to mask (e.g. a name of a header or a query parameter).
- mode
str | DataMasking Mode 
- Data masking mode.
- value str
- The name of an entity to mask (e.g. a name of a header or a query parameter).
- mode String | "Mask" | "Hide"
- Data masking mode.
- value String
- The name of an entity to mask (e.g. a name of a header or a query parameter).
DataMaskingEntityResponse, DataMaskingEntityResponseArgs        
DataMaskingMode, DataMaskingModeArgs      
- Mask
- MaskMask the value of an entity.
- Hide
- HideHide the presence of an entity.
- DataMasking Mode Mask 
- MaskMask the value of an entity.
- DataMasking Mode Hide 
- HideHide the presence of an entity.
- Mask
- MaskMask the value of an entity.
- Hide
- HideHide the presence of an entity.
- Mask
- MaskMask the value of an entity.
- Hide
- HideHide the presence of an entity.
- MASK
- MaskMask the value of an entity.
- HIDE
- HideHide the presence of an entity.
- "Mask"
- MaskMask the value of an entity.
- "Hide"
- HideHide the presence of an entity.
DataMaskingResponse, DataMaskingResponseArgs      
- Headers
List<Pulumi.Azure Native. Api Management. Inputs. Data Masking Entity Response> 
- Masking settings for headers
- QueryParams List<Pulumi.Azure Native. Api Management. Inputs. Data Masking Entity Response> 
- Masking settings for Url query parameters
- Headers
[]DataMasking Entity Response 
- Masking settings for headers
- QueryParams []DataMasking Entity Response 
- Masking settings for Url query parameters
- headers
List<DataMasking Entity Response> 
- Masking settings for headers
- queryParams List<DataMasking Entity Response> 
- Masking settings for Url query parameters
- headers
DataMasking Entity Response[] 
- Masking settings for headers
- queryParams DataMasking Entity Response[] 
- Masking settings for Url query parameters
- headers
Sequence[DataMasking Entity Response] 
- Masking settings for headers
- query_params Sequence[DataMasking Entity Response] 
- Masking settings for Url query parameters
- headers List<Property Map>
- Masking settings for headers
- queryParams List<Property Map>
- Masking settings for Url query parameters
HttpCorrelationProtocol, HttpCorrelationProtocolArgs      
- None
- NoneDo not read and inject correlation headers.
- Legacy
- LegacyInject Request-Id and Request-Context headers with request correlation data. See https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md.
- W3C
- W3CInject Trace Context headers. See https://w3c.github.io/trace-context.
- HttpCorrelation Protocol None 
- NoneDo not read and inject correlation headers.
- HttpCorrelation Protocol Legacy 
- LegacyInject Request-Id and Request-Context headers with request correlation data. See https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md.
- HttpCorrelation Protocol W3C 
- W3CInject Trace Context headers. See https://w3c.github.io/trace-context.
- None
- NoneDo not read and inject correlation headers.
- Legacy
- LegacyInject Request-Id and Request-Context headers with request correlation data. See https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md.
- W3C
- W3CInject Trace Context headers. See https://w3c.github.io/trace-context.
- None
- NoneDo not read and inject correlation headers.
- Legacy
- LegacyInject Request-Id and Request-Context headers with request correlation data. See https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md.
- W3C
- W3CInject Trace Context headers. See https://w3c.github.io/trace-context.
- NONE
- NoneDo not read and inject correlation headers.
- LEGACY
- LegacyInject Request-Id and Request-Context headers with request correlation data. See https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md.
- W3_C
- W3CInject Trace Context headers. See https://w3c.github.io/trace-context.
- "None"
- NoneDo not read and inject correlation headers.
- "Legacy"
- LegacyInject Request-Id and Request-Context headers with request correlation data. See https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md.
- "W3C"
- W3CInject Trace Context headers. See https://w3c.github.io/trace-context.
HttpMessageDiagnostic, HttpMessageDiagnosticArgs      
- Body
Pulumi.Azure Native. Api Management. Inputs. Body Diagnostic Settings 
- Body logging settings.
- DataMasking Pulumi.Azure Native. Api Management. Inputs. Data Masking 
- Data masking settings.
- Headers List<string>
- Array of HTTP Headers to log.
- Body
BodyDiagnostic Settings 
- Body logging settings.
- DataMasking DataMasking 
- Data masking settings.
- Headers []string
- Array of HTTP Headers to log.
- body
BodyDiagnostic Settings 
- Body logging settings.
- dataMasking DataMasking 
- Data masking settings.
- headers List<String>
- Array of HTTP Headers to log.
- body
BodyDiagnostic Settings 
- Body logging settings.
- dataMasking DataMasking 
- Data masking settings.
- headers string[]
- Array of HTTP Headers to log.
- body
BodyDiagnostic Settings 
- Body logging settings.
- data_masking DataMasking 
- Data masking settings.
- headers Sequence[str]
- Array of HTTP Headers to log.
- body Property Map
- Body logging settings.
- dataMasking Property Map
- Data masking settings.
- headers List<String>
- Array of HTTP Headers to log.
HttpMessageDiagnosticResponse, HttpMessageDiagnosticResponseArgs        
- Body
Pulumi.Azure Native. Api Management. Inputs. Body Diagnostic Settings Response 
- Body logging settings.
- DataMasking Pulumi.Azure Native. Api Management. Inputs. Data Masking Response 
- Data masking settings.
- Headers List<string>
- Array of HTTP Headers to log.
- Body
BodyDiagnostic Settings Response 
- Body logging settings.
- DataMasking DataMasking Response 
- Data masking settings.
- Headers []string
- Array of HTTP Headers to log.
- body
BodyDiagnostic Settings Response 
- Body logging settings.
- dataMasking DataMasking Response 
- Data masking settings.
- headers List<String>
- Array of HTTP Headers to log.
- body
BodyDiagnostic Settings Response 
- Body logging settings.
- dataMasking DataMasking Response 
- Data masking settings.
- headers string[]
- Array of HTTP Headers to log.
- body
BodyDiagnostic Settings Response 
- Body logging settings.
- data_masking DataMasking Response 
- Data masking settings.
- headers Sequence[str]
- Array of HTTP Headers to log.
- body Property Map
- Body logging settings.
- dataMasking Property Map
- Data masking settings.
- headers List<String>
- Array of HTTP Headers to log.
OperationNameFormat, OperationNameFormatArgs      
- Name
- NameAPI_NAME;rev=API_REVISION - OPERATION_NAME
- Url
- UrlHTTP_VERB URL
- OperationName Format Name 
- NameAPI_NAME;rev=API_REVISION - OPERATION_NAME
- OperationName Format Url 
- UrlHTTP_VERB URL
- Name
- NameAPI_NAME;rev=API_REVISION - OPERATION_NAME
- Url
- UrlHTTP_VERB URL
- Name
- NameAPI_NAME;rev=API_REVISION - OPERATION_NAME
- Url
- UrlHTTP_VERB URL
- NAME
- NameAPI_NAME;rev=API_REVISION - OPERATION_NAME
- URL
- UrlHTTP_VERB URL
- "Name"
- NameAPI_NAME;rev=API_REVISION - OPERATION_NAME
- "Url"
- UrlHTTP_VERB URL
PipelineDiagnosticSettings, PipelineDiagnosticSettingsArgs      
- Request
Pulumi.Azure Native. Api Management. Inputs. Http Message Diagnostic 
- Diagnostic settings for request.
- Response
Pulumi.Azure Native. Api Management. Inputs. Http Message Diagnostic 
- Diagnostic settings for response.
- Request
HttpMessage Diagnostic 
- Diagnostic settings for request.
- Response
HttpMessage Diagnostic 
- Diagnostic settings for response.
- request
HttpMessage Diagnostic 
- Diagnostic settings for request.
- response
HttpMessage Diagnostic 
- Diagnostic settings for response.
- request
HttpMessage Diagnostic 
- Diagnostic settings for request.
- response
HttpMessage Diagnostic 
- Diagnostic settings for response.
- request
HttpMessage Diagnostic 
- Diagnostic settings for request.
- response
HttpMessage Diagnostic 
- Diagnostic settings for response.
- request Property Map
- Diagnostic settings for request.
- response Property Map
- Diagnostic settings for response.
PipelineDiagnosticSettingsResponse, PipelineDiagnosticSettingsResponseArgs        
- Request
Pulumi.Azure Native. Api Management. Inputs. Http Message Diagnostic Response 
- Diagnostic settings for request.
- Response
Pulumi.Azure Native. Api Management. Inputs. Http Message Diagnostic Response 
- Diagnostic settings for response.
- Request
HttpMessage Diagnostic Response 
- Diagnostic settings for request.
- Response
HttpMessage Diagnostic Response 
- Diagnostic settings for response.
- request
HttpMessage Diagnostic Response 
- Diagnostic settings for request.
- response
HttpMessage Diagnostic Response 
- Diagnostic settings for response.
- request
HttpMessage Diagnostic Response 
- Diagnostic settings for request.
- response
HttpMessage Diagnostic Response 
- Diagnostic settings for response.
- request
HttpMessage Diagnostic Response 
- Diagnostic settings for request.
- response
HttpMessage Diagnostic Response 
- Diagnostic settings for response.
- request Property Map
- Diagnostic settings for request.
- response Property Map
- Diagnostic settings for response.
SamplingSettings, SamplingSettingsArgs    
- Percentage double
- Rate of sampling for fixed-rate sampling.
- SamplingType string | Pulumi.Azure Native. Api Management. Sampling Type 
- Sampling type.
- Percentage float64
- Rate of sampling for fixed-rate sampling.
- SamplingType string | SamplingType 
- Sampling type.
- percentage Double
- Rate of sampling for fixed-rate sampling.
- samplingType String | SamplingType 
- Sampling type.
- percentage number
- Rate of sampling for fixed-rate sampling.
- samplingType string | SamplingType 
- Sampling type.
- percentage float
- Rate of sampling for fixed-rate sampling.
- sampling_type str | SamplingType 
- Sampling type.
- percentage Number
- Rate of sampling for fixed-rate sampling.
- samplingType String | "fixed"
- Sampling type.
SamplingSettingsResponse, SamplingSettingsResponseArgs      
- Percentage double
- Rate of sampling for fixed-rate sampling.
- SamplingType string
- Sampling type.
- Percentage float64
- Rate of sampling for fixed-rate sampling.
- SamplingType string
- Sampling type.
- percentage Double
- Rate of sampling for fixed-rate sampling.
- samplingType String
- Sampling type.
- percentage number
- Rate of sampling for fixed-rate sampling.
- samplingType string
- Sampling type.
- percentage float
- Rate of sampling for fixed-rate sampling.
- sampling_type str
- Sampling type.
- percentage Number
- Rate of sampling for fixed-rate sampling.
- samplingType String
- Sampling type.
SamplingType, SamplingTypeArgs    
- @Fixed
- fixedFixed-rate sampling.
- SamplingType Fixed 
- fixedFixed-rate sampling.
- Fixed
- fixedFixed-rate sampling.
- Fixed
- fixedFixed-rate sampling.
- FIXED
- fixedFixed-rate sampling.
- "fixed"
- fixedFixed-rate sampling.
Verbosity, VerbosityArgs  
- Verbose
- verboseAll the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance.
- Information
- informationTraces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance.
- Error
- errorOnly traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance.
- VerbosityVerbose 
- verboseAll the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance.
- VerbosityInformation 
- informationTraces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance.
- VerbosityError 
- errorOnly traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance.
- Verbose
- verboseAll the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance.
- Information
- informationTraces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance.
- Error
- errorOnly traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance.
- Verbose
- verboseAll the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance.
- Information
- informationTraces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance.
- Error
- errorOnly traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance.
- VERBOSE
- verboseAll the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance.
- INFORMATION
- informationTraces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance.
- ERROR
- errorOnly traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance.
- "verbose"
- verboseAll the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance.
- "information"
- informationTraces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance.
- "error"
- errorOnly traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:Diagnostic applicationinsights /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0