1. Packages
  2. Azure Native v1
  3. API Docs
  4. insights
  5. getLogProfile
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.insights.getLogProfile

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

Gets the log profile. API Version: 2016-03-01.

Using getLogProfile

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 getLogProfile(args: GetLogProfileArgs, opts?: InvokeOptions): Promise<GetLogProfileResult>
function getLogProfileOutput(args: GetLogProfileOutputArgs, opts?: InvokeOptions): Output<GetLogProfileResult>
Copy
def get_log_profile(log_profile_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetLogProfileResult
def get_log_profile_output(log_profile_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetLogProfileResult]
Copy
func LookupLogProfile(ctx *Context, args *LookupLogProfileArgs, opts ...InvokeOption) (*LookupLogProfileResult, error)
func LookupLogProfileOutput(ctx *Context, args *LookupLogProfileOutputArgs, opts ...InvokeOption) LookupLogProfileResultOutput
Copy

> Note: This function is named LookupLogProfile in the Go SDK.

public static class GetLogProfile 
{
    public static Task<GetLogProfileResult> InvokeAsync(GetLogProfileArgs args, InvokeOptions? opts = null)
    public static Output<GetLogProfileResult> Invoke(GetLogProfileInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLogProfileResult> getLogProfile(GetLogProfileArgs args, InvokeOptions options)
public static Output<GetLogProfileResult> getLogProfile(GetLogProfileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:insights:getLogProfile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

LogProfileName
This property is required.
Changes to this property will trigger replacement.
string
The name of the log profile.
LogProfileName
This property is required.
Changes to this property will trigger replacement.
string
The name of the log profile.
logProfileName
This property is required.
Changes to this property will trigger replacement.
String
The name of the log profile.
logProfileName
This property is required.
Changes to this property will trigger replacement.
string
The name of the log profile.
log_profile_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the log profile.
logProfileName
This property is required.
Changes to this property will trigger replacement.
String
The name of the log profile.

getLogProfile Result

The following output properties are available:

Categories List<string>
the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'
Id string
Azure resource Id
Location string
Resource location
Locations List<string>
List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
Name string
Azure resource name
RetentionPolicy Pulumi.AzureNative.Insights.Outputs.RetentionPolicyResponse
the retention policy for the events in the log.
Type string
Azure resource type
ServiceBusRuleId string
The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
StorageAccountId string
the resource id of the storage account to which you would like to send the Activity Log.
Tags Dictionary<string, string>
Resource tags
Categories []string
the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'
Id string
Azure resource Id
Location string
Resource location
Locations []string
List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
Name string
Azure resource name
RetentionPolicy RetentionPolicyResponse
the retention policy for the events in the log.
Type string
Azure resource type
ServiceBusRuleId string
The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
StorageAccountId string
the resource id of the storage account to which you would like to send the Activity Log.
Tags map[string]string
Resource tags
categories List<String>
the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'
id String
Azure resource Id
location String
Resource location
locations List<String>
List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
name String
Azure resource name
retentionPolicy RetentionPolicyResponse
the retention policy for the events in the log.
type String
Azure resource type
serviceBusRuleId String
The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
storageAccountId String
the resource id of the storage account to which you would like to send the Activity Log.
tags Map<String,String>
Resource tags
categories string[]
the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'
id string
Azure resource Id
location string
Resource location
locations string[]
List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
name string
Azure resource name
retentionPolicy RetentionPolicyResponse
the retention policy for the events in the log.
type string
Azure resource type
serviceBusRuleId string
The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
storageAccountId string
the resource id of the storage account to which you would like to send the Activity Log.
tags {[key: string]: string}
Resource tags
categories Sequence[str]
the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'
id str
Azure resource Id
location str
Resource location
locations Sequence[str]
List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
name str
Azure resource name
retention_policy RetentionPolicyResponse
the retention policy for the events in the log.
type str
Azure resource type
service_bus_rule_id str
The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
storage_account_id str
the resource id of the storage account to which you would like to send the Activity Log.
tags Mapping[str, str]
Resource tags
categories List<String>
the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'
id String
Azure resource Id
location String
Resource location
locations List<String>
List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
name String
Azure resource name
retentionPolicy Property Map
the retention policy for the events in the log.
type String
Azure resource type
serviceBusRuleId String
The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
storageAccountId String
the resource id of the storage account to which you would like to send the Activity Log.
tags Map<String>
Resource tags

Supporting Types

RetentionPolicyResponse

Days This property is required. int
the number of days for the retention in days. A value of 0 will retain the events indefinitely.
Enabled This property is required. bool
a value indicating whether the retention policy is enabled.
Days This property is required. int
the number of days for the retention in days. A value of 0 will retain the events indefinitely.
Enabled This property is required. bool
a value indicating whether the retention policy is enabled.
days This property is required. Integer
the number of days for the retention in days. A value of 0 will retain the events indefinitely.
enabled This property is required. Boolean
a value indicating whether the retention policy is enabled.
days This property is required. number
the number of days for the retention in days. A value of 0 will retain the events indefinitely.
enabled This property is required. boolean
a value indicating whether the retention policy is enabled.
days This property is required. int
the number of days for the retention in days. A value of 0 will retain the events indefinitely.
enabled This property is required. bool
a value indicating whether the retention policy is enabled.
days This property is required. Number
the number of days for the retention in days. A value of 0 will retain the events indefinitely.
enabled This property is required. Boolean
a value indicating whether the retention policy is enabled.

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