1. Packages
  2. Azure Native v2
  3. API Docs
  4. apimanagement
  5. WorkspaceApiDiagnostic
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.apimanagement.WorkspaceApiDiagnostic

Explore with Pulumi AI

Diagnostic details. Azure REST API version: 2023-09-01-preview.

Other available API versions: 2024-05-01, 2024-06-01-preview.

Example Usage

ApiManagementCreateWorkspaceApiDiagnostic

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var workspaceApiDiagnostic = new AzureNative.ApiManagement.WorkspaceApiDiagnostic("workspaceApiDiagnostic", new()
    {
        AlwaysLog = AzureNative.ApiManagement.AlwaysLog.AllErrors,
        ApiId = "57d1f7558aa04f15146d9d8a",
        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 = "/workspaces/wks1/loggers/applicationinsights",
        ResourceGroupName = "rg1",
        Sampling = new AzureNative.ApiManagement.Inputs.SamplingSettingsArgs
        {
            Percentage = 50,
            SamplingType = AzureNative.ApiManagement.SamplingType.@Fixed,
        },
        ServiceName = "apimService1",
        WorkspaceId = "wks1",
    });

});
Copy
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.NewWorkspaceApiDiagnostic(ctx, "workspaceApiDiagnostic", &apimanagement.WorkspaceApiDiagnosticArgs{
			AlwaysLog: pulumi.String(apimanagement.AlwaysLogAllErrors),
			ApiId:     pulumi.String("57d1f7558aa04f15146d9d8a"),
			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("/workspaces/wks1/loggers/applicationinsights"),
			ResourceGroupName: pulumi.String("rg1"),
			Sampling: &apimanagement.SamplingSettingsArgs{
				Percentage:   pulumi.Float64(50),
				SamplingType: pulumi.String(apimanagement.SamplingTypeFixed),
			},
			ServiceName: pulumi.String("apimService1"),
			WorkspaceId: pulumi.String("wks1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.WorkspaceApiDiagnostic;
import com.pulumi.azurenative.apimanagement.WorkspaceApiDiagnosticArgs;
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 workspaceApiDiagnostic = new WorkspaceApiDiagnostic("workspaceApiDiagnostic", WorkspaceApiDiagnosticArgs.builder()
            .alwaysLog("allErrors")
            .apiId("57d1f7558aa04f15146d9d8a")
            .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("/workspaces/wks1/loggers/applicationinsights")
            .resourceGroupName("rg1")
            .sampling(SamplingSettingsArgs.builder()
                .percentage(50)
                .samplingType("fixed")
                .build())
            .serviceName("apimService1")
            .workspaceId("wks1")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const workspaceApiDiagnostic = new azure_native.apimanagement.WorkspaceApiDiagnostic("workspaceApiDiagnostic", {
    alwaysLog: azure_native.apimanagement.AlwaysLog.AllErrors,
    apiId: "57d1f7558aa04f15146d9d8a",
    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: "/workspaces/wks1/loggers/applicationinsights",
    resourceGroupName: "rg1",
    sampling: {
        percentage: 50,
        samplingType: azure_native.apimanagement.SamplingType.Fixed,
    },
    serviceName: "apimService1",
    workspaceId: "wks1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

workspace_api_diagnostic = azure_native.apimanagement.WorkspaceApiDiagnostic("workspaceApiDiagnostic",
    always_log=azure_native.apimanagement.AlwaysLog.ALL_ERRORS,
    api_id="57d1f7558aa04f15146d9d8a",
    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="/workspaces/wks1/loggers/applicationinsights",
    resource_group_name="rg1",
    sampling={
        "percentage": 50,
        "sampling_type": azure_native.apimanagement.SamplingType.FIXED,
    },
    service_name="apimService1",
    workspace_id="wks1")
Copy
resources:
  workspaceApiDiagnostic:
    type: azure-native:apimanagement:WorkspaceApiDiagnostic
    properties:
      alwaysLog: allErrors
      apiId: 57d1f7558aa04f15146d9d8a
      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: /workspaces/wks1/loggers/applicationinsights
      resourceGroupName: rg1
      sampling:
        percentage: 50
        samplingType: fixed
      serviceName: apimService1
      workspaceId: wks1
Copy

Create WorkspaceApiDiagnostic Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new WorkspaceApiDiagnostic(name: string, args: WorkspaceApiDiagnosticArgs, opts?: CustomResourceOptions);
@overload
def WorkspaceApiDiagnostic(resource_name: str,
                           args: WorkspaceApiDiagnosticArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def WorkspaceApiDiagnostic(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           logger_id: Optional[str] = None,
                           api_id: Optional[str] = None,
                           workspace_id: Optional[str] = None,
                           service_name: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           log_client_ip: Optional[bool] = None,
                           always_log: Optional[Union[str, AlwaysLog]] = None,
                           http_correlation_protocol: Optional[Union[str, HttpCorrelationProtocol]] = None,
                           metrics: Optional[bool] = None,
                           operation_name_format: Optional[Union[str, OperationNameFormat]] = None,
                           frontend: Optional[PipelineDiagnosticSettingsArgs] = None,
                           sampling: Optional[SamplingSettingsArgs] = None,
                           diagnostic_id: Optional[str] = None,
                           verbosity: Optional[Union[str, Verbosity]] = None,
                           backend: Optional[PipelineDiagnosticSettingsArgs] = None)
func NewWorkspaceApiDiagnostic(ctx *Context, name string, args WorkspaceApiDiagnosticArgs, opts ...ResourceOption) (*WorkspaceApiDiagnostic, error)
public WorkspaceApiDiagnostic(string name, WorkspaceApiDiagnosticArgs args, CustomResourceOptions? opts = null)
public WorkspaceApiDiagnostic(String name, WorkspaceApiDiagnosticArgs args)
public WorkspaceApiDiagnostic(String name, WorkspaceApiDiagnosticArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:WorkspaceApiDiagnostic
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WorkspaceApiDiagnosticArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WorkspaceApiDiagnosticArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WorkspaceApiDiagnosticArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WorkspaceApiDiagnosticArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WorkspaceApiDiagnosticArgs
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 workspaceApiDiagnosticResource = new AzureNative.Apimanagement.WorkspaceApiDiagnostic("workspaceApiDiagnosticResource", new()
{
    LoggerId = "string",
    ApiId = "string",
    WorkspaceId = "string",
    ServiceName = "string",
    ResourceGroupName = "string",
    LogClientIp = false,
    AlwaysLog = "string",
    HttpCorrelationProtocol = "string",
    Metrics = false,
    OperationNameFormat = "string",
    Frontend = 
    {
        { "request", 
        {
            { "body", 
            {
                { "bytes", 0 },
            } },
            { "dataMasking", 
            {
                { "headers", new[]
                {
                    
                    {
                        { "mode", "string" },
                        { "value", "string" },
                    },
                } },
                { "queryParams", new[]
                {
                    
                    {
                        { "mode", "string" },
                        { "value", "string" },
                    },
                } },
            } },
            { "headers", new[]
            {
                "string",
            } },
        } },
        { "response", 
        {
            { "body", 
            {
                { "bytes", 0 },
            } },
            { "dataMasking", 
            {
                { "headers", new[]
                {
                    
                    {
                        { "mode", "string" },
                        { "value", "string" },
                    },
                } },
                { "queryParams", new[]
                {
                    
                    {
                        { "mode", "string" },
                        { "value", "string" },
                    },
                } },
            } },
            { "headers", new[]
            {
                "string",
            } },
        } },
    },
    Sampling = 
    {
        { "percentage", 0 },
        { "samplingType", "string" },
    },
    DiagnosticId = "string",
    Verbosity = "string",
    Backend = 
    {
        { "request", 
        {
            { "body", 
            {
                { "bytes", 0 },
            } },
            { "dataMasking", 
            {
                { "headers", new[]
                {
                    
                    {
                        { "mode", "string" },
                        { "value", "string" },
                    },
                } },
                { "queryParams", new[]
                {
                    
                    {
                        { "mode", "string" },
                        { "value", "string" },
                    },
                } },
            } },
            { "headers", new[]
            {
                "string",
            } },
        } },
        { "response", 
        {
            { "body", 
            {
                { "bytes", 0 },
            } },
            { "dataMasking", 
            {
                { "headers", new[]
                {
                    
                    {
                        { "mode", "string" },
                        { "value", "string" },
                    },
                } },
                { "queryParams", new[]
                {
                    
                    {
                        { "mode", "string" },
                        { "value", "string" },
                    },
                } },
            } },
            { "headers", new[]
            {
                "string",
            } },
        } },
    },
});
Copy
example, err := apimanagement.NewWorkspaceApiDiagnostic(ctx, "workspaceApiDiagnosticResource", &apimanagement.WorkspaceApiDiagnosticArgs{
	LoggerId:                "string",
	ApiId:                   "string",
	WorkspaceId:             "string",
	ServiceName:             "string",
	ResourceGroupName:       "string",
	LogClientIp:             false,
	AlwaysLog:               "string",
	HttpCorrelationProtocol: "string",
	Metrics:                 false,
	OperationNameFormat:     "string",
	Frontend: map[string]interface{}{
		"request": map[string]interface{}{
			"body": map[string]interface{}{
				"bytes": 0,
			},
			"dataMasking": map[string]interface{}{
				"headers": []map[string]interface{}{
					map[string]interface{}{
						"mode":  "string",
						"value": "string",
					},
				},
				"queryParams": []map[string]interface{}{
					map[string]interface{}{
						"mode":  "string",
						"value": "string",
					},
				},
			},
			"headers": []string{
				"string",
			},
		},
		"response": map[string]interface{}{
			"body": map[string]interface{}{
				"bytes": 0,
			},
			"dataMasking": map[string]interface{}{
				"headers": []map[string]interface{}{
					map[string]interface{}{
						"mode":  "string",
						"value": "string",
					},
				},
				"queryParams": []map[string]interface{}{
					map[string]interface{}{
						"mode":  "string",
						"value": "string",
					},
				},
			},
			"headers": []string{
				"string",
			},
		},
	},
	Sampling: map[string]interface{}{
		"percentage":   0,
		"samplingType": "string",
	},
	DiagnosticId: "string",
	Verbosity:    "string",
	Backend: map[string]interface{}{
		"request": map[string]interface{}{
			"body": map[string]interface{}{
				"bytes": 0,
			},
			"dataMasking": map[string]interface{}{
				"headers": []map[string]interface{}{
					map[string]interface{}{
						"mode":  "string",
						"value": "string",
					},
				},
				"queryParams": []map[string]interface{}{
					map[string]interface{}{
						"mode":  "string",
						"value": "string",
					},
				},
			},
			"headers": []string{
				"string",
			},
		},
		"response": map[string]interface{}{
			"body": map[string]interface{}{
				"bytes": 0,
			},
			"dataMasking": map[string]interface{}{
				"headers": []map[string]interface{}{
					map[string]interface{}{
						"mode":  "string",
						"value": "string",
					},
				},
				"queryParams": []map[string]interface{}{
					map[string]interface{}{
						"mode":  "string",
						"value": "string",
					},
				},
			},
			"headers": []string{
				"string",
			},
		},
	},
})
Copy
var workspaceApiDiagnosticResource = new WorkspaceApiDiagnostic("workspaceApiDiagnosticResource", WorkspaceApiDiagnosticArgs.builder()
    .loggerId("string")
    .apiId("string")
    .workspaceId("string")
    .serviceName("string")
    .resourceGroupName("string")
    .logClientIp(false)
    .alwaysLog("string")
    .httpCorrelationProtocol("string")
    .metrics(false)
    .operationNameFormat("string")
    .frontend(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .sampling(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .diagnosticId("string")
    .verbosity("string")
    .backend(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
workspace_api_diagnostic_resource = azure_native.apimanagement.WorkspaceApiDiagnostic("workspaceApiDiagnosticResource",
    logger_id=string,
    api_id=string,
    workspace_id=string,
    service_name=string,
    resource_group_name=string,
    log_client_ip=False,
    always_log=string,
    http_correlation_protocol=string,
    metrics=False,
    operation_name_format=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],
        },
    },
    sampling={
        percentage: 0,
        samplingType: string,
    },
    diagnostic_id=string,
    verbosity=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],
        },
    })
Copy
const workspaceApiDiagnosticResource = new azure_native.apimanagement.WorkspaceApiDiagnostic("workspaceApiDiagnosticResource", {
    loggerId: "string",
    apiId: "string",
    workspaceId: "string",
    serviceName: "string",
    resourceGroupName: "string",
    logClientIp: false,
    alwaysLog: "string",
    httpCorrelationProtocol: "string",
    metrics: false,
    operationNameFormat: "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"],
        },
    },
    sampling: {
        percentage: 0,
        samplingType: "string",
    },
    diagnosticId: "string",
    verbosity: "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"],
        },
    },
});
Copy
type: azure-native:apimanagement:WorkspaceApiDiagnostic
properties:
    alwaysLog: string
    apiId: 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
    workspaceId: string
Copy

WorkspaceApiDiagnostic 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 WorkspaceApiDiagnostic resource accepts the following input properties:

ApiId
This property is required.
Changes to this property will trigger replacement.
string
API identifier. Must be unique in the current API Management service instance.
LoggerId This property is required. string
Resource Id of a target logger.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
WorkspaceId
This property is required.
Changes to this property will trigger replacement.
string
Workspace identifier. Must be unique in the current API Management service instance.
AlwaysLog string | Pulumi.AzureNative.ApiManagement.AlwaysLog
Specifies for what type of messages sampling settings should not apply.
Backend Pulumi.AzureNative.ApiManagement.Inputs.PipelineDiagnosticSettings
Diagnostic settings for incoming/outgoing HTTP messages to the Backend
DiagnosticId Changes to this property will trigger replacement. string
Diagnostic identifier. Must be unique in the current API Management service instance.
Frontend Pulumi.AzureNative.ApiManagement.Inputs.PipelineDiagnosticSettings
Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
HttpCorrelationProtocol string | Pulumi.AzureNative.ApiManagement.HttpCorrelationProtocol
Sets correlation protocol to use for Application Insights diagnostics.
LogClientIp bool
Log the ClientIP. Default is false.
Metrics bool
Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
OperationNameFormat string | Pulumi.AzureNative.ApiManagement.OperationNameFormat
The format of the Operation Name for Application Insights telemetries. Default is Name.
Sampling Pulumi.AzureNative.ApiManagement.Inputs.SamplingSettings
Sampling settings for Diagnostic.
Verbosity string | Pulumi.AzureNative.ApiManagement.Verbosity
The verbosity level applied to traces emitted by trace policies.
ApiId
This property is required.
Changes to this property will trigger replacement.
string
API identifier. Must be unique in the current API Management service instance.
LoggerId This property is required. string
Resource Id of a target logger.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
WorkspaceId
This property is required.
Changes to this property will trigger replacement.
string
Workspace identifier. Must be unique in the current API Management service instance.
AlwaysLog string | AlwaysLog
Specifies for what type of messages sampling settings should not apply.
Backend PipelineDiagnosticSettingsArgs
Diagnostic settings for incoming/outgoing HTTP messages to the Backend
DiagnosticId Changes to this property will trigger replacement. string
Diagnostic identifier. Must be unique in the current API Management service instance.
Frontend PipelineDiagnosticSettingsArgs
Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
HttpCorrelationProtocol string | HttpCorrelationProtocol
Sets correlation protocol to use for Application Insights diagnostics.
LogClientIp bool
Log the ClientIP. Default is false.
Metrics bool
Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
OperationNameFormat string | OperationNameFormat
The format of the Operation Name for Application Insights telemetries. Default is Name.
Sampling SamplingSettingsArgs
Sampling settings for Diagnostic.
Verbosity string | Verbosity
The verbosity level applied to traces emitted by trace policies.
apiId
This property is required.
Changes to this property will trigger replacement.
String
API identifier. Must be unique in the current API Management service instance.
loggerId This property is required. String
Resource Id of a target logger.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
workspaceId
This property is required.
Changes to this property will trigger replacement.
String
Workspace identifier. Must be unique in the current API Management service instance.
alwaysLog String | AlwaysLog
Specifies for what type of messages sampling settings should not apply.
backend PipelineDiagnosticSettings
Diagnostic settings for incoming/outgoing HTTP messages to the Backend
diagnosticId Changes to this property will trigger replacement. String
Diagnostic identifier. Must be unique in the current API Management service instance.
frontend PipelineDiagnosticSettings
Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
httpCorrelationProtocol String | HttpCorrelationProtocol
Sets correlation protocol to use for Application Insights diagnostics.
logClientIp Boolean
Log the ClientIP. Default is false.
metrics Boolean
Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
operationNameFormat String | OperationNameFormat
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.
apiId
This property is required.
Changes to this property will trigger replacement.
string
API identifier. Must be unique in the current API Management service instance.
loggerId This property is required. string
Resource Id of a target logger.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
workspaceId
This property is required.
Changes to this property will trigger replacement.
string
Workspace identifier. Must be unique in the current API Management service instance.
alwaysLog string | AlwaysLog
Specifies for what type of messages sampling settings should not apply.
backend PipelineDiagnosticSettings
Diagnostic settings for incoming/outgoing HTTP messages to the Backend
diagnosticId Changes to this property will trigger replacement. string
Diagnostic identifier. Must be unique in the current API Management service instance.
frontend PipelineDiagnosticSettings
Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
httpCorrelationProtocol string | HttpCorrelationProtocol
Sets correlation protocol to use for Application Insights diagnostics.
logClientIp boolean
Log the ClientIP. Default is false.
metrics boolean
Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
operationNameFormat string | OperationNameFormat
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.
api_id
This property is required.
Changes to this property will trigger replacement.
str
API identifier. Must be unique in the current API Management service instance.
logger_id This property is required. str
Resource Id of a target logger.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
service_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the API Management service.
workspace_id
This property is required.
Changes to this property will trigger replacement.
str
Workspace identifier. Must be unique in the current API Management service instance.
always_log str | AlwaysLog
Specifies for what type of messages sampling settings should not apply.
backend PipelineDiagnosticSettingsArgs
Diagnostic settings for incoming/outgoing HTTP messages to the Backend
diagnostic_id Changes to this property will trigger replacement. str
Diagnostic identifier. Must be unique in the current API Management service instance.
frontend PipelineDiagnosticSettingsArgs
Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
http_correlation_protocol str | HttpCorrelationProtocol
Sets correlation protocol to use for Application Insights diagnostics.
log_client_ip bool
Log the ClientIP. Default is false.
metrics bool
Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
operation_name_format str | OperationNameFormat
The format of the Operation Name for Application Insights telemetries. Default is Name.
sampling SamplingSettingsArgs
Sampling settings for Diagnostic.
verbosity str | Verbosity
The verbosity level applied to traces emitted by trace policies.
apiId
This property is required.
Changes to this property will trigger replacement.
String
API identifier. Must be unique in the current API Management service instance.
loggerId This property is required. String
Resource Id of a target logger.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
workspaceId
This property is required.
Changes to this property will trigger replacement.
String
Workspace identifier. Must be unique in the current API Management service instance.
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 Changes to this property will trigger replacement. 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.
httpCorrelationProtocol String | "None" | "Legacy" | "W3C"
Sets correlation protocol to use for Application Insights diagnostics.
logClientIp Boolean
Log the ClientIP. Default is false.
metrics Boolean
Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
operationNameFormat String | "Name" | "Url"
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 WorkspaceApiDiagnostic resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

AlwaysLog
, AlwaysLogArgs

AllErrors
allErrorsAlways log all erroneous request regardless of sampling settings.
AlwaysLogAllErrors
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 []DataMaskingEntity
Masking settings for headers
QueryParams []DataMaskingEntity
Masking settings for Url query parameters
headers List<DataMaskingEntity>
Masking settings for headers
queryParams List<DataMaskingEntity>
Masking settings for Url query parameters
headers DataMaskingEntity[]
Masking settings for headers
queryParams DataMaskingEntity[]
Masking settings for Url query parameters
headers Sequence[DataMaskingEntity]
Masking settings for headers
query_params Sequence[DataMaskingEntity]
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.AzureNative.ApiManagement.DataMaskingMode
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 | DataMaskingMode
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 | DataMaskingMode
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 | DataMaskingMode
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 | DataMaskingMode
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

Mode string
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
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
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
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
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
Data masking mode.
value String
The name of an entity to mask (e.g. a name of a header or a query parameter).

DataMaskingMode
, DataMaskingModeArgs

Mask
MaskMask the value of an entity.
Hide
HideHide the presence of an entity.
DataMaskingModeMask
MaskMask the value of an entity.
DataMaskingModeHide
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 []DataMaskingEntityResponse
Masking settings for headers
QueryParams []DataMaskingEntityResponse
Masking settings for Url query parameters
headers List<DataMaskingEntityResponse>
Masking settings for headers
queryParams List<DataMaskingEntityResponse>
Masking settings for Url query parameters
headers DataMaskingEntityResponse[]
Masking settings for headers
queryParams DataMaskingEntityResponse[]
Masking settings for Url query parameters
headers Sequence[DataMaskingEntityResponse]
Masking settings for headers
query_params Sequence[DataMaskingEntityResponse]
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.
HttpCorrelationProtocolNone
NoneDo not read and inject correlation headers.
HttpCorrelationProtocolLegacy
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.
HttpCorrelationProtocolW3C
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 BodyDiagnosticSettings
Body logging settings.
DataMasking DataMasking
Data masking settings.
Headers []string
Array of HTTP Headers to log.
body BodyDiagnosticSettings
Body logging settings.
dataMasking DataMasking
Data masking settings.
headers List<String>
Array of HTTP Headers to log.
body BodyDiagnosticSettings
Body logging settings.
dataMasking DataMasking
Data masking settings.
headers string[]
Array of HTTP Headers to log.
body BodyDiagnosticSettings
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 BodyDiagnosticSettingsResponse
Body logging settings.
DataMasking DataMaskingResponse
Data masking settings.
Headers []string
Array of HTTP Headers to log.
body BodyDiagnosticSettingsResponse
Body logging settings.
dataMasking DataMaskingResponse
Data masking settings.
headers List<String>
Array of HTTP Headers to log.
body BodyDiagnosticSettingsResponse
Body logging settings.
dataMasking DataMaskingResponse
Data masking settings.
headers string[]
Array of HTTP Headers to log.
body BodyDiagnosticSettingsResponse
Body logging settings.
data_masking DataMaskingResponse
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
OperationNameFormatName
NameAPI_NAME;rev=API_REVISION - OPERATION_NAME
OperationNameFormatUrl
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 HttpMessageDiagnostic
Diagnostic settings for request.
Response HttpMessageDiagnostic
Diagnostic settings for response.
request HttpMessageDiagnostic
Diagnostic settings for request.
response HttpMessageDiagnostic
Diagnostic settings for response.
request HttpMessageDiagnostic
Diagnostic settings for request.
response HttpMessageDiagnostic
Diagnostic settings for response.
request HttpMessageDiagnostic
Diagnostic settings for request.
response HttpMessageDiagnostic
Diagnostic settings for response.
request Property Map
Diagnostic settings for request.
response Property Map
Diagnostic settings for response.

PipelineDiagnosticSettingsResponse
, PipelineDiagnosticSettingsResponseArgs

Request HttpMessageDiagnosticResponse
Diagnostic settings for request.
Response HttpMessageDiagnosticResponse
Diagnostic settings for response.
request HttpMessageDiagnosticResponse
Diagnostic settings for request.
response HttpMessageDiagnosticResponse
Diagnostic settings for response.
request HttpMessageDiagnosticResponse
Diagnostic settings for request.
response HttpMessageDiagnosticResponse
Diagnostic settings for response.
request HttpMessageDiagnosticResponse
Diagnostic settings for request.
response HttpMessageDiagnosticResponse
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.AzureNative.ApiManagement.SamplingType
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.
SamplingTypeFixed
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:WorkspaceApiDiagnostic applicationinsights /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/diagnostics/{diagnosticId} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0