QueryPacksOperations Class

QueryPacksOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Inheritance
builtins.object
QueryPacksOperations

Constructor

QueryPacksOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

api_version

The API version to use for this operation. Constant value: "2019-09-01-preview".

Methods

create_or_update

Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

delete

Deletes a Log Analytics QueryPack.

get

Returns a Log Analytics QueryPack.

list

Gets a list of all Log Analytics QueryPacks within a subscription.

list_by_resource_group

Gets a list of Log Analytics QueryPacks within a resource group.

update_tags

Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.

create_or_update

Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

create_or_update(resource_group_name, query_pack_name, location, tags=None, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

query_pack_name
str
Required

The name of the Log Analytics QueryPack resource.

location
str
Required

Resource location

tags
dict[str, str]
default value: None

Resource tags

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

LogAnalyticsQueryPack or ClientRawResponse if raw=true

Return type

Exceptions

delete

Deletes a Log Analytics QueryPack.

delete(resource_group_name, query_pack_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

query_pack_name
str
Required

The name of the Log Analytics QueryPack resource.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

None or ClientRawResponse if raw=true

Return type

None,

Exceptions

get

Returns a Log Analytics QueryPack.

get(resource_group_name, query_pack_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

query_pack_name
str
Required

The name of the Log Analytics QueryPack resource.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

LogAnalyticsQueryPack or ClientRawResponse if raw=true

Return type

Exceptions

list

Gets a list of all Log Analytics QueryPacks within a subscription.

list(custom_headers=None, raw=False, **operation_config)

Parameters

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of LogAnalyticsQueryPack

Return type

Exceptions

list_by_resource_group

Gets a list of Log Analytics QueryPacks within a resource group.

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of LogAnalyticsQueryPack

Return type

Exceptions

update_tags

Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.

update_tags(resource_group_name, query_pack_name, tags=None, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

query_pack_name
str
Required

The name of the Log Analytics QueryPack resource.

tags
dict[str, str]
default value: None

Resource tags

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

LogAnalyticsQueryPack or ClientRawResponse if raw=true

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.applicationinsights.v2019_09_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\applicationinsights\\v2019_09_01_preview\\models\\__init__.py'>