Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Azure Native

v1.42.0 published on Monday, Oct 25, 2021 by Pulumi

getLogProfile

The log profile resource. API Version: 2016-03-01.

Using getLogProfile

function getLogProfile(args: GetLogProfileArgs, opts?: InvokeOptions): Promise<GetLogProfileResult>
def get_log_profile(log_profile_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetLogProfileResult
func LookupLogProfile(ctx *Context, args *LookupLogProfileArgs, opts ...InvokeOption) (*LookupLogProfileResult, error)

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

public static class GetLogProfile {
    public static Task<GetLogProfileResult> InvokeAsync(GetLogProfileArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

LogProfileName string
The name of the log profile.
LogProfileName string
The name of the log profile.
logProfileName string
The name of the log profile.
log_profile_name str
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 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

Supporting Types

RetentionPolicyResponse

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

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0