Skip to main content

log_files

Creates, updates, deletes, gets or lists a log_files resource.

Overview

Namelog_files
TypeResource
Idazure_extras.rdbms.log_files

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
createdTimestring (date-time)Creation timestamp of the log file.
lastModifiedTimestring (date-time)Last modified timestamp of the log file.
sizeInKBintegerSize of the log file.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
urlstringThe url to download the log file from.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_serverselectresource_group_name, server_name, subscription_idList all the log files in a given server.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring

SELECT examples

List all the log files in a given server.

SELECT
id,
name,
createdTime,
lastModifiedTime,
sizeInKB,
type,
url
FROM azure_extras.rdbms.log_files
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;