azure.mgmt.security.operations module

class azure.mgmt.security.operations.PricingsOperations(client, config, serializer, deserializer)[source]

Bases: object

PricingsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2017-08-01-preview”.

create_or_update_resource_group_pricing(resource_group_name, pricing_name, pricing_tier, custom_headers=None, raw=False, **operation_config)[source]

Security pricing configuration in the resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • pricing_name (str) – name of the pricing configuration
  • pricing_tier (str or PricingTier) – Pricing tier type. Possible values include: ‘Free’, ‘Standard’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Pricing or ClientRawResponse if raw=true

Return type:

Pricing or ClientRawResponse

Raises:

CloudError

get_resource_group_pricing(resource_group_name, pricing_name, custom_headers=None, raw=False, **operation_config)[source]

Security pricing configuration in the resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • pricing_name (str) – name of the pricing configuration
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Pricing or ClientRawResponse if raw=true

Return type:

Pricing or ClientRawResponse

Raises:

CloudError

get_subscription_pricing(pricing_name, custom_headers=None, raw=False, **operation_config)[source]

Security pricing configuration in the subscriptionSecurity pricing configuration in the subscription.

Parameters:
  • pricing_name (str) – name of the pricing configuration
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Pricing or ClientRawResponse if raw=true

Return type:

Pricing or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Security pricing configurations in the subscription.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Pricing

Return type:

PricingPaged[Pricing]

Raises:

CloudError

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

Security pricing configurations in the resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Pricing

Return type:

PricingPaged[Pricing]

Raises:

CloudError

update_subscription_pricing(pricing_name, pricing_tier, custom_headers=None, raw=False, **operation_config)[source]

Security pricing configuration in the subscription.

Parameters:
  • pricing_name (str) – name of the pricing configuration
  • pricing_tier (str or PricingTier) – Pricing tier type. Possible values include: ‘Free’, ‘Standard’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Pricing or ClientRawResponse if raw=true

Return type:

Pricing or ClientRawResponse

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.SecurityContactsOperations(client, config, serializer, deserializer)[source]

Bases: object

SecurityContactsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2017-08-01-preview”.

create(security_contact_name, security_contact, custom_headers=None, raw=False, **operation_config)[source]

Security contact configurations for the subscription.

Parameters:
  • security_contact_name (str) – Name of the security contact object
  • security_contact (SecurityContact) – Security contact object
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SecurityContact or ClientRawResponse if raw=true

Return type:

SecurityContact or ClientRawResponse

Raises:

CloudError

delete(security_contact_name, custom_headers=None, raw=False, **operation_config)[source]

Security contact configurations for the subscription.

Parameters:
  • security_contact_name (str) – Name of the security contact object
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

get(security_contact_name, custom_headers=None, raw=False, **operation_config)[source]

Security contact configurations for the subscription.

Parameters:
  • security_contact_name (str) – Name of the security contact object
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SecurityContact or ClientRawResponse if raw=true

Return type:

SecurityContact or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Security contact configurations for the subscription.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of SecurityContact

Return type:

SecurityContactPaged[SecurityContact]

Raises:

CloudError

update(security_contact_name, security_contact, custom_headers=None, raw=False, **operation_config)[source]

Security contact configurations for the subscription.

Parameters:
  • security_contact_name (str) – Name of the security contact object
  • security_contact (SecurityContact) – Security contact object
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SecurityContact or ClientRawResponse if raw=true

Return type:

SecurityContact or ClientRawResponse

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.WorkspaceSettingsOperations(client, config, serializer, deserializer)[source]

Bases: object

WorkspaceSettingsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2017-08-01-preview”.

create(workspace_setting_name, workspace_id, scope, custom_headers=None, raw=False, **operation_config)[source]

creating settings about where we should store your security data and logs.

Parameters:
  • workspace_setting_name (str) – Name of the security setting
  • workspace_id (str) – The full Azure ID of the workspace to save the data in
  • scope (str) – All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

WorkspaceSetting or ClientRawResponse if raw=true

Return type:

WorkspaceSetting or ClientRawResponse

Raises:

CloudError

delete(workspace_setting_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace.

Parameters:
  • workspace_setting_name (str) – Name of the security setting
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

get(workspace_setting_name, custom_headers=None, raw=False, **operation_config)[source]

Settings about where we should store your security data and logs.

Parameters:
  • workspace_setting_name (str) – Name of the security setting
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

WorkspaceSetting or ClientRawResponse if raw=true

Return type:

WorkspaceSetting or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Settings about where we should store your security data and logs.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of WorkspaceSetting

Return type:

WorkspaceSettingPaged[WorkspaceSetting]

Raises:

CloudError

update(workspace_setting_name, workspace_id, scope, custom_headers=None, raw=False, **operation_config)[source]

Settings about where we should store your security data and logs.

Parameters:
  • workspace_setting_name (str) – Name of the security setting
  • workspace_id (str) – The full Azure ID of the workspace to save the data in
  • scope (str) – All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

WorkspaceSetting or ClientRawResponse if raw=true

Return type:

WorkspaceSetting or ClientRawResponse

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.AutoProvisioningSettingsOperations(client, config, serializer, deserializer)[source]

Bases: object

AutoProvisioningSettingsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2017-08-01-preview”.

create(setting_name, auto_provision, custom_headers=None, raw=False, **operation_config)[source]

Details of a specific setting.

Parameters:
  • setting_name (str) – Auto provisioning setting key
  • auto_provision (str or AutoProvision) – Describes what kind of security agent provisioning action to take. Possible values include: ‘On’, ‘Off’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AutoProvisioningSetting or ClientRawResponse if raw=true

Return type:

AutoProvisioningSetting or ClientRawResponse

Raises:

CloudError

get(setting_name, custom_headers=None, raw=False, **operation_config)[source]

Details of a specific setting.

Parameters:
  • setting_name (str) – Auto provisioning setting key
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AutoProvisioningSetting or ClientRawResponse if raw=true

Return type:

AutoProvisioningSetting or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Exposes the auto provisioning settings of the subscriptions.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of AutoProvisioningSetting

Return type:

AutoProvisioningSettingPaged[AutoProvisioningSetting]

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.CompliancesOperations(client, config, serializer, deserializer)[source]

Bases: object

CompliancesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2017-08-01-preview”.

get(scope, compliance_name, custom_headers=None, raw=False, **operation_config)[source]

Details of a specific Compliance.

Parameters:
  • scope (str) – Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
  • compliance_name (str) – name of the Compliance
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Compliance or ClientRawResponse if raw=true

Return type:

Compliance or ClientRawResponse

Raises:

CloudError

list(scope, custom_headers=None, raw=False, **operation_config)[source]

The Compliance scores of the specific management group.

Parameters:
  • scope (str) – Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Compliance

Return type:

CompliancePaged[Compliance]

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.AdvancedThreatProtectionOperations(client, config, serializer, deserializer)[source]

Bases: object

AdvancedThreatProtectionOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:
  • api_version – API version for the operation. Constant value: “2017-08-01-preview”.
  • setting_name – Advanced Threat Protection setting name. Constant value: “current”.
create(resource_id, is_enabled=None, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates the Advanced Threat Protection settings on a specified resource.

Parameters:
  • resource_id (str) – The identifier of the resource.
  • is_enabled (bool) – Indicates whether Advanced Threat Protection is enabled.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AdvancedThreatProtectionSetting or ClientRawResponse if raw=true

Return type:

AdvancedThreatProtectionSetting or ClientRawResponse

Raises:

CloudError

get(resource_id, custom_headers=None, raw=False, **operation_config)[source]

Gets the Advanced Threat Protection settings for the specified resource.

Parameters:
  • resource_id (str) – The identifier of the resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AdvancedThreatProtectionSetting or ClientRawResponse if raw=true

Return type:

AdvancedThreatProtectionSetting or ClientRawResponse

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.SettingsOperations(client, config, serializer, deserializer)[source]

Bases: object

SettingsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2017-08-01-preview”.

get(setting_name, custom_headers=None, raw=False, **operation_config)[source]

Settings of different configurations in security center.

Parameters:
  • setting_name (str) – Name of setting. Possible values include: ‘MCAS’, ‘WDATP’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Setting or ClientRawResponse if raw=true

Return type:

Setting or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Settings about different configurations in security center.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Setting

Return type:

SettingPaged[Setting]

Raises:

CloudError

update(setting_name, setting, custom_headers=None, raw=False, **operation_config)[source]

updating settings about different configurations in security center.

Parameters:
  • setting_name (str) – Name of setting. Possible values include: ‘MCAS’, ‘WDATP’
  • setting (Setting) – Setting object
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Setting or ClientRawResponse if raw=true

Return type:

Setting or ClientRawResponse

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.InformationProtectionPoliciesOperations(client, config, serializer, deserializer)[source]

Bases: object

InformationProtectionPoliciesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2017-08-01-preview”.

create_or_update(scope, information_protection_policy_name, custom_headers=None, raw=False, **operation_config)[source]

Details of the information protection policy.

Parameters:
  • scope (str) – Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
  • information_protection_policy_name (str) – Name of the information protection policy. Possible values include: ‘effective’, ‘custom’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

InformationProtectionPolicy or ClientRawResponse if raw=true

Return type:

InformationProtectionPolicy or ClientRawResponse

Raises:

CloudError

get(scope, information_protection_policy_name, custom_headers=None, raw=False, **operation_config)[source]

Details of the information protection policy.

Parameters:
  • scope (str) – Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
  • information_protection_policy_name (str) – Name of the information protection policy. Possible values include: ‘effective’, ‘custom’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

InformationProtectionPolicy or ClientRawResponse if raw=true

Return type:

InformationProtectionPolicy or ClientRawResponse

Raises:

CloudError

list(scope, custom_headers=None, raw=False, **operation_config)[source]

Information protection policies of a specific management group.

Parameters:
  • scope (str) – Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of InformationProtectionPolicy

Return type:

InformationProtectionPolicyPaged[InformationProtectionPolicy]

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2015-06-01-preview”.

list(custom_headers=None, raw=False, **operation_config)[source]

Exposes all available operations for discovery purposes.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Operation

Return type:

OperationPaged[Operation]

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.LocationsOperations(client, config, serializer, deserializer)[source]

Bases: object

LocationsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2015-06-01-preview”.

get(custom_headers=None, raw=False, **operation_config)[source]

Details of a specific location.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

AscLocation or ClientRawResponse if raw=true

Return type:

AscLocation or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

The location of the responsible ASC of the specific subscription (home region). For each subscription there is only one responsible location. The location in the response should be used to read or write other resources in ASC according to their ID.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of AscLocation

Return type:

AscLocationPaged[AscLocation]

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.TasksOperations(client, config, serializer, deserializer)[source]

Bases: object

TasksOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2015-06-01-preview”.

get_resource_group_level_task(resource_group_name, task_name, custom_headers=None, raw=False, **operation_config)[source]

Recommended tasks that will help improve the security of the subscription proactively.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • task_name (str) – Name of the task object, will be a GUID
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SecurityTask or ClientRawResponse if raw=true

Return type:

SecurityTask or ClientRawResponse

Raises:

CloudError

get_subscription_level_task(task_name, custom_headers=None, raw=False, **operation_config)[source]

Recommended tasks that will help improve the security of the subscription proactively.

Parameters:
  • task_name (str) – Name of the task object, will be a GUID
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

SecurityTask or ClientRawResponse if raw=true

Return type:

SecurityTask or ClientRawResponse

Raises:

CloudError

list(filter=None, custom_headers=None, raw=False, **operation_config)[source]

Recommended tasks that will help improve the security of the subscription proactively.

Parameters:
  • filter (str) – OData filter. Optional.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of SecurityTask

Return type:

SecurityTaskPaged[SecurityTask]

Raises:

CloudError

list_by_home_region(filter=None, custom_headers=None, raw=False, **operation_config)[source]

Recommended tasks that will help improve the security of the subscription proactively.

Parameters:
  • filter (str) – OData filter. Optional.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of SecurityTask

Return type:

SecurityTaskPaged[SecurityTask]

Raises:

CloudError

list_by_resource_group(resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config)[source]

Recommended tasks that will help improve the security of the subscription proactively.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • filter (str) – OData filter. Optional.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of SecurityTask

Return type:

SecurityTaskPaged[SecurityTask]

Raises:

CloudError

update_resource_group_level_task_state(resource_group_name, task_name, task_update_action_type, custom_headers=None, raw=False, **operation_config)[source]

Recommended tasks that will help improve the security of the subscription proactively.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • task_name (str) – Name of the task object, will be a GUID
  • task_update_action_type (str) – Type of the action to do on the task. Possible values include: ‘Activate’, ‘Dismiss’, ‘Start’, ‘Resolve’, ‘Close’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

update_subscription_level_task_state(task_name, task_update_action_type, custom_headers=None, raw=False, **operation_config)[source]

Recommended tasks that will help improve the security of the subscription proactively.

Parameters:
  • task_name (str) – Name of the task object, will be a GUID
  • task_update_action_type (str) – Type of the action to do on the task. Possible values include: ‘Activate’, ‘Dismiss’, ‘Start’, ‘Resolve’, ‘Close’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.AlertsOperations(client, config, serializer, deserializer)[source]

Bases: object

AlertsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2015-06-01-preview”.

get_resource_group_level_alerts(alert_name, resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Get an alert that is associated a resource group or a resource in a resource group.

Parameters:
  • alert_name (str) – Name of the alert object
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Alert or ClientRawResponse if raw=true

Return type:

Alert or ClientRawResponse

Raises:

CloudError

get_subscription_level_alert(alert_name, custom_headers=None, raw=False, **operation_config)[source]

Get an alert that is associated with a subscription.

Parameters:
  • alert_name (str) – Name of the alert object
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Alert or ClientRawResponse if raw=true

Return type:

Alert or ClientRawResponse

Raises:

CloudError

list(filter=None, select=None, expand=None, custom_headers=None, raw=False, **operation_config)[source]

List all the alerts that are associated with the subscription.

Parameters:
  • filter (str) – OData filter. Optional.
  • select (str) – OData select. Optional.
  • expand (str) – OData expand. Optional.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Alert

Return type:

AlertPaged[Alert]

Raises:

CloudError

list_by_resource_group(resource_group_name, filter=None, select=None, expand=None, custom_headers=None, raw=False, **operation_config)[source]

List all the alerts alerts that are associated with the resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • filter (str) – OData filter. Optional.
  • select (str) – OData select. Optional.
  • expand (str) – OData expand. Optional.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Alert

Return type:

AlertPaged[Alert]

Raises:

CloudError

list_resource_group_level_alerts_by_region(resource_group_name, filter=None, select=None, expand=None, custom_headers=None, raw=False, **operation_config)[source]

List all the alerts that are associated with the resource group that are stored in a specific location.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • filter (str) – OData filter. Optional.
  • select (str) – OData select. Optional.
  • expand (str) – OData expand. Optional.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Alert

Return type:

AlertPaged[Alert]

Raises:

CloudError

list_subscription_level_alerts_by_region(filter=None, select=None, expand=None, custom_headers=None, raw=False, **operation_config)[source]

List all the alerts that are associated with the subscription that are stored in a specific location.

Parameters:
  • filter (str) – OData filter. Optional.
  • select (str) – OData select. Optional.
  • expand (str) – OData expand. Optional.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Alert

Return type:

AlertPaged[Alert]

Raises:

CloudError

update_resource_group_level_alert_state(alert_name, alert_update_action_type, resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Update the alert’s state.

Parameters:
  • alert_name (str) – Name of the alert object
  • alert_update_action_type (str) – Type of the action to do on the alert. Possible values include: ‘Dismiss’, ‘Reactivate’
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

update_subscription_level_alert_state(alert_name, alert_update_action_type, custom_headers=None, raw=False, **operation_config)[source]

Update the alert’s state.

Parameters:
  • alert_name (str) – Name of the alert object
  • alert_update_action_type (str) – Type of the action to do on the alert. Possible values include: ‘Dismiss’, ‘Reactivate’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.DiscoveredSecuritySolutionsOperations(client, config, serializer, deserializer)[source]

Bases: object

DiscoveredSecuritySolutionsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2015-06-01-preview”.

get(resource_group_name, discovered_security_solution_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a specific discovered Security Solution.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • discovered_security_solution_name (str) – Name of a discovered security solution.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

DiscoveredSecuritySolution or ClientRawResponse if raw=true

Return type:

DiscoveredSecuritySolution or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Gets a list of discovered Security Solutions for the subscription.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of DiscoveredSecuritySolution

Return type:

DiscoveredSecuritySolutionPaged[DiscoveredSecuritySolution]

Raises:

CloudError

list_by_home_region(custom_headers=None, raw=False, **operation_config)[source]

Gets a list of discovered Security Solutions for the subscription and location.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of DiscoveredSecuritySolution

Return type:

DiscoveredSecuritySolutionPaged[DiscoveredSecuritySolution]

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.JitNetworkAccessPoliciesOperations(client, config, serializer, deserializer)[source]

Bases: object

JitNetworkAccessPoliciesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:
  • api_version – API version for the operation. Constant value: “2015-06-01-preview”.
  • jit_network_access_policy_initiate_type – Type of the action to do on the Just-in-Time access policy. Constant value: “initiate”.
create_or_update(resource_group_name, jit_network_access_policy_name, body, custom_headers=None, raw=False, **operation_config)[source]

Create a policy for protecting resources using Just-in-Time access control.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • jit_network_access_policy_name (str) – Name of a Just-in-Time access configuration policy.
  • body (JitNetworkAccessPolicy) –
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

JitNetworkAccessPolicy or ClientRawResponse if raw=true

Return type:

JitNetworkAccessPolicy or ClientRawResponse

Raises:

CloudError

delete(resource_group_name, jit_network_access_policy_name, custom_headers=None, raw=False, **operation_config)[source]

Delete a Just-in-Time access control policy.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • jit_network_access_policy_name (str) – Name of a Just-in-Time access configuration policy.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

get(resource_group_name, jit_network_access_policy_name, custom_headers=None, raw=False, **operation_config)[source]

Policies for protecting resources using Just-in-Time access control for the subscription, location.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • jit_network_access_policy_name (str) – Name of a Just-in-Time access configuration policy.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

JitNetworkAccessPolicy or ClientRawResponse if raw=true

Return type:

JitNetworkAccessPolicy or ClientRawResponse

Raises:

CloudError

initiate(resource_group_name, jit_network_access_policy_name, virtual_machines, custom_headers=None, raw=False, **operation_config)[source]

Initiate a JIT access from a specific Just-in-Time policy configuration.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • jit_network_access_policy_name (str) – Name of a Just-in-Time access configuration policy.
  • virtual_machines (list[JitNetworkAccessPolicyInitiateVirtualMachine]) – A list of virtual machines & ports to open access for
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

JitNetworkAccessRequest or ClientRawResponse if raw=true

Return type:

JitNetworkAccessRequest or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Policies for protecting resources using Just-in-Time access control.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of JitNetworkAccessPolicy

Return type:

JitNetworkAccessPolicyPaged[JitNetworkAccessPolicy]

Raises:

CloudError

list_by_region(custom_headers=None, raw=False, **operation_config)[source]

Policies for protecting resources using Just-in-Time access control for the subscription, location.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of JitNetworkAccessPolicy

Return type:

JitNetworkAccessPolicyPaged[JitNetworkAccessPolicy]

Raises:

CloudError

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

Policies for protecting resources using Just-in-Time access control for the subscription, location.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of JitNetworkAccessPolicy

Return type:

JitNetworkAccessPolicyPaged[JitNetworkAccessPolicy]

Raises:

CloudError

list_by_resource_group_and_region(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Policies for protecting resources using Just-in-Time access control for the subscription, location.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of JitNetworkAccessPolicy

Return type:

JitNetworkAccessPolicyPaged[JitNetworkAccessPolicy]

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.ExternalSecuritySolutionsOperations(client, config, serializer, deserializer)[source]

Bases: object

ExternalSecuritySolutionsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2015-06-01-preview”.

get(resource_group_name, external_security_solutions_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a specific external Security Solution.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • external_security_solutions_name (str) – Name of an external security solution.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

ExternalSecuritySolution or ClientRawResponse if raw=true

Return type:

ExternalSecuritySolution or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Gets a list of external security solutions for the subscription.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of ExternalSecuritySolution

Return type:

ExternalSecuritySolutionPaged[ExternalSecuritySolution]

Raises:

CloudError

list_by_home_region(custom_headers=None, raw=False, **operation_config)[source]

Gets a list of external Security Solutions for the subscription and location.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of ExternalSecuritySolution

Return type:

ExternalSecuritySolutionPaged[ExternalSecuritySolution]

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>
class azure.mgmt.security.operations.TopologyOperations(client, config, serializer, deserializer)[source]

Bases: object

TopologyOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – API version for the operation. Constant value: “2015-06-01-preview”.

get(resource_group_name, topology_resource_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a specific topology component.

Parameters:
  • resource_group_name (str) – The name of the resource group within the user’s subscription. The name is case insensitive.
  • topology_resource_name (str) – Name of a topology resources collection.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

TopologyResource or ClientRawResponse if raw=true

Return type:

TopologyResource or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Gets a list that allows to build a topology view of a subscription.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of TopologyResource

Return type:

TopologyResourcePaged[TopologyResource]

Raises:

CloudError

list_by_home_region(custom_headers=None, raw=False, **operation_config)[source]

Gets a list that allows to build a topology view of a subscription and location.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of TopologyResource

Return type:

TopologyResourcePaged[TopologyResource]

Raises:

CloudError

models = <module 'azure.mgmt.security.models' from '/usr/lib/python3/dist-packages/azure/mgmt/security/models/__init__.py'>