1. Packages
  2. Azure Native v1
  3. API Docs
  4. apimanagement
  5. ApiDiagnosticLogger
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.apimanagement.ApiDiagnosticLogger

Explore with Pulumi AI

These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

Logger details. API Version: 2018-01-01.

Example Usage

ApiManagementCreateApiDiagnosticLogger

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

return await Deployment.RunAsync(() => 
{
    var apiDiagnosticLogger = new AzureNative.ApiManagement.ApiDiagnosticLogger("apiDiagnosticLogger", new()
    {
        ApiId = "57d1f7558aa04f15146d9d8a",
        DiagnosticId = "default",
        Loggerid = "applicationinsights",
        ResourceGroupName = "rg1",
        ServiceName = "apimService1",
    });

});
Copy
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.NewApiDiagnosticLogger(ctx, "apiDiagnosticLogger", &apimanagement.ApiDiagnosticLoggerArgs{
			ApiId:             pulumi.String("57d1f7558aa04f15146d9d8a"),
			DiagnosticId:      pulumi.String("default"),
			Loggerid:          pulumi.String("applicationinsights"),
			ResourceGroupName: pulumi.String("rg1"),
			ServiceName:       pulumi.String("apimService1"),
		})
		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.ApiDiagnosticLogger;
import com.pulumi.azurenative.apimanagement.ApiDiagnosticLoggerArgs;
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 apiDiagnosticLogger = new ApiDiagnosticLogger("apiDiagnosticLogger", ApiDiagnosticLoggerArgs.builder()        
            .apiId("57d1f7558aa04f15146d9d8a")
            .diagnosticId("default")
            .loggerid("applicationinsights")
            .resourceGroupName("rg1")
            .serviceName("apimService1")
            .build());

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

const apiDiagnosticLogger = new azure_native.apimanagement.ApiDiagnosticLogger("apiDiagnosticLogger", {
    apiId: "57d1f7558aa04f15146d9d8a",
    diagnosticId: "default",
    loggerid: "applicationinsights",
    resourceGroupName: "rg1",
    serviceName: "apimService1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

api_diagnostic_logger = azure_native.apimanagement.ApiDiagnosticLogger("apiDiagnosticLogger",
    api_id="57d1f7558aa04f15146d9d8a",
    diagnostic_id="default",
    loggerid="applicationinsights",
    resource_group_name="rg1",
    service_name="apimService1")
Copy
resources:
  apiDiagnosticLogger:
    type: azure-native:apimanagement:ApiDiagnosticLogger
    properties:
      apiId: 57d1f7558aa04f15146d9d8a
      diagnosticId: default
      loggerid: applicationinsights
      resourceGroupName: rg1
      serviceName: apimService1
Copy

Create ApiDiagnosticLogger Resource

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

Constructor syntax

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

@overload
def ApiDiagnosticLogger(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        api_id: Optional[str] = None,
                        diagnostic_id: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        service_name: Optional[str] = None,
                        loggerid: Optional[str] = None)
func NewApiDiagnosticLogger(ctx *Context, name string, args ApiDiagnosticLoggerArgs, opts ...ResourceOption) (*ApiDiagnosticLogger, error)
public ApiDiagnosticLogger(string name, ApiDiagnosticLoggerArgs args, CustomResourceOptions? opts = null)
public ApiDiagnosticLogger(String name, ApiDiagnosticLoggerArgs args)
public ApiDiagnosticLogger(String name, ApiDiagnosticLoggerArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:ApiDiagnosticLogger
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. ApiDiagnosticLoggerArgs
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. ApiDiagnosticLoggerArgs
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. ApiDiagnosticLoggerArgs
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. ApiDiagnosticLoggerArgs
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. ApiDiagnosticLoggerArgs
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 apiDiagnosticLoggerResource = new AzureNative.Apimanagement.ApiDiagnosticLogger("apiDiagnosticLoggerResource", new()
{
    ApiId = "string",
    DiagnosticId = "string",
    ResourceGroupName = "string",
    ServiceName = "string",
    Loggerid = "string",
});
Copy
example, err := apimanagement.NewApiDiagnosticLogger(ctx, "apiDiagnosticLoggerResource", &apimanagement.ApiDiagnosticLoggerArgs{
	ApiId:             "string",
	DiagnosticId:      "string",
	ResourceGroupName: "string",
	ServiceName:       "string",
	Loggerid:          "string",
})
Copy
var apiDiagnosticLoggerResource = new ApiDiagnosticLogger("apiDiagnosticLoggerResource", ApiDiagnosticLoggerArgs.builder()
    .apiId("string")
    .diagnosticId("string")
    .resourceGroupName("string")
    .serviceName("string")
    .loggerid("string")
    .build());
Copy
api_diagnostic_logger_resource = azure_native.apimanagement.ApiDiagnosticLogger("apiDiagnosticLoggerResource",
    api_id=string,
    diagnostic_id=string,
    resource_group_name=string,
    service_name=string,
    loggerid=string)
Copy
const apiDiagnosticLoggerResource = new azure_native.apimanagement.ApiDiagnosticLogger("apiDiagnosticLoggerResource", {
    apiId: "string",
    diagnosticId: "string",
    resourceGroupName: "string",
    serviceName: "string",
    loggerid: "string",
});
Copy
type: azure-native:apimanagement:ApiDiagnosticLogger
properties:
    apiId: string
    diagnosticId: string
    loggerid: string
    resourceGroupName: string
    serviceName: string
Copy

ApiDiagnosticLogger 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 ApiDiagnosticLogger 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.
DiagnosticId
This property is required.
Changes to this property will trigger replacement.
string
Diagnostic identifier. Must be unique in the current API Management service instance.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
Loggerid Changes to this property will trigger replacement. string
Logger identifier. Must be unique in the API Management service instance.
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.
DiagnosticId
This property is required.
Changes to this property will trigger replacement.
string
Diagnostic identifier. Must be unique in the current API Management service instance.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
Loggerid Changes to this property will trigger replacement. string
Logger identifier. Must be unique in the API Management service instance.
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.
diagnosticId
This property is required.
Changes to this property will trigger replacement.
String
Diagnostic identifier. Must be unique in the current API Management service instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
loggerid Changes to this property will trigger replacement. String
Logger identifier. Must be unique in the API Management service instance.
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.
diagnosticId
This property is required.
Changes to this property will trigger replacement.
string
Diagnostic identifier. Must be unique in the current API Management service instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
serviceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
loggerid Changes to this property will trigger replacement. string
Logger identifier. Must be unique in the API Management service instance.
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.
diagnostic_id
This property is required.
Changes to this property will trigger replacement.
str
Diagnostic identifier. Must be unique in the current API Management service instance.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
service_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the API Management service.
loggerid Changes to this property will trigger replacement. str
Logger identifier. Must be unique in the API Management service instance.
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.
diagnosticId
This property is required.
Changes to this property will trigger replacement.
String
Diagnostic identifier. Must be unique in the current API Management service instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
loggerid Changes to this property will trigger replacement. String
Logger identifier. Must be unique in the API Management service instance.

Outputs

All input properties are implicitly available as output properties. Additionally, the ApiDiagnosticLogger 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.
LoggerType string
Logger type.
Name string
Resource name.
Type string
Resource type for API Management resource.
Description string
Logger description.
IsBuffered 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.
LoggerType string
Logger type.
Name string
Resource name.
Type string
Resource type for API Management resource.
Description string
Logger description.
IsBuffered 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.
loggerType String
Logger type.
name String
Resource name.
type String
Resource type for API Management resource.
description String
Logger description.
isBuffered 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.
loggerType string
Logger type.
name string
Resource name.
type string
Resource type for API Management resource.
description string
Logger description.
isBuffered 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.
loggerType String
Logger type.
name String
Resource name.
type String
Resource type for API Management resource.
description String
Logger description.
isBuffered 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:ApiDiagnosticLogger applicationinsights /subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a/diagnostics/default/loggers/applicationinsights 
Copy

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
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi