azure-native.apimanagement.getApiDiagnostic
Explore with Pulumi AI
Gets the details of the Diagnostic for an API specified by its identifier.
Uses Azure REST API version 2022-09-01-preview.
Other available API versions: 2021-04-01-preview, 2021-08-01, 2021-12-01-preview, 2022-04-01-preview, 2022-08-01, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01, 2024-06-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native apimanagement [ApiVersion]
. See the version guide for details.
Using getApiDiagnostic
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getApiDiagnostic(args: GetApiDiagnosticArgs, opts?: InvokeOptions): Promise<GetApiDiagnosticResult>
function getApiDiagnosticOutput(args: GetApiDiagnosticOutputArgs, opts?: InvokeOptions): Output<GetApiDiagnosticResult>
def get_api_diagnostic(api_id: Optional[str] = None,
diagnostic_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiDiagnosticResult
def get_api_diagnostic_output(api_id: Optional[pulumi.Input[str]] = None,
diagnostic_id: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApiDiagnosticResult]
func LookupApiDiagnostic(ctx *Context, args *LookupApiDiagnosticArgs, opts ...InvokeOption) (*LookupApiDiagnosticResult, error)
func LookupApiDiagnosticOutput(ctx *Context, args *LookupApiDiagnosticOutputArgs, opts ...InvokeOption) LookupApiDiagnosticResultOutput
> Note: This function is named LookupApiDiagnostic
in the Go SDK.
public static class GetApiDiagnostic
{
public static Task<GetApiDiagnosticResult> InvokeAsync(GetApiDiagnosticArgs args, InvokeOptions? opts = null)
public static Output<GetApiDiagnosticResult> Invoke(GetApiDiagnosticInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApiDiagnosticResult> getApiDiagnostic(GetApiDiagnosticArgs args, InvokeOptions options)
public static Output<GetApiDiagnosticResult> getApiDiagnostic(GetApiDiagnosticArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:apimanagement:getApiDiagnostic
arguments:
# arguments dictionary
The following arguments are supported:
- Api
Id string - API identifier. Must be unique in the current API Management service instance.
- Diagnostic
Id string - Diagnostic identifier. Must be unique in the current API Management service instance.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Service
Name string - The name of the API Management service.
- Api
Id string - API identifier. Must be unique in the current API Management service instance.
- Diagnostic
Id string - Diagnostic identifier. Must be unique in the current API Management service instance.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Service
Name string - The name of the API Management service.
- api
Id String - API identifier. Must be unique in the current API Management service instance.
- diagnostic
Id String - Diagnostic identifier. Must be unique in the current API Management service instance.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- service
Name String - The name of the API Management service.
- api
Id string - API identifier. Must be unique in the current API Management service instance.
- diagnostic
Id string - Diagnostic identifier. Must be unique in the current API Management service instance.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- service
Name string - The name of the API Management service.
- api_
id str - API identifier. Must be unique in the current API Management service instance.
- diagnostic_
id str - Diagnostic identifier. Must be unique in the current API Management service instance.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- service_
name str - The name of the API Management service.
- api
Id String - API identifier. Must be unique in the current API Management service instance.
- diagnostic
Id String - Diagnostic identifier. Must be unique in the current API Management service instance.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- service
Name String - The name of the API Management service.
getApiDiagnostic Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Logger
Id string - Resource Id of a target logger.
- Name string
- The name of the resource
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Always
Log string - Specifies for what type of messages sampling settings should not apply.
- Backend
Pulumi.
Azure Native. Api Management. Outputs. Pipeline Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- Frontend
Pulumi.
Azure Native. Api Management. Outputs. Pipeline Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- Http
Correlation stringProtocol - 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 stringFormat - The format of the Operation Name for Application Insights telemetries. Default is Name.
- Sampling
Pulumi.
Azure Native. Api Management. Outputs. Sampling Settings Response - Sampling settings for Diagnostic.
- Verbosity string
- The verbosity level applied to traces emitted by trace policies.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Logger
Id string - Resource Id of a target logger.
- Name string
- The name of the resource
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Always
Log string - Specifies for what type of messages sampling settings should not apply.
- Backend
Pipeline
Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- Frontend
Pipeline
Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- Http
Correlation stringProtocol - 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 stringFormat - The format of the Operation Name for Application Insights telemetries. Default is Name.
- Sampling
Sampling
Settings Response - Sampling settings for Diagnostic.
- Verbosity string
- The verbosity level applied to traces emitted by trace policies.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- logger
Id String - Resource Id of a target logger.
- name String
- The name of the resource
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- always
Log String - Specifies for what type of messages sampling settings should not apply.
- backend
Pipeline
Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- frontend
Pipeline
Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- http
Correlation StringProtocol - 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 StringFormat - The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling
Sampling
Settings Response - Sampling settings for Diagnostic.
- verbosity String
- The verbosity level applied to traces emitted by trace policies.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- logger
Id string - Resource Id of a target logger.
- name string
- The name of the resource
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- always
Log string - Specifies for what type of messages sampling settings should not apply.
- backend
Pipeline
Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- frontend
Pipeline
Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- http
Correlation stringProtocol - 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 stringFormat - The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling
Sampling
Settings Response - Sampling settings for Diagnostic.
- verbosity string
- The verbosity level applied to traces emitted by trace policies.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- logger_
id str - Resource Id of a target logger.
- name str
- The name of the resource
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- always_
log str - Specifies for what type of messages sampling settings should not apply.
- backend
Pipeline
Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- frontend
Pipeline
Diagnostic Settings Response - Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- http_
correlation_ strprotocol - 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_ strformat - The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling
Sampling
Settings Response - Sampling settings for Diagnostic.
- verbosity str
- The verbosity level applied to traces emitted by trace policies.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- logger
Id String - Resource Id of a target logger.
- name String
- The name of the resource
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- always
Log String - Specifies for what type of messages sampling settings should not apply.
- backend Property Map
- Diagnostic settings for incoming/outgoing HTTP messages to the Backend
- frontend Property Map
- Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
- http
Correlation StringProtocol - 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 StringFormat - The format of the Operation Name for Application Insights telemetries. Default is Name.
- sampling Property Map
- Sampling settings for Diagnostic.
- verbosity String
- The verbosity level applied to traces emitted by trace policies.
Supporting Types
BodyDiagnosticSettingsResponse
- 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.
DataMaskingEntityResponse
DataMaskingResponse
- 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
HttpMessageDiagnosticResponse
- 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.
PipelineDiagnosticSettingsResponse
- 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.
SamplingSettingsResponse
- 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.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0