LogProfileResource Class

The log profile resource.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to server.

Constructor

LogProfileResource(*, location: str, locations: List[str], categories: List[str], retention_policy: _models.RetentionPolicy, tags: Dict[str, str] | None = None, storage_account_id: str | None = None, service_bus_rule_id: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
location
str

Resource location. Required.

tags

Resource tags.

Default value: None
storage_account_id
str

the resource id of the storage account to which you would like to send the Activity Log.

Default value: None
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}'.

Default value: None
locations

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. Required.

categories

the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'. Required.

retention_policy

the retention policy for the events in the log. Required.

Variables

Name Description
id
str

Azure resource Id.

name
str

Azure resource name.

type
str

Azure resource type.

location
str

Resource location. Required.

tags

Resource tags.

storage_account_id
str

the resource id of the storage account to which you would like to send the Activity Log.

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}'.

locations

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. Required.

categories

the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'. Required.

retention_policy

the retention policy for the events in the log. Required.