azure-native.apimanagement.DiagnosticLogger
Explore with Pulumi AI
Logger details. API Version: 2018-01-01.
Example Usage
ApiManagementCreateDiagnosticLogger
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var diagnosticLogger = new AzureNative.ApiManagement.DiagnosticLogger("diagnosticLogger", new()
{
DiagnosticId = "default",
Loggerid = "applicationinsights",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewDiagnosticLogger(ctx, "diagnosticLogger", &apimanagement.DiagnosticLoggerArgs{
DiagnosticId: pulumi.String("default"),
Loggerid: pulumi.String("applicationinsights"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.DiagnosticLogger;
import com.pulumi.azurenative.apimanagement.DiagnosticLoggerArgs;
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 diagnosticLogger = new DiagnosticLogger("diagnosticLogger", DiagnosticLoggerArgs.builder()
.diagnosticId("default")
.loggerid("applicationinsights")
.resourceGroupName("rg1")
.serviceName("apimService1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
diagnostic_logger = azure_native.apimanagement.DiagnosticLogger("diagnosticLogger",
diagnostic_id="default",
loggerid="applicationinsights",
resource_group_name="rg1",
service_name="apimService1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const diagnosticLogger = new azure_native.apimanagement.DiagnosticLogger("diagnosticLogger", {
diagnosticId: "default",
loggerid: "applicationinsights",
resourceGroupName: "rg1",
serviceName: "apimService1",
});
resources:
diagnosticLogger:
type: azure-native:apimanagement:DiagnosticLogger
properties:
diagnosticId: default
loggerid: applicationinsights
resourceGroupName: rg1
serviceName: apimService1
Create DiagnosticLogger Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DiagnosticLogger(name: string, args: DiagnosticLoggerArgs, opts?: CustomResourceOptions);
@overload
def DiagnosticLogger(resource_name: str,
args: DiagnosticLoggerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DiagnosticLogger(resource_name: str,
opts: Optional[ResourceOptions] = None,
diagnostic_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
loggerid: Optional[str] = None)
func NewDiagnosticLogger(ctx *Context, name string, args DiagnosticLoggerArgs, opts ...ResourceOption) (*DiagnosticLogger, error)
public DiagnosticLogger(string name, DiagnosticLoggerArgs args, CustomResourceOptions? opts = null)
public DiagnosticLogger(String name, DiagnosticLoggerArgs args)
public DiagnosticLogger(String name, DiagnosticLoggerArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:DiagnosticLogger
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 DiagnosticLoggerArgs
- 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 DiagnosticLoggerArgs
- 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 DiagnosticLoggerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DiagnosticLoggerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DiagnosticLoggerArgs
- 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 diagnosticLoggerResource = new AzureNative.Apimanagement.DiagnosticLogger("diagnosticLoggerResource", new()
{
DiagnosticId = "string",
ResourceGroupName = "string",
ServiceName = "string",
Loggerid = "string",
});
example, err := apimanagement.NewDiagnosticLogger(ctx, "diagnosticLoggerResource", &apimanagement.DiagnosticLoggerArgs{
DiagnosticId: "string",
ResourceGroupName: "string",
ServiceName: "string",
Loggerid: "string",
})
var diagnosticLoggerResource = new DiagnosticLogger("diagnosticLoggerResource", DiagnosticLoggerArgs.builder()
.diagnosticId("string")
.resourceGroupName("string")
.serviceName("string")
.loggerid("string")
.build());
diagnostic_logger_resource = azure_native.apimanagement.DiagnosticLogger("diagnosticLoggerResource",
diagnostic_id=string,
resource_group_name=string,
service_name=string,
loggerid=string)
const diagnosticLoggerResource = new azure_native.apimanagement.DiagnosticLogger("diagnosticLoggerResource", {
diagnosticId: "string",
resourceGroupName: "string",
serviceName: "string",
loggerid: "string",
});
type: azure-native:apimanagement:DiagnosticLogger
properties:
diagnosticId: string
loggerid: string
resourceGroupName: string
serviceName: string
DiagnosticLogger Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DiagnosticLogger resource accepts the following input properties:
- Diagnostic
Id string - Diagnostic identifier. Must be unique in the current API Management service instance.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Loggerid string
- Logger identifier. Must be unique in the 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.
- Service
Name string - The name of the API Management service.
- Loggerid string
- Logger identifier. Must be unique in the 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.
- service
Name String - The name of the API Management service.
- loggerid String
- Logger identifier. Must be unique in the 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.
- service
Name string - The name of the API Management service.
- loggerid string
- Logger identifier. Must be unique in the 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.
- service_
name str - The name of the API Management service.
- loggerid str
- Logger identifier. Must be unique in the 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.
- service
Name String - The name of the API Management service.
- loggerid String
- Logger identifier. Must be unique in the API Management service instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the DiagnosticLogger resource produces the following output properties:
- Credentials Dictionary<string, string>
- The name and SendRule connection string of the event hub for azureEventHub logger. Instrumentation key for applicationInsights logger.
- Id string
- The provider-assigned unique ID for this managed resource.
- Logger
Type string - Logger type.
- Name string
- Resource name.
- Type string
- Resource type for API Management resource.
- Description string
- Logger description.
- Is
Buffered bool - Whether records are buffered in the logger before publishing. Default is assumed to be true.
- Credentials map[string]string
- The name and SendRule connection string of the event hub for azureEventHub logger. Instrumentation key for applicationInsights logger.
- Id string
- The provider-assigned unique ID for this managed resource.
- Logger
Type string - Logger type.
- Name string
- Resource name.
- Type string
- Resource type for API Management resource.
- Description string
- Logger description.
- Is
Buffered bool - Whether records are buffered in the logger before publishing. Default is assumed to be true.
- credentials Map<String,String>
- The name and SendRule connection string of the event hub for azureEventHub logger. Instrumentation key for applicationInsights logger.
- id String
- The provider-assigned unique ID for this managed resource.
- logger
Type String - Logger type.
- name String
- Resource name.
- type String
- Resource type for API Management resource.
- description String
- Logger description.
- is
Buffered Boolean - Whether records are buffered in the logger before publishing. Default is assumed to be true.
- credentials {[key: string]: string}
- The name and SendRule connection string of the event hub for azureEventHub logger. Instrumentation key for applicationInsights logger.
- id string
- The provider-assigned unique ID for this managed resource.
- logger
Type string - Logger type.
- name string
- Resource name.
- type string
- Resource type for API Management resource.
- description string
- Logger description.
- is
Buffered boolean - Whether records are buffered in the logger before publishing. Default is assumed to be true.
- credentials Mapping[str, str]
- The name and SendRule connection string of the event hub for azureEventHub logger. Instrumentation key for applicationInsights logger.
- id str
- The provider-assigned unique ID for this managed resource.
- logger_
type str - Logger type.
- name str
- Resource name.
- type str
- Resource type for API Management resource.
- description str
- Logger description.
- is_
buffered bool - Whether records are buffered in the logger before publishing. Default is assumed to be true.
- credentials Map<String>
- The name and SendRule connection string of the event hub for azureEventHub logger. Instrumentation key for applicationInsights logger.
- id String
- The provider-assigned unique ID for this managed resource.
- logger
Type String - Logger type.
- name String
- Resource name.
- type String
- Resource type for API Management resource.
- description String
- Logger description.
- is
Buffered Boolean - Whether records are buffered in the logger before publishing. Default is assumed to be true.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:DiagnosticLogger applicationinsights /subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/diagnostics/default/loggers/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