azure-native.apimanagement.ApiDiagnostic
Explore with Pulumi AI
Diagnostic details. API Version: 2020-12-01.
Example Usage
ApiManagementCreateApiDiagnostic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var apiDiagnostic = new AzureNative.ApiManagement.ApiDiagnostic("apiDiagnostic", new()
{
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 = "/loggers/applicationinsights",
ResourceGroupName = "rg1",
Sampling = new AzureNative.ApiManagement.Inputs.SamplingSettingsArgs
{
Percentage = 50,
SamplingType = "fixed",
},
ServiceName = "apimService1",
});
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.ApiDiagnostic;
import com.pulumi.azurenative.apimanagement.ApiDiagnosticArgs;
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 apiDiagnostic = new ApiDiagnostic("apiDiagnostic", ApiDiagnosticArgs.builder()
.alwaysLog("allErrors")
.apiId("57d1f7558aa04f15146d9d8a")
.backend(Map.ofEntries(
Map.entry("request", Map.ofEntries(
Map.entry("body", Map.of("bytes", 512)),
Map.entry("headers", "Content-type")
)),
Map.entry("response", Map.ofEntries(
Map.entry("body", Map.of("bytes", 512)),
Map.entry("headers", "Content-type")
))
))
.diagnosticId("applicationinsights")
.frontend(Map.ofEntries(
Map.entry("request", Map.ofEntries(
Map.entry("body", Map.of("bytes", 512)),
Map.entry("headers", "Content-type")
)),
Map.entry("response", Map.ofEntries(
Map.entry("body", Map.of("bytes", 512)),
Map.entry("headers", "Content-type")
))
))
.loggerId("/loggers/applicationinsights")
.resourceGroupName("rg1")
.sampling(Map.ofEntries(
Map.entry("percentage", 50),
Map.entry("samplingType", "fixed")
))
.serviceName("apimService1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api_diagnostic = azure_native.apimanagement.ApiDiagnostic("apiDiagnostic",
always_log="allErrors",
api_id="57d1f7558aa04f15146d9d8a",
backend=azure_native.apimanagement.PipelineDiagnosticSettingsResponseArgs(
request={
"body": azure_native.apimanagement.BodyDiagnosticSettingsArgs(
bytes=512,
),
"headers": ["Content-type"],
},
response={
"body": azure_native.apimanagement.BodyDiagnosticSettingsArgs(
bytes=512,
),
"headers": ["Content-type"],
},
),
diagnostic_id="applicationinsights",
frontend=azure_native.apimanagement.PipelineDiagnosticSettingsResponseArgs(
request={
"body": azure_native.apimanagement.BodyDiagnosticSettingsArgs(
bytes=512,
),
"headers": ["Content-type"],
},
response={
"body": azure_native.apimanagement.BodyDiagnosticSettingsArgs(
bytes=512,
),
"headers": ["Content-type"],
},
),
logger_id="/loggers/applicationinsights",
resource_group_name="rg1",
sampling=azure_native.apimanagement.SamplingSettingsArgs(
percentage=50,
sampling_type="fixed",
),
service_name="apimService1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const apiDiagnostic = new azure_native.apimanagement.ApiDiagnostic("apiDiagnostic", {
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: "/loggers/applicationinsights",
resourceGroupName: "rg1",
sampling: {
percentage: 50,
samplingType: "fixed",
},
serviceName: "apimService1",
});
resources:
apiDiagnostic:
type: azure-native:apimanagement:ApiDiagnostic
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: /loggers/applicationinsights
resourceGroupName: rg1
sampling:
percentage: 50
samplingType: fixed
serviceName: apimService1
Create ApiDiagnostic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiDiagnostic(name: string, args: ApiDiagnosticArgs, opts?: CustomResourceOptions);
@overload
def ApiDiagnostic(resource_name: str,
args: ApiDiagnosticArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiDiagnostic(resource_name: str,
opts: Optional[ResourceOptions] = None,
logger_id: Optional[str] = None,
api_id: Optional[str] = None,
service_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
log_client_ip: Optional[bool] = None,
http_correlation_protocol: Optional[Union[str, HttpCorrelationProtocol]] = None,
always_log: Optional[Union[str, AlwaysLog]] = None,
frontend: Optional[PipelineDiagnosticSettingsArgs] = None,
metrics: Optional[bool] = None,
operation_name_format: Optional[Union[str, OperationNameFormat]] = None,
diagnostic_id: Optional[str] = None,
sampling: Optional[SamplingSettingsArgs] = None,
backend: Optional[PipelineDiagnosticSettingsArgs] = None,
verbosity: Optional[Union[str, Verbosity]] = None)
func NewApiDiagnostic(ctx *Context, name string, args ApiDiagnosticArgs, opts ...ResourceOption) (*ApiDiagnostic, error)
public ApiDiagnostic(string name, ApiDiagnosticArgs args, CustomResourceOptions? opts = null)
public ApiDiagnostic(String name, ApiDiagnosticArgs args)
public ApiDiagnostic(String name, ApiDiagnosticArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:ApiDiagnostic
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 ApiDiagnosticArgs
- 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 ApiDiagnosticArgs
- 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 ApiDiagnosticArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiDiagnosticArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiDiagnosticArgs
- 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 apiDiagnosticResource = new AzureNative.Apimanagement.ApiDiagnostic("apiDiagnosticResource", new()
{
LoggerId = "string",
ApiId = "string",
ServiceName = "string",
ResourceGroupName = "string",
LogClientIp = false,
HttpCorrelationProtocol = "string",
AlwaysLog = "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",
} },
} },
},
Metrics = false,
OperationNameFormat = "string",
DiagnosticId = "string",
Sampling =
{
{ "percentage", 0 },
{ "samplingType", "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",
} },
} },
},
Verbosity = "string",
});
example, err := apimanagement.NewApiDiagnostic(ctx, "apiDiagnosticResource", &apimanagement.ApiDiagnosticArgs{
LoggerId: "string",
ApiId: "string",
ServiceName: "string",
ResourceGroupName: "string",
LogClientIp: false,
HttpCorrelationProtocol: "string",
AlwaysLog: "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",
},
},
},
Metrics: false,
OperationNameFormat: "string",
DiagnosticId: "string",
Sampling: map[string]interface{}{
"percentage": 0,
"samplingType": "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",
},
},
},
Verbosity: "string",
})
var apiDiagnosticResource = new ApiDiagnostic("apiDiagnosticResource", ApiDiagnosticArgs.builder()
.loggerId("string")
.apiId("string")
.serviceName("string")
.resourceGroupName("string")
.logClientIp(false)
.httpCorrelationProtocol("string")
.alwaysLog("string")
.frontend(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.metrics(false)
.operationNameFormat("string")
.diagnosticId("string")
.sampling(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.backend(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.verbosity("string")
.build());
api_diagnostic_resource = azure_native.apimanagement.ApiDiagnostic("apiDiagnosticResource",
logger_id=string,
api_id=string,
service_name=string,
resource_group_name=string,
log_client_ip=False,
http_correlation_protocol=string,
always_log=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],
},
},
metrics=False,
operation_name_format=string,
diagnostic_id=string,
sampling={
percentage: 0,
samplingType: 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],
},
},
verbosity=string)
const apiDiagnosticResource = new azure_native.apimanagement.ApiDiagnostic("apiDiagnosticResource", {
loggerId: "string",
apiId: "string",
serviceName: "string",
resourceGroupName: "string",
logClientIp: false,
httpCorrelationProtocol: "string",
alwaysLog: "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"],
},
},
metrics: false,
operationNameFormat: "string",
diagnosticId: "string",
sampling: {
percentage: 0,
samplingType: "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"],
},
},
verbosity: "string",
});
type: azure-native:apimanagement:ApiDiagnostic
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
ApiDiagnostic 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 ApiDiagnostic resource accepts the following input properties:
- Api
Id string - API identifier. Must be unique in the current API Management service instance.
- Logger
Id string - Resource Id of a target logger.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Always
Log 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
- Diagnostic
Id 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.
- Http
Correlation string | Pulumi.Protocol Azure Native. Api Management. Http 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 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.
- Api
Id string - API identifier. Must be unique in the current API Management service instance.
- Logger
Id string - Resource Id of a target logger.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Always
Log string | AlwaysLog - Specifies for what type of messages sampling settings should not apply.
- Backend
Pipeline
Diagnostic Settings Args - Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- Diagnostic
Id string - Diagnostic identifier. Must be unique in the current API Management service instance.
- Frontend
Pipeline
Diagnostic Settings Args - Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- Http
Correlation string | 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 string | OperationFormat Name Format - The format of the Operation Name for Application Insights telemetries. Default is Name.
- Sampling
Sampling
Settings Args - Sampling settings for Diagnostic.
- Verbosity string | Verbosity
- The verbosity level applied to traces emitted by trace policies.
- api
Id String - API identifier. Must be unique in the current API Management service instance.
- logger
Id String - Resource Id of a target logger.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- always
Log String | AlwaysLog - Specifies for what type of messages sampling settings should not apply.
- backend
Pipeline
Diagnostic Settings - Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- diagnostic
Id String - Diagnostic identifier. Must be unique in the current API Management service instance.
- frontend
Pipeline
Diagnostic Settings - Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- http
Correlation String | HttpProtocol Correlation Protocol - Sets correlation protocol to use for Application Insights diagnostics.
- log
Client BooleanIp - Log the ClientIP. Default is false.
- metrics Boolean
- Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
- operation
Name String | OperationFormat Name Format - The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling
Sampling
Settings - Sampling settings for Diagnostic.
- verbosity String | Verbosity
- The verbosity level applied to traces emitted by trace policies.
- api
Id string - API identifier. Must be unique in the current API Management service instance.
- logger
Id string - Resource Id of a target logger.
- resource
Group stringName - The name of the resource group.
- service
Name string - The name of the API Management service.
- always
Log string | AlwaysLog - Specifies for what type of messages sampling settings should not apply.
- backend
Pipeline
Diagnostic Settings - Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- diagnostic
Id string - Diagnostic identifier. Must be unique in the current API Management service instance.
- frontend
Pipeline
Diagnostic Settings - Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- http
Correlation string | HttpProtocol Correlation Protocol - Sets correlation protocol to use for Application Insights diagnostics.
- log
Client booleanIp - Log the ClientIP. Default is false.
- metrics boolean
- Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
- operation
Name string | OperationFormat Name Format - The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling
Sampling
Settings - Sampling settings for Diagnostic.
- verbosity string | Verbosity
- The verbosity level applied to traces emitted by trace policies.
- api_
id str - API identifier. Must be unique in the current API Management service instance.
- logger_
id str - Resource Id of a target logger.
- resource_
group_ strname - The name of the resource group.
- 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
Pipeline
Diagnostic 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
Pipeline
Diagnostic 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
Sampling
Settings Args - Sampling settings for Diagnostic.
- verbosity str | Verbosity
- The verbosity level applied to traces emitted by trace policies.
- api
Id String - API identifier. Must be unique in the current API Management service instance.
- logger
Id String - Resource Id of a target logger.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- always
Log 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
- diagnostic
Id 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.
- http
Correlation String | "None" | "Legacy" | "W3C"Protocol - Sets correlation protocol to use for Application Insights diagnostics.
- log
Client BooleanIp - Log the ClientIP. Default is false.
- metrics Boolean
- Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings.
- operation
Name 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 ApiDiagnostic resource produces the following output properties:
Supporting Types
AlwaysLog, AlwaysLogArgs
- All
Errors - allErrorsAlways log all erroneous request regardless of sampling settings.
- Always
Log All Errors - allErrorsAlways log all erroneous request regardless of sampling settings.
- All
Errors - allErrorsAlways log all erroneous request regardless of sampling settings.
- All
Errors - allErrorsAlways log all erroneous request regardless of sampling settings.
- ALL_ERRORS
- allErrorsAlways log all erroneous request regardless of sampling settings.
- "all
Errors" - 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
- Query
Params List<Pulumi.Azure Native. Api Management. Inputs. Data Masking Entity> - Masking settings for Url query parameters
- Headers
[]Data
Masking Entity - Masking settings for headers
- Query
Params []DataMasking Entity - Masking settings for Url query parameters
- headers
List<Data
Masking Entity> - Masking settings for headers
- query
Params List<DataMasking Entity> - Masking settings for Url query parameters
- headers
Data
Masking Entity[] - Masking settings for headers
- query
Params DataMasking Entity[] - Masking settings for Url query parameters
- headers
Sequence[Data
Masking Entity] - Masking settings for headers
- query_
params Sequence[DataMasking Entity] - Masking settings for Url query parameters
- headers List<Property Map>
- Masking settings for headers
- query
Params 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 | 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 | 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 | 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
str | Data
Masking 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.
- Data
Masking Mode Mask - MaskMask the value of an entity.
- Data
Masking 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
- Query
Params List<Pulumi.Azure Native. Api Management. Inputs. Data Masking Entity Response> - Masking settings for Url query parameters
- Headers
[]Data
Masking Entity Response - Masking settings for headers
- Query
Params []DataMasking Entity Response - Masking settings for Url query parameters
- headers
List<Data
Masking Entity Response> - Masking settings for headers
- query
Params List<DataMasking Entity Response> - Masking settings for Url query parameters
- headers
Data
Masking Entity Response[] - Masking settings for headers
- query
Params DataMasking Entity Response[] - Masking settings for Url query parameters
- headers
Sequence[Data
Masking 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
- query
Params 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.
- Http
Correlation Protocol None - NoneDo not read and inject correlation headers.
- Http
Correlation 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.
- Http
Correlation 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.
- Data
Masking Pulumi.Azure Native. Api Management. Inputs. Data Masking - Data masking settings.
- Headers List<string>
- Array of HTTP Headers to log.
- Body
Body
Diagnostic Settings - Body logging settings.
- Data
Masking DataMasking - Data masking settings.
- Headers []string
- Array of HTTP Headers to log.
- body
Body
Diagnostic Settings - Body logging settings.
- data
Masking DataMasking - Data masking settings.
- headers List<String>
- Array of HTTP Headers to log.
- body
Body
Diagnostic Settings - Body logging settings.
- data
Masking DataMasking - Data masking settings.
- headers string[]
- Array of HTTP Headers to log.
- body
Body
Diagnostic 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.
- data
Masking 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.
- Data
Masking Pulumi.Azure Native. Api Management. Inputs. Data Masking Response - Data masking settings.
- Headers List<string>
- Array of HTTP Headers to log.
- Body
Body
Diagnostic Settings Response - Body logging settings.
- Data
Masking DataMasking Response - Data masking settings.
- Headers []string
- Array of HTTP Headers to log.
- body
Body
Diagnostic Settings Response - Body logging settings.
- data
Masking DataMasking Response - Data masking settings.
- headers List<String>
- Array of HTTP Headers to log.
- body
Body
Diagnostic Settings Response - Body logging settings.
- data
Masking DataMasking Response - Data masking settings.
- headers string[]
- Array of HTTP Headers to log.
- body
Body
Diagnostic 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.
- data
Masking 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
- Operation
Name Format Name - NameAPI_NAME;rev=API_REVISION - OPERATION_NAME
- Operation
Name 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
Http
Message Diagnostic - Diagnostic settings for request.
- Response
Http
Message Diagnostic - Diagnostic settings for response.
- request
Http
Message Diagnostic - Diagnostic settings for request.
- response
Http
Message Diagnostic - Diagnostic settings for response.
- request
Http
Message Diagnostic - Diagnostic settings for request.
- response
Http
Message Diagnostic - Diagnostic settings for response.
- request
Http
Message Diagnostic - Diagnostic settings for request.
- response
Http
Message 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
Http
Message Diagnostic Response - Diagnostic settings for request.
- Response
Http
Message Diagnostic Response - Diagnostic settings for response.
- request
Http
Message Diagnostic Response - Diagnostic settings for request.
- response
Http
Message Diagnostic Response - Diagnostic settings for response.
- request
Http
Message Diagnostic Response - Diagnostic settings for request.
- response
Http
Message Diagnostic Response - Diagnostic settings for response.
- request
Http
Message Diagnostic Response - Diagnostic settings for request.
- response
Http
Message 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.
- Sampling
Type string | Pulumi.Azure Native. Api Management. Sampling Type - Sampling type.
- Percentage float64
- Rate of sampling for fixed-rate sampling.
- Sampling
Type string | SamplingType - Sampling type.
- percentage Double
- Rate of sampling for fixed-rate sampling.
- sampling
Type String | SamplingType - Sampling type.
- percentage number
- Rate of sampling for fixed-rate sampling.
- sampling
Type 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.
- sampling
Type String | "fixed" - Sampling type.
SamplingSettingsResponse, SamplingSettingsResponseArgs
- Percentage double
- Rate of sampling for fixed-rate sampling.
- Sampling
Type string - Sampling type.
- Percentage float64
- Rate of sampling for fixed-rate sampling.
- Sampling
Type string - Sampling type.
- percentage Double
- Rate of sampling for fixed-rate sampling.
- sampling
Type String - Sampling type.
- percentage number
- Rate of sampling for fixed-rate sampling.
- sampling
Type 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.
- sampling
Type String - Sampling type.
SamplingType, SamplingTypeArgs
- @Fixed
- fixedFixed-rate sampling.
- Sampling
Type 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.
- Verbosity
Verbose - verboseAll the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance.
- Verbosity
Information - informationTraces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance.
- Verbosity
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.
- "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:ApiDiagnostic applicationinsights /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a/diagnostics/applicationinsights
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0