1. Packages
  2. Azure Native
  3. API Docs
  4. insights
  5. getLogProfile
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.insights.getLogProfile

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Gets the log profile. Azure REST 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>
    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]
    func LookupLogProfile(ctx *Context, args *LookupLogProfileArgs, opts ...InvokeOption) (*LookupLogProfileResult, error)
    func LookupLogProfileOutput(ctx *Context, args *LookupLogProfileOutputArgs, opts ...InvokeOption) LookupLogProfileResultOutput

    > 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)
    }
    public static CompletableFuture<GetLogProfileResult> getLogProfile(GetLogProfileArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:insights:getLogProfile
      arguments:
        # arguments dictionary

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi