security

package
v21.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package security implements the Azure ARM Security service API version .

API spec for Microsoft.Security (Azure Security Center) resource provider

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Security
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AadConnectivityState

type AadConnectivityState string

AadConnectivityState enumerates the values for aad connectivity state.

const (
	// Connected ...
	Connected AadConnectivityState = "Connected"
	// Discovered ...
	Discovered AadConnectivityState = "Discovered"
	// NotLicensed ...
	NotLicensed AadConnectivityState = "NotLicensed"
)

func PossibleAadConnectivityStateValues

func PossibleAadConnectivityStateValues() []AadConnectivityState

PossibleAadConnectivityStateValues returns an array of possible values for the AadConnectivityState const type.

type AadConnectivityState1

type AadConnectivityState1 struct {
	// ConnectivityState - Possible values include: 'Discovered', 'NotLicensed', 'Connected'
	ConnectivityState AadConnectivityState `json:"connectivityState,omitempty"`
}

AadConnectivityState1 describes an Azure resource with kind

type AadExternalSecuritySolution

type AadExternalSecuritySolution struct {
	Properties *AadSolutionProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
	// Location - Location where the resource is stored
	Location *string `json:"location,omitempty"`
	// Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
	Kind KindEnum1 `json:"kind,omitempty"`
}

AadExternalSecuritySolution represents an AAD identity protection solution which sends logs to an OMS workspace.

func (AadExternalSecuritySolution) AsAadExternalSecuritySolution

func (aess AadExternalSecuritySolution) AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsAtaExternalSecuritySolution

func (aess AadExternalSecuritySolution) AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsBasicExternalSecuritySolution

func (aess AadExternalSecuritySolution) AsBasicExternalSecuritySolution() (BasicExternalSecuritySolution, bool)

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsCefExternalSecuritySolution

func (aess AadExternalSecuritySolution) AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsExternalSecuritySolution

func (aess AadExternalSecuritySolution) AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) MarshalJSON

func (aess AadExternalSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AadExternalSecuritySolution.

type AadSolutionProperties

type AadSolutionProperties struct {
	DeviceVendor *string             `json:"deviceVendor,omitempty"`
	DeviceType   *string             `json:"deviceType,omitempty"`
	Workspace    *ConnectedWorkspace `json:"workspace,omitempty"`
	// ConnectivityState - Possible values include: 'Discovered', 'NotLicensed', 'Connected'
	ConnectivityState AadConnectivityState `json:"connectivityState,omitempty"`
}

AadSolutionProperties ...

type AdvancedThreatProtectionClient

type AdvancedThreatProtectionClient struct {
	BaseClient
}

AdvancedThreatProtectionClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewAdvancedThreatProtectionClient

func NewAdvancedThreatProtectionClient(subscriptionID string, ascLocation string) AdvancedThreatProtectionClient

NewAdvancedThreatProtectionClient creates an instance of the AdvancedThreatProtectionClient client.

func NewAdvancedThreatProtectionClientWithBaseURI

func NewAdvancedThreatProtectionClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AdvancedThreatProtectionClient

NewAdvancedThreatProtectionClientWithBaseURI creates an instance of the AdvancedThreatProtectionClient client.

func (AdvancedThreatProtectionClient) Create

func (client AdvancedThreatProtectionClient) Create(ctx context.Context, resourceID string, advancedThreatProtectionSetting AdvancedThreatProtectionSetting) (result AdvancedThreatProtectionSetting, err error)

Create creates or updates the Advanced Threat Protection settings on a specified resource. Parameters: resourceID - the identifier of the resource. advancedThreatProtectionSetting - advanced Threat Protection Settings

func (AdvancedThreatProtectionClient) CreatePreparer

func (client AdvancedThreatProtectionClient) CreatePreparer(ctx context.Context, resourceID string, advancedThreatProtectionSetting AdvancedThreatProtectionSetting) (*http.Request, error)

CreatePreparer prepares the Create request.

func (AdvancedThreatProtectionClient) CreateResponder

func (client AdvancedThreatProtectionClient) CreateResponder(resp *http.Response) (result AdvancedThreatProtectionSetting, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (AdvancedThreatProtectionClient) CreateSender

func (client AdvancedThreatProtectionClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (AdvancedThreatProtectionClient) Get

Get gets the Advanced Threat Protection settings for the specified resource. Parameters: resourceID - the identifier of the resource.

func (AdvancedThreatProtectionClient) GetPreparer

func (client AdvancedThreatProtectionClient) GetPreparer(ctx context.Context, resourceID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AdvancedThreatProtectionClient) GetResponder

func (client AdvancedThreatProtectionClient) GetResponder(resp *http.Response) (result AdvancedThreatProtectionSetting, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AdvancedThreatProtectionClient) GetSender

func (client AdvancedThreatProtectionClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type AdvancedThreatProtectionProperties

type AdvancedThreatProtectionProperties struct {
	// IsEnabled - Indicates whether Advanced Threat Protection is enabled.
	IsEnabled *bool `json:"isEnabled,omitempty"`
}

AdvancedThreatProtectionProperties the Advanced Threat Protection settings.

type AdvancedThreatProtectionSetting

type AdvancedThreatProtectionSetting struct {
	autorest.Response                   `json:"-"`
	*AdvancedThreatProtectionProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

AdvancedThreatProtectionSetting the Advanced Threat Protection resource.

func (AdvancedThreatProtectionSetting) MarshalJSON

func (atps AdvancedThreatProtectionSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AdvancedThreatProtectionSetting.

func (*AdvancedThreatProtectionSetting) UnmarshalJSON

func (atps *AdvancedThreatProtectionSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AdvancedThreatProtectionSetting struct.

type Alert

type Alert struct {
	autorest.Response `json:"-"`
	*AlertProperties  `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

Alert security alert

func (Alert) MarshalJSON

func (a Alert) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Alert.

func (*Alert) UnmarshalJSON

func (a *Alert) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Alert struct.

type AlertConfidenceReason

type AlertConfidenceReason struct {
	// Type - Type of confidence factor
	Type *string `json:"type,omitempty"`
	// Reason - description of the confidence reason
	Reason *string `json:"reason,omitempty"`
}

AlertConfidenceReason factors that increase our confidence that the alert is a true positive

type AlertEntity

type AlertEntity struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// Type - Type of entity
	Type *string `json:"type,omitempty"`
}

AlertEntity changing set of properties depending on the entity type.

func (AlertEntity) MarshalJSON

func (ae AlertEntity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertEntity.

func (*AlertEntity) UnmarshalJSON

func (ae *AlertEntity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AlertEntity struct.

type AlertList

type AlertList struct {
	autorest.Response `json:"-"`
	Value             *[]Alert `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

AlertList list of security alerts

func (AlertList) IsEmpty

func (al AlertList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AlertListIterator

type AlertListIterator struct {
	// contains filtered or unexported fields
}

AlertListIterator provides access to a complete listing of Alert values.

func (*AlertListIterator) Next

func (iter *AlertListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AlertListIterator) NotDone

func (iter AlertListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AlertListIterator) Response

func (iter AlertListIterator) Response() AlertList

Response returns the raw server response from the last page request.

func (AlertListIterator) Value

func (iter AlertListIterator) Value() Alert

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AlertListPage

type AlertListPage struct {
	// contains filtered or unexported fields
}

AlertListPage contains a page of Alert values.

func (*AlertListPage) Next

func (page *AlertListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AlertListPage) NotDone

func (page AlertListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AlertListPage) Response

func (page AlertListPage) Response() AlertList

Response returns the raw server response from the last page request.

func (AlertListPage) Values

func (page AlertListPage) Values() []Alert

Values returns the slice of values for the current page or nil if there are no values.

type AlertNotifications

type AlertNotifications string

AlertNotifications enumerates the values for alert notifications.

const (
	// Off Don't get notifications on new alerts
	Off AlertNotifications = "Off"
	// On Get notifications on new alerts
	On AlertNotifications = "On"
)

func PossibleAlertNotificationsValues

func PossibleAlertNotificationsValues() []AlertNotifications

PossibleAlertNotificationsValues returns an array of possible values for the AlertNotifications const type.

type AlertProperties

type AlertProperties struct {
	// State - State of the alert (Active, Dismissed etc.)
	State *string `json:"state,omitempty"`
	// ReportedTimeUtc - The time the incident was reported to Microsoft.Security in UTC
	ReportedTimeUtc *date.Time `json:"reportedTimeUtc,omitempty"`
	// VendorName - Name of the vendor that discovered the incident
	VendorName *string `json:"vendorName,omitempty"`
	// AlertName - Name of the alert type
	AlertName *string `json:"alertName,omitempty"`
	// AlertDisplayName - Display name of the alert type
	AlertDisplayName *string `json:"alertDisplayName,omitempty"`
	// DetectedTimeUtc - The time the incident was detected by the vendor
	DetectedTimeUtc *date.Time `json:"detectedTimeUtc,omitempty"`
	// Description - Description of the incident and what it means
	Description *string `json:"description,omitempty"`
	// RemediationSteps - Recommended steps to reradiate the incident
	RemediationSteps *string `json:"remediationSteps,omitempty"`
	// ActionTaken - The action that was taken as a response to the alert (Active, Blocked etc.)
	ActionTaken *string `json:"actionTaken,omitempty"`
	// ReportedSeverity - Estimated severity of this alert
	ReportedSeverity *string `json:"reportedSeverity,omitempty"`
	// CompromisedEntity - The entity that the incident happened on
	CompromisedEntity *string `json:"compromisedEntity,omitempty"`
	// AssociatedResource - Azure resource ID of the associated resource
	AssociatedResource *string                `json:"associatedResource,omitempty"`
	ExtendedProperties map[string]interface{} `json:"extendedProperties"`
	// SystemSource - The type of the alerted resource (Azure, Non-Azure)
	SystemSource *string `json:"systemSource,omitempty"`
	// CanBeInvestigated - Whether this alert can be investigated with Azure Security Center
	CanBeInvestigated *bool `json:"canBeInvestigated,omitempty"`
	// Entities - objects that are related to this alerts
	Entities *[]AlertEntity `json:"entities,omitempty"`
	// ConfidenceScore - level of confidence we have on the alert
	ConfidenceScore *float64 `json:"confidenceScore,omitempty"`
	// ConfidenceReasons - reasons the alert got the confidenceScore value
	ConfidenceReasons *[]AlertConfidenceReason `json:"confidenceReasons,omitempty"`
	// SubscriptionID - Azure subscription ID of the resource that had the security alert or the subscription ID of the workspace that this resource reports to
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// InstanceID - Instance ID of the alert.
	InstanceID *string `json:"instanceId,omitempty"`
	// WorkspaceArmID - Azure resource ID of the workspace that the alert was reported to.
	WorkspaceArmID *string `json:"workspaceArmId,omitempty"`
}

AlertProperties describes security alert properties.

func (AlertProperties) MarshalJSON

func (ap AlertProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertProperties.

type AlertsClient

type AlertsClient struct {
	BaseClient
}

AlertsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewAlertsClient

func NewAlertsClient(subscriptionID string, ascLocation string) AlertsClient

NewAlertsClient creates an instance of the AlertsClient client.

func NewAlertsClientWithBaseURI

func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AlertsClient

NewAlertsClientWithBaseURI creates an instance of the AlertsClient client.

func (AlertsClient) GetResourceGroupLevelAlerts

func (client AlertsClient) GetResourceGroupLevelAlerts(ctx context.Context, alertName string, resourceGroupName string) (result Alert, err error)

GetResourceGroupLevelAlerts get an alert that is associated a resource group or a resource in a resource group Parameters: alertName - name of the alert object resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (AlertsClient) GetResourceGroupLevelAlertsPreparer

func (client AlertsClient) GetResourceGroupLevelAlertsPreparer(ctx context.Context, alertName string, resourceGroupName string) (*http.Request, error)

GetResourceGroupLevelAlertsPreparer prepares the GetResourceGroupLevelAlerts request.

func (AlertsClient) GetResourceGroupLevelAlertsResponder

func (client AlertsClient) GetResourceGroupLevelAlertsResponder(resp *http.Response) (result Alert, err error)

GetResourceGroupLevelAlertsResponder handles the response to the GetResourceGroupLevelAlerts request. The method always closes the http.Response Body.

func (AlertsClient) GetResourceGroupLevelAlertsSender

func (client AlertsClient) GetResourceGroupLevelAlertsSender(req *http.Request) (*http.Response, error)

GetResourceGroupLevelAlertsSender sends the GetResourceGroupLevelAlerts request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) GetSubscriptionLevelAlert

func (client AlertsClient) GetSubscriptionLevelAlert(ctx context.Context, alertName string) (result Alert, err error)

GetSubscriptionLevelAlert get an alert that is associated with a subscription Parameters: alertName - name of the alert object

func (AlertsClient) GetSubscriptionLevelAlertPreparer

func (client AlertsClient) GetSubscriptionLevelAlertPreparer(ctx context.Context, alertName string) (*http.Request, error)

GetSubscriptionLevelAlertPreparer prepares the GetSubscriptionLevelAlert request.

func (AlertsClient) GetSubscriptionLevelAlertResponder

func (client AlertsClient) GetSubscriptionLevelAlertResponder(resp *http.Response) (result Alert, err error)

GetSubscriptionLevelAlertResponder handles the response to the GetSubscriptionLevelAlert request. The method always closes the http.Response Body.

func (AlertsClient) GetSubscriptionLevelAlertSender

func (client AlertsClient) GetSubscriptionLevelAlertSender(req *http.Request) (*http.Response, error)

GetSubscriptionLevelAlertSender sends the GetSubscriptionLevelAlert request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) List

func (client AlertsClient) List(ctx context.Context, filter string, selectParameter string, expand string) (result AlertListPage, err error)

List list all the alerts that are associated with the subscription Parameters: filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional.

func (AlertsClient) ListByResourceGroup

func (client AlertsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result AlertListPage, err error)

ListByResourceGroup list all the alerts alerts that are associated with the resource group Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional.

func (AlertsClient) ListByResourceGroupComplete

func (client AlertsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result AlertListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListByResourceGroupPreparer

func (client AlertsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AlertsClient) ListByResourceGroupResponder

func (client AlertsClient) ListByResourceGroupResponder(resp *http.Response) (result AlertList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (AlertsClient) ListByResourceGroupSender

func (client AlertsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListComplete

func (client AlertsClient) ListComplete(ctx context.Context, filter string, selectParameter string, expand string) (result AlertListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListPreparer

func (client AlertsClient) ListPreparer(ctx context.Context, filter string, selectParameter string, expand string) (*http.Request, error)

ListPreparer prepares the List request.

func (AlertsClient) ListResourceGroupLevelAlertsByRegion

func (client AlertsClient) ListResourceGroupLevelAlertsByRegion(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result AlertListPage, err error)

ListResourceGroupLevelAlertsByRegion list all the alerts that are associated with the resource group that are stored in a specific location Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionComplete

func (client AlertsClient) ListResourceGroupLevelAlertsByRegionComplete(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (result AlertListIterator, err error)

ListResourceGroupLevelAlertsByRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionPreparer

func (client AlertsClient) ListResourceGroupLevelAlertsByRegionPreparer(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string) (*http.Request, error)

ListResourceGroupLevelAlertsByRegionPreparer prepares the ListResourceGroupLevelAlertsByRegion request.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionResponder

func (client AlertsClient) ListResourceGroupLevelAlertsByRegionResponder(resp *http.Response) (result AlertList, err error)

ListResourceGroupLevelAlertsByRegionResponder handles the response to the ListResourceGroupLevelAlertsByRegion request. The method always closes the http.Response Body.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionSender

func (client AlertsClient) ListResourceGroupLevelAlertsByRegionSender(req *http.Request) (*http.Response, error)

ListResourceGroupLevelAlertsByRegionSender sends the ListResourceGroupLevelAlertsByRegion request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListResponder

func (client AlertsClient) ListResponder(resp *http.Response) (result AlertList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AlertsClient) ListSender

func (client AlertsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) ListSubscriptionLevelAlertsByRegion

func (client AlertsClient) ListSubscriptionLevelAlertsByRegion(ctx context.Context, filter string, selectParameter string, expand string) (result AlertListPage, err error)

ListSubscriptionLevelAlertsByRegion list all the alerts that are associated with the subscription that are stored in a specific location Parameters: filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionComplete

func (client AlertsClient) ListSubscriptionLevelAlertsByRegionComplete(ctx context.Context, filter string, selectParameter string, expand string) (result AlertListIterator, err error)

ListSubscriptionLevelAlertsByRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionPreparer

func (client AlertsClient) ListSubscriptionLevelAlertsByRegionPreparer(ctx context.Context, filter string, selectParameter string, expand string) (*http.Request, error)

ListSubscriptionLevelAlertsByRegionPreparer prepares the ListSubscriptionLevelAlertsByRegion request.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionResponder

func (client AlertsClient) ListSubscriptionLevelAlertsByRegionResponder(resp *http.Response) (result AlertList, err error)

ListSubscriptionLevelAlertsByRegionResponder handles the response to the ListSubscriptionLevelAlertsByRegion request. The method always closes the http.Response Body.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionSender

func (client AlertsClient) ListSubscriptionLevelAlertsByRegionSender(req *http.Request) (*http.Response, error)

ListSubscriptionLevelAlertsByRegionSender sends the ListSubscriptionLevelAlertsByRegion request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateResourceGroupLevelAlertState

func (client AlertsClient) UpdateResourceGroupLevelAlertState(ctx context.Context, alertName string, alertUpdateActionType string, resourceGroupName string) (result autorest.Response, err error)

UpdateResourceGroupLevelAlertState update the alert's state Parameters: alertName - name of the alert object alertUpdateActionType - type of the action to do on the alert resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (AlertsClient) UpdateResourceGroupLevelAlertStatePreparer

func (client AlertsClient) UpdateResourceGroupLevelAlertStatePreparer(ctx context.Context, alertName string, alertUpdateActionType string, resourceGroupName string) (*http.Request, error)

UpdateResourceGroupLevelAlertStatePreparer prepares the UpdateResourceGroupLevelAlertState request.

func (AlertsClient) UpdateResourceGroupLevelAlertStateResponder

func (client AlertsClient) UpdateResourceGroupLevelAlertStateResponder(resp *http.Response) (result autorest.Response, err error)

UpdateResourceGroupLevelAlertStateResponder handles the response to the UpdateResourceGroupLevelAlertState request. The method always closes the http.Response Body.

func (AlertsClient) UpdateResourceGroupLevelAlertStateSender

func (client AlertsClient) UpdateResourceGroupLevelAlertStateSender(req *http.Request) (*http.Response, error)

UpdateResourceGroupLevelAlertStateSender sends the UpdateResourceGroupLevelAlertState request. The method will close the http.Response Body if it receives an error.

func (AlertsClient) UpdateSubscriptionLevelAlertState

func (client AlertsClient) UpdateSubscriptionLevelAlertState(ctx context.Context, alertName string, alertUpdateActionType string) (result autorest.Response, err error)

UpdateSubscriptionLevelAlertState update the alert's state Parameters: alertName - name of the alert object alertUpdateActionType - type of the action to do on the alert

func (AlertsClient) UpdateSubscriptionLevelAlertStatePreparer

func (client AlertsClient) UpdateSubscriptionLevelAlertStatePreparer(ctx context.Context, alertName string, alertUpdateActionType string) (*http.Request, error)

UpdateSubscriptionLevelAlertStatePreparer prepares the UpdateSubscriptionLevelAlertState request.

func (AlertsClient) UpdateSubscriptionLevelAlertStateResponder

func (client AlertsClient) UpdateSubscriptionLevelAlertStateResponder(resp *http.Response) (result autorest.Response, err error)

UpdateSubscriptionLevelAlertStateResponder handles the response to the UpdateSubscriptionLevelAlertState request. The method always closes the http.Response Body.

func (AlertsClient) UpdateSubscriptionLevelAlertStateSender

func (client AlertsClient) UpdateSubscriptionLevelAlertStateSender(req *http.Request) (*http.Response, error)

UpdateSubscriptionLevelAlertStateSender sends the UpdateSubscriptionLevelAlertState request. The method will close the http.Response Body if it receives an error.

type AlertsToAdmins

type AlertsToAdmins string

AlertsToAdmins enumerates the values for alerts to admins.

const (
	// AlertsToAdminsOff Don't send notification on new alerts to the subscription's admins
	AlertsToAdminsOff AlertsToAdmins = "Off"
	// AlertsToAdminsOn Send notification on new alerts to the subscription's admins
	AlertsToAdminsOn AlertsToAdmins = "On"
)

func PossibleAlertsToAdminsValues

func PossibleAlertsToAdminsValues() []AlertsToAdmins

PossibleAlertsToAdminsValues returns an array of possible values for the AlertsToAdmins const type.

type AscLocation

type AscLocation struct {
	autorest.Response `json:"-"`
	Properties        interface{} `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

AscLocation the ASC location of the subscription is in the "name" field

type AscLocationList

type AscLocationList struct {
	autorest.Response `json:"-"`
	Value             *[]AscLocation `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

AscLocationList list of locations where ASC saves your data

func (AscLocationList) IsEmpty

func (all AscLocationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AscLocationListIterator

type AscLocationListIterator struct {
	// contains filtered or unexported fields
}

AscLocationListIterator provides access to a complete listing of AscLocation values.

func (*AscLocationListIterator) Next

func (iter *AscLocationListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AscLocationListIterator) NotDone

func (iter AscLocationListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AscLocationListIterator) Response

func (iter AscLocationListIterator) Response() AscLocationList

Response returns the raw server response from the last page request.

func (AscLocationListIterator) Value

func (iter AscLocationListIterator) Value() AscLocation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AscLocationListPage

type AscLocationListPage struct {
	// contains filtered or unexported fields
}

AscLocationListPage contains a page of AscLocation values.

func (*AscLocationListPage) Next

func (page *AscLocationListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AscLocationListPage) NotDone

func (page AscLocationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AscLocationListPage) Response

func (page AscLocationListPage) Response() AscLocationList

Response returns the raw server response from the last page request.

func (AscLocationListPage) Values

func (page AscLocationListPage) Values() []AscLocation

Values returns the slice of values for the current page or nil if there are no values.

type AtaExternalSecuritySolution

type AtaExternalSecuritySolution struct {
	Properties *AtaSolutionProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
	// Location - Location where the resource is stored
	Location *string `json:"location,omitempty"`
	// Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
	Kind KindEnum1 `json:"kind,omitempty"`
}

AtaExternalSecuritySolution represents an ATA security solution which sends logs to an OMS workspace

func (AtaExternalSecuritySolution) AsAadExternalSecuritySolution

func (aess AtaExternalSecuritySolution) AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsAtaExternalSecuritySolution

func (aess AtaExternalSecuritySolution) AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsBasicExternalSecuritySolution

func (aess AtaExternalSecuritySolution) AsBasicExternalSecuritySolution() (BasicExternalSecuritySolution, bool)

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsCefExternalSecuritySolution

func (aess AtaExternalSecuritySolution) AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsExternalSecuritySolution

func (aess AtaExternalSecuritySolution) AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) MarshalJSON

func (aess AtaExternalSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AtaExternalSecuritySolution.

type AtaSolutionProperties

type AtaSolutionProperties struct {
	LastEventReceived *string `json:"lastEventReceived,omitempty"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	DeviceVendor         *string                `json:"deviceVendor,omitempty"`
	DeviceType           *string                `json:"deviceType,omitempty"`
	Workspace            *ConnectedWorkspace    `json:"workspace,omitempty"`
}

AtaSolutionProperties ...

func (AtaSolutionProperties) MarshalJSON

func (asp AtaSolutionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AtaSolutionProperties.

func (*AtaSolutionProperties) UnmarshalJSON

func (asp *AtaSolutionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AtaSolutionProperties struct.

type AutoProvision

type AutoProvision string

AutoProvision enumerates the values for auto provision.

const (
	// AutoProvisionOff Do not install security agent on the VMs automatically
	AutoProvisionOff AutoProvision = "Off"
	// AutoProvisionOn Install missing security agent on VMs automatically
	AutoProvisionOn AutoProvision = "On"
)

func PossibleAutoProvisionValues

func PossibleAutoProvisionValues() []AutoProvision

PossibleAutoProvisionValues returns an array of possible values for the AutoProvision const type.

type AutoProvisioningSetting

type AutoProvisioningSetting struct {
	autorest.Response `json:"-"`
	// AutoProvisioningSettingProperties - Auto provisioning setting data
	*AutoProvisioningSettingProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

AutoProvisioningSetting auto provisioning setting

func (AutoProvisioningSetting) MarshalJSON

func (aps AutoProvisioningSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutoProvisioningSetting.

func (*AutoProvisioningSetting) UnmarshalJSON

func (aps *AutoProvisioningSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AutoProvisioningSetting struct.

type AutoProvisioningSettingList

type AutoProvisioningSettingList struct {
	autorest.Response `json:"-"`
	// Value - List of all the auto provisioning settings
	Value *[]AutoProvisioningSetting `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

AutoProvisioningSettingList list of all the auto provisioning settings response

func (AutoProvisioningSettingList) IsEmpty

func (apsl AutoProvisioningSettingList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AutoProvisioningSettingListIterator

type AutoProvisioningSettingListIterator struct {
	// contains filtered or unexported fields
}

AutoProvisioningSettingListIterator provides access to a complete listing of AutoProvisioningSetting values.

func (*AutoProvisioningSettingListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AutoProvisioningSettingListIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (AutoProvisioningSettingListIterator) Response

Response returns the raw server response from the last page request.

func (AutoProvisioningSettingListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AutoProvisioningSettingListPage

type AutoProvisioningSettingListPage struct {
	// contains filtered or unexported fields
}

AutoProvisioningSettingListPage contains a page of AutoProvisioningSetting values.

func (*AutoProvisioningSettingListPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AutoProvisioningSettingListPage) NotDone

func (page AutoProvisioningSettingListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AutoProvisioningSettingListPage) Response

Response returns the raw server response from the last page request.

func (AutoProvisioningSettingListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type AutoProvisioningSettingProperties

type AutoProvisioningSettingProperties struct {
	// AutoProvision - Describes what kind of security agent provisioning action to take. Possible values include: 'AutoProvisionOn', 'AutoProvisionOff'
	AutoProvision AutoProvision `json:"autoProvision,omitempty"`
}

AutoProvisioningSettingProperties describes properties of an auto provisioning setting

type AutoProvisioningSettingsClient

type AutoProvisioningSettingsClient struct {
	BaseClient
}

AutoProvisioningSettingsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewAutoProvisioningSettingsClient

func NewAutoProvisioningSettingsClient(subscriptionID string, ascLocation string) AutoProvisioningSettingsClient

NewAutoProvisioningSettingsClient creates an instance of the AutoProvisioningSettingsClient client.

func NewAutoProvisioningSettingsClientWithBaseURI

func NewAutoProvisioningSettingsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AutoProvisioningSettingsClient

NewAutoProvisioningSettingsClientWithBaseURI creates an instance of the AutoProvisioningSettingsClient client.

func (AutoProvisioningSettingsClient) Create

func (client AutoProvisioningSettingsClient) Create(ctx context.Context, settingName string, setting AutoProvisioningSetting) (result AutoProvisioningSetting, err error)

Create details of a specific setting Parameters: settingName - auto provisioning setting key setting - auto provisioning setting key

func (AutoProvisioningSettingsClient) CreatePreparer

func (client AutoProvisioningSettingsClient) CreatePreparer(ctx context.Context, settingName string, setting AutoProvisioningSetting) (*http.Request, error)

CreatePreparer prepares the Create request.

func (AutoProvisioningSettingsClient) CreateResponder

func (client AutoProvisioningSettingsClient) CreateResponder(resp *http.Response) (result AutoProvisioningSetting, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (AutoProvisioningSettingsClient) CreateSender

func (client AutoProvisioningSettingsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (AutoProvisioningSettingsClient) Get

func (client AutoProvisioningSettingsClient) Get(ctx context.Context, settingName string) (result AutoProvisioningSetting, err error)

Get details of a specific setting Parameters: settingName - auto provisioning setting key

func (AutoProvisioningSettingsClient) GetPreparer

func (client AutoProvisioningSettingsClient) GetPreparer(ctx context.Context, settingName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AutoProvisioningSettingsClient) GetResponder

func (client AutoProvisioningSettingsClient) GetResponder(resp *http.Response) (result AutoProvisioningSetting, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AutoProvisioningSettingsClient) GetSender

func (client AutoProvisioningSettingsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AutoProvisioningSettingsClient) List

List exposes the auto provisioning settings of the subscriptions

func (AutoProvisioningSettingsClient) ListComplete

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AutoProvisioningSettingsClient) ListPreparer

func (client AutoProvisioningSettingsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (AutoProvisioningSettingsClient) ListResponder

func (client AutoProvisioningSettingsClient) ListResponder(resp *http.Response) (result AutoProvisioningSettingList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AutoProvisioningSettingsClient) ListSender

func (client AutoProvisioningSettingsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
	AscLocation    string
}

BaseClient is the base client for Security.

func New

func New(subscriptionID string, ascLocation string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string, ascLocation string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicExternalSecuritySolution

type BasicExternalSecuritySolution interface {
	AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)
	AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)
	AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)
	AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)
}

BasicExternalSecuritySolution represents a security solution external to Azure Security Center which sends information to an OMS workspace and whos data is displayed by Azure Security Center.

type BasicSetting

type BasicSetting interface {
	AsDataExportSetting() (*DataExportSetting, bool)
	AsSetting() (*Setting, bool)
}

BasicSetting represents a security setting in Azure Security Center.

type CefExternalSecuritySolution

type CefExternalSecuritySolution struct {
	Properties *CefSolutionProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
	// Location - Location where the resource is stored
	Location *string `json:"location,omitempty"`
	// Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
	Kind KindEnum1 `json:"kind,omitempty"`
}

CefExternalSecuritySolution represents a security solution which sends CEF logs to an OMS workspace

func (CefExternalSecuritySolution) AsAadExternalSecuritySolution

func (cess CefExternalSecuritySolution) AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsAtaExternalSecuritySolution

func (cess CefExternalSecuritySolution) AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsBasicExternalSecuritySolution

func (cess CefExternalSecuritySolution) AsBasicExternalSecuritySolution() (BasicExternalSecuritySolution, bool)

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsCefExternalSecuritySolution

func (cess CefExternalSecuritySolution) AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsExternalSecuritySolution

func (cess CefExternalSecuritySolution) AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) MarshalJSON

func (cess CefExternalSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CefExternalSecuritySolution.

type CefSolutionProperties

type CefSolutionProperties struct {
	Hostname          *string `json:"hostname,omitempty"`
	Agent             *string `json:"agent,omitempty"`
	LastEventReceived *string `json:"lastEventReceived,omitempty"`
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	DeviceVendor         *string                `json:"deviceVendor,omitempty"`
	DeviceType           *string                `json:"deviceType,omitempty"`
	Workspace            *ConnectedWorkspace    `json:"workspace,omitempty"`
}

CefSolutionProperties ...

func (CefSolutionProperties) MarshalJSON

func (csp CefSolutionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CefSolutionProperties.

func (*CefSolutionProperties) UnmarshalJSON

func (csp *CefSolutionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CefSolutionProperties struct.

type CloudError

type CloudError struct {
	// CloudErrorBody - Error data
	*CloudErrorBody `json:"error,omitempty"`
}

CloudError error response structure.

func (CloudError) MarshalJSON

func (ce CloudError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CloudError.

func (*CloudError) UnmarshalJSON

func (ce *CloudError) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CloudError struct.

type CloudErrorBody

type CloudErrorBody struct {
	// Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
	Code *string `json:"code,omitempty"`
	// Message - A message describing the error, intended to be suitable for display in a user interface.
	Message *string `json:"message,omitempty"`
}

CloudErrorBody error details.

type Compliance

type Compliance struct {
	autorest.Response `json:"-"`
	// ComplianceProperties - Compliance data
	*ComplianceProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

Compliance compliance of a scope

func (Compliance) MarshalJSON

func (c Compliance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Compliance.

func (*Compliance) UnmarshalJSON

func (c *Compliance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Compliance struct.

type ComplianceList

type ComplianceList struct {
	autorest.Response `json:"-"`
	// Value - List of Compliance objects
	Value *[]Compliance `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

ComplianceList list of Compliance objects response

func (ComplianceList) IsEmpty

func (cl ComplianceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ComplianceListIterator

type ComplianceListIterator struct {
	// contains filtered or unexported fields
}

ComplianceListIterator provides access to a complete listing of Compliance values.

func (*ComplianceListIterator) Next

func (iter *ComplianceListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ComplianceListIterator) NotDone

func (iter ComplianceListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ComplianceListIterator) Response

func (iter ComplianceListIterator) Response() ComplianceList

Response returns the raw server response from the last page request.

func (ComplianceListIterator) Value

func (iter ComplianceListIterator) Value() Compliance

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ComplianceListPage

type ComplianceListPage struct {
	// contains filtered or unexported fields
}

ComplianceListPage contains a page of Compliance values.

func (*ComplianceListPage) Next

func (page *ComplianceListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ComplianceListPage) NotDone

func (page ComplianceListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ComplianceListPage) Response

func (page ComplianceListPage) Response() ComplianceList

Response returns the raw server response from the last page request.

func (ComplianceListPage) Values

func (page ComplianceListPage) Values() []Compliance

Values returns the slice of values for the current page or nil if there are no values.

type ComplianceProperties

type ComplianceProperties struct {
	// AssessmentTimestampUtcDate - The timestamp when the Compliance calculation was conducted.
	AssessmentTimestampUtcDate *date.Time `json:"assessmentTimestampUtcDate,omitempty"`
	// ResourceCount - The resource count of the given subscription for which the Compliance calculation was conducted (needed for Management Group Compliance calculation).
	ResourceCount *int32 `json:"resourceCount,omitempty"`
	// AssessmentResult - An array of segment, which is the actually the compliance assessment.
	AssessmentResult *[]ComplianceSegment `json:"assessmentResult,omitempty"`
}

ComplianceProperties the Compliance score (percentage) of a Subscription is a sum of all Resources' Compliances under the given Subscription. A Resource Compliance is defined as the compliant ('healthy') Policy Definitions out of all Policy Definitions applicable to a given resource.

type ComplianceSegment

type ComplianceSegment struct {
	// SegmentType - The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc.
	SegmentType *string `json:"segmentType,omitempty"`
	// Percentage - The size (%) of the segment.
	Percentage *float64 `json:"percentage,omitempty"`
}

ComplianceSegment a segment of a compliance assessment.

type CompliancesClient

type CompliancesClient struct {
	BaseClient
}

CompliancesClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewCompliancesClient

func NewCompliancesClient(subscriptionID string, ascLocation string) CompliancesClient

NewCompliancesClient creates an instance of the CompliancesClient client.

func NewCompliancesClientWithBaseURI

func NewCompliancesClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) CompliancesClient

NewCompliancesClientWithBaseURI creates an instance of the CompliancesClient client.

func (CompliancesClient) Get

func (client CompliancesClient) Get(ctx context.Context, scope string, complianceName string) (result Compliance, err error)

Get details of a specific Compliance. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). complianceName - name of the Compliance

func (CompliancesClient) GetPreparer

func (client CompliancesClient) GetPreparer(ctx context.Context, scope string, complianceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CompliancesClient) GetResponder

func (client CompliancesClient) GetResponder(resp *http.Response) (result Compliance, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (CompliancesClient) GetSender

func (client CompliancesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (CompliancesClient) List

func (client CompliancesClient) List(ctx context.Context, scope string) (result ComplianceListPage, err error)

List the Compliance scores of the specific management group. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).

func (CompliancesClient) ListComplete

func (client CompliancesClient) ListComplete(ctx context.Context, scope string) (result ComplianceListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (CompliancesClient) ListPreparer

func (client CompliancesClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error)

ListPreparer prepares the List request.

func (CompliancesClient) ListResponder

func (client CompliancesClient) ListResponder(resp *http.Response) (result ComplianceList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (CompliancesClient) ListSender

func (client CompliancesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ConnectedWorkspace

type ConnectedWorkspace struct {
	// ID - Azure resource ID of the connected OMS workspace
	ID *string `json:"id,omitempty"`
}

ConnectedWorkspace ...

type Contact

type Contact struct {
	autorest.Response `json:"-"`
	// ContactProperties - Security contact data
	*ContactProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

Contact contact details for security issues

func (Contact) MarshalJSON

func (c Contact) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Contact.

func (*Contact) UnmarshalJSON

func (c *Contact) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Contact struct.

type ContactList

type ContactList struct {
	autorest.Response `json:"-"`
	// Value - List of security contacts
	Value *[]Contact `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

ContactList list of security contacts response

func (ContactList) IsEmpty

func (cl ContactList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ContactListIterator

type ContactListIterator struct {
	// contains filtered or unexported fields
}

ContactListIterator provides access to a complete listing of Contact values.

func (*ContactListIterator) Next

func (iter *ContactListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ContactListIterator) NotDone

func (iter ContactListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ContactListIterator) Response

func (iter ContactListIterator) Response() ContactList

Response returns the raw server response from the last page request.

func (ContactListIterator) Value

func (iter ContactListIterator) Value() Contact

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ContactListPage

type ContactListPage struct {
	// contains filtered or unexported fields
}

ContactListPage contains a page of Contact values.

func (*ContactListPage) Next

func (page *ContactListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ContactListPage) NotDone

func (page ContactListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ContactListPage) Response

func (page ContactListPage) Response() ContactList

Response returns the raw server response from the last page request.

func (ContactListPage) Values

func (page ContactListPage) Values() []Contact

Values returns the slice of values for the current page or nil if there are no values.

type ContactProperties

type ContactProperties struct {
	// Email - The email of this security contact
	Email *string `json:"email,omitempty"`
	// Phone - The phone number of this security contact
	Phone *string `json:"phone,omitempty"`
	// AlertNotifications - Whether to send security alerts notifications to the security contact. Possible values include: 'On', 'Off'
	AlertNotifications AlertNotifications `json:"alertNotifications,omitempty"`
	// AlertsToAdmins - Whether to send security alerts notifications to subscription admins. Possible values include: 'AlertsToAdminsOn', 'AlertsToAdminsOff'
	AlertsToAdmins AlertsToAdmins `json:"alertsToAdmins,omitempty"`
}

ContactProperties describes security contact properties

type ContactsClient

type ContactsClient struct {
	BaseClient
}

ContactsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewContactsClient

func NewContactsClient(subscriptionID string, ascLocation string) ContactsClient

NewContactsClient creates an instance of the ContactsClient client.

func NewContactsClientWithBaseURI

func NewContactsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) ContactsClient

NewContactsClientWithBaseURI creates an instance of the ContactsClient client.

func (ContactsClient) Create

func (client ContactsClient) Create(ctx context.Context, securityContactName string, securityContact Contact) (result Contact, err error)

Create security contact configurations for the subscription Parameters: securityContactName - name of the security contact object securityContact - security contact object

func (ContactsClient) CreatePreparer

func (client ContactsClient) CreatePreparer(ctx context.Context, securityContactName string, securityContact Contact) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ContactsClient) CreateResponder

func (client ContactsClient) CreateResponder(resp *http.Response) (result Contact, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ContactsClient) CreateSender

func (client ContactsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ContactsClient) Delete

func (client ContactsClient) Delete(ctx context.Context, securityContactName string) (result autorest.Response, err error)

Delete security contact configurations for the subscription Parameters: securityContactName - name of the security contact object

func (ContactsClient) DeletePreparer

func (client ContactsClient) DeletePreparer(ctx context.Context, securityContactName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ContactsClient) DeleteResponder

func (client ContactsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ContactsClient) DeleteSender

func (client ContactsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ContactsClient) Get

func (client ContactsClient) Get(ctx context.Context, securityContactName string) (result Contact, err error)

Get security contact configurations for the subscription Parameters: securityContactName - name of the security contact object

func (ContactsClient) GetPreparer

func (client ContactsClient) GetPreparer(ctx context.Context, securityContactName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ContactsClient) GetResponder

func (client ContactsClient) GetResponder(resp *http.Response) (result Contact, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ContactsClient) GetSender

func (client ContactsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ContactsClient) List

func (client ContactsClient) List(ctx context.Context) (result ContactListPage, err error)

List security contact configurations for the subscription

func (ContactsClient) ListComplete

func (client ContactsClient) ListComplete(ctx context.Context) (result ContactListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ContactsClient) ListPreparer

func (client ContactsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ContactsClient) ListResponder

func (client ContactsClient) ListResponder(resp *http.Response) (result ContactList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ContactsClient) ListSender

func (client ContactsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ContactsClient) Update

func (client ContactsClient) Update(ctx context.Context, securityContactName string, securityContact Contact) (result Contact, err error)

Update security contact configurations for the subscription Parameters: securityContactName - name of the security contact object securityContact - security contact object

func (ContactsClient) UpdatePreparer

func (client ContactsClient) UpdatePreparer(ctx context.Context, securityContactName string, securityContact Contact) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ContactsClient) UpdateResponder

func (client ContactsClient) UpdateResponder(resp *http.Response) (result Contact, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ContactsClient) UpdateSender

func (client ContactsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type DataExportSetting

type DataExportSetting struct {
	// DataExportSettingProperties - Data export setting data
	*DataExportSettingProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
	// Kind - Possible values include: 'KindSetting', 'KindDataExportSetting'
	Kind KindEnum `json:"kind,omitempty"`
}

DataExportSetting represents a data export setting

func (DataExportSetting) AsBasicSetting

func (desVar DataExportSetting) AsBasicSetting() (BasicSetting, bool)

AsBasicSetting is the BasicSetting implementation for DataExportSetting.

func (DataExportSetting) AsDataExportSetting

func (desVar DataExportSetting) AsDataExportSetting() (*DataExportSetting, bool)

AsDataExportSetting is the BasicSetting implementation for DataExportSetting.

func (DataExportSetting) AsSetting

func (desVar DataExportSetting) AsSetting() (*Setting, bool)

AsSetting is the BasicSetting implementation for DataExportSetting.

func (DataExportSetting) MarshalJSON

func (desVar DataExportSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataExportSetting.

func (*DataExportSetting) UnmarshalJSON

func (desVar *DataExportSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DataExportSetting struct.

type DataExportSettingProperties

type DataExportSettingProperties struct {
	// Enabled - Is the data export setting is enabled
	Enabled *bool `json:"enabled,omitempty"`
}

DataExportSettingProperties the data export setting properties

type DiscoveredSecuritySolution

type DiscoveredSecuritySolution struct {
	autorest.Response `json:"-"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
	// Location - Location where the resource is stored
	Location                              *string `json:"location,omitempty"`
	*DiscoveredSecuritySolutionProperties `json:"properties,omitempty"`
}

DiscoveredSecuritySolution ...

func (DiscoveredSecuritySolution) MarshalJSON

func (dss DiscoveredSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiscoveredSecuritySolution.

func (*DiscoveredSecuritySolution) UnmarshalJSON

func (dss *DiscoveredSecuritySolution) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DiscoveredSecuritySolution struct.

type DiscoveredSecuritySolutionList

type DiscoveredSecuritySolutionList struct {
	autorest.Response `json:"-"`
	Value             *[]DiscoveredSecuritySolution `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

DiscoveredSecuritySolutionList ...

func (DiscoveredSecuritySolutionList) IsEmpty

func (dssl DiscoveredSecuritySolutionList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DiscoveredSecuritySolutionListIterator

type DiscoveredSecuritySolutionListIterator struct {
	// contains filtered or unexported fields
}

DiscoveredSecuritySolutionListIterator provides access to a complete listing of DiscoveredSecuritySolution values.

func (*DiscoveredSecuritySolutionListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DiscoveredSecuritySolutionListIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (DiscoveredSecuritySolutionListIterator) Response

Response returns the raw server response from the last page request.

func (DiscoveredSecuritySolutionListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DiscoveredSecuritySolutionListPage

type DiscoveredSecuritySolutionListPage struct {
	// contains filtered or unexported fields
}

DiscoveredSecuritySolutionListPage contains a page of DiscoveredSecuritySolution values.

func (*DiscoveredSecuritySolutionListPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DiscoveredSecuritySolutionListPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DiscoveredSecuritySolutionListPage) Response

Response returns the raw server response from the last page request.

func (DiscoveredSecuritySolutionListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type DiscoveredSecuritySolutionProperties

type DiscoveredSecuritySolutionProperties struct {
	// SecurityFamily - The security family of the discovered solution. Possible values include: 'Waf', 'Ngfw', 'SaasWaf', 'Va'
	SecurityFamily Family `json:"securityFamily,omitempty"`
	// Offer - The security solutions' image offer
	Offer *string `json:"offer,omitempty"`
	// Publisher - The security solutions' image publisher
	Publisher *string `json:"publisher,omitempty"`
	// Sku - The security solutions' image sku
	Sku *string `json:"sku,omitempty"`
}

DiscoveredSecuritySolutionProperties ...

type DiscoveredSecuritySolutionsClient

type DiscoveredSecuritySolutionsClient struct {
	BaseClient
}

DiscoveredSecuritySolutionsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewDiscoveredSecuritySolutionsClient

func NewDiscoveredSecuritySolutionsClient(subscriptionID string, ascLocation string) DiscoveredSecuritySolutionsClient

NewDiscoveredSecuritySolutionsClient creates an instance of the DiscoveredSecuritySolutionsClient client.

func NewDiscoveredSecuritySolutionsClientWithBaseURI

func NewDiscoveredSecuritySolutionsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) DiscoveredSecuritySolutionsClient

NewDiscoveredSecuritySolutionsClientWithBaseURI creates an instance of the DiscoveredSecuritySolutionsClient client.

func (DiscoveredSecuritySolutionsClient) Get

func (client DiscoveredSecuritySolutionsClient) Get(ctx context.Context, resourceGroupName string, discoveredSecuritySolutionName string) (result DiscoveredSecuritySolution, err error)

Get gets a specific discovered Security Solution. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. discoveredSecuritySolutionName - name of a discovered security solution.

func (DiscoveredSecuritySolutionsClient) GetPreparer

func (client DiscoveredSecuritySolutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, discoveredSecuritySolutionName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DiscoveredSecuritySolutionsClient) GetResponder

func (client DiscoveredSecuritySolutionsClient) GetResponder(resp *http.Response) (result DiscoveredSecuritySolution, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DiscoveredSecuritySolutionsClient) GetSender

func (client DiscoveredSecuritySolutionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DiscoveredSecuritySolutionsClient) List

List gets a list of discovered Security Solutions for the subscription.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegion

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

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionComplete

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegionComplete(ctx context.Context) (result DiscoveredSecuritySolutionListIterator, err error)

ListByHomeRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionPreparer

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegionPreparer(ctx context.Context) (*http.Request, error)

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionResponder

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegionResponder(resp *http.Response) (result DiscoveredSecuritySolutionList, err error)

ListByHomeRegionResponder handles the response to the ListByHomeRegion request. The method always closes the http.Response Body.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionSender

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegionSender(req *http.Request) (*http.Response, error)

ListByHomeRegionSender sends the ListByHomeRegion request. The method will close the http.Response Body if it receives an error.

func (DiscoveredSecuritySolutionsClient) ListComplete

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (DiscoveredSecuritySolutionsClient) ListPreparer

func (client DiscoveredSecuritySolutionsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (DiscoveredSecuritySolutionsClient) ListResponder

func (client DiscoveredSecuritySolutionsClient) ListResponder(resp *http.Response) (result DiscoveredSecuritySolutionList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DiscoveredSecuritySolutionsClient) ListSender

func (client DiscoveredSecuritySolutionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ExternalSecuritySolution

type ExternalSecuritySolution struct {
	autorest.Response `json:"-"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
	// Location - Location where the resource is stored
	Location *string `json:"location,omitempty"`
	// Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
	Kind KindEnum1 `json:"kind,omitempty"`
}

ExternalSecuritySolution represents a security solution external to Azure Security Center which sends information to an OMS workspace and whos data is displayed by Azure Security Center.

func (ExternalSecuritySolution) AsAadExternalSecuritySolution

func (ess ExternalSecuritySolution) AsAadExternalSecuritySolution() (*AadExternalSecuritySolution, bool)

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsAtaExternalSecuritySolution

func (ess ExternalSecuritySolution) AsAtaExternalSecuritySolution() (*AtaExternalSecuritySolution, bool)

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsBasicExternalSecuritySolution

func (ess ExternalSecuritySolution) AsBasicExternalSecuritySolution() (BasicExternalSecuritySolution, bool)

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsCefExternalSecuritySolution

func (ess ExternalSecuritySolution) AsCefExternalSecuritySolution() (*CefExternalSecuritySolution, bool)

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsExternalSecuritySolution

func (ess ExternalSecuritySolution) AsExternalSecuritySolution() (*ExternalSecuritySolution, bool)

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) MarshalJSON

func (ess ExternalSecuritySolution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExternalSecuritySolution.

type ExternalSecuritySolutionKind

type ExternalSecuritySolutionKind string

ExternalSecuritySolutionKind enumerates the values for external security solution kind.

const (
	// AAD ...
	AAD ExternalSecuritySolutionKind = "AAD"
	// ATA ...
	ATA ExternalSecuritySolutionKind = "ATA"
	// CEF ...
	CEF ExternalSecuritySolutionKind = "CEF"
)

func PossibleExternalSecuritySolutionKindValues

func PossibleExternalSecuritySolutionKindValues() []ExternalSecuritySolutionKind

PossibleExternalSecuritySolutionKindValues returns an array of possible values for the ExternalSecuritySolutionKind const type.

type ExternalSecuritySolutionKind1

type ExternalSecuritySolutionKind1 struct {
	// Kind - The kind of the external solution. Possible values include: 'CEF', 'ATA', 'AAD'
	Kind ExternalSecuritySolutionKind `json:"kind,omitempty"`
}

ExternalSecuritySolutionKind1 describes an Azure resource with kind

type ExternalSecuritySolutionList

type ExternalSecuritySolutionList struct {
	autorest.Response `json:"-"`
	Value             *[]BasicExternalSecuritySolution `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

ExternalSecuritySolutionList ...

func (ExternalSecuritySolutionList) IsEmpty

func (essl ExternalSecuritySolutionList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (*ExternalSecuritySolutionList) UnmarshalJSON

func (essl *ExternalSecuritySolutionList) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExternalSecuritySolutionList struct.

type ExternalSecuritySolutionListIterator

type ExternalSecuritySolutionListIterator struct {
	// contains filtered or unexported fields
}

ExternalSecuritySolutionListIterator provides access to a complete listing of ExternalSecuritySolution values.

func (*ExternalSecuritySolutionListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ExternalSecuritySolutionListIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ExternalSecuritySolutionListIterator) Response

Response returns the raw server response from the last page request.

func (ExternalSecuritySolutionListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ExternalSecuritySolutionListPage

type ExternalSecuritySolutionListPage struct {
	// contains filtered or unexported fields
}

ExternalSecuritySolutionListPage contains a page of BasicExternalSecuritySolution values.

func (*ExternalSecuritySolutionListPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ExternalSecuritySolutionListPage) NotDone

func (page ExternalSecuritySolutionListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ExternalSecuritySolutionListPage) Response

Response returns the raw server response from the last page request.

func (ExternalSecuritySolutionListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ExternalSecuritySolutionModel

type ExternalSecuritySolutionModel struct {
	autorest.Response `json:"-"`
	Value             BasicExternalSecuritySolution `json:"value,omitempty"`
}

ExternalSecuritySolutionModel ...

func (*ExternalSecuritySolutionModel) UnmarshalJSON

func (essm *ExternalSecuritySolutionModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExternalSecuritySolutionModel struct.

type ExternalSecuritySolutionProperties

type ExternalSecuritySolutionProperties struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	DeviceVendor         *string                `json:"deviceVendor,omitempty"`
	DeviceType           *string                `json:"deviceType,omitempty"`
	Workspace            *ConnectedWorkspace    `json:"workspace,omitempty"`
}

ExternalSecuritySolutionProperties the solution properties (correspond to the solution kind)

func (ExternalSecuritySolutionProperties) MarshalJSON

func (essp ExternalSecuritySolutionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExternalSecuritySolutionProperties.

func (*ExternalSecuritySolutionProperties) UnmarshalJSON

func (essp *ExternalSecuritySolutionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExternalSecuritySolutionProperties struct.

type ExternalSecuritySolutionsClient

type ExternalSecuritySolutionsClient struct {
	BaseClient
}

ExternalSecuritySolutionsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewExternalSecuritySolutionsClient

func NewExternalSecuritySolutionsClient(subscriptionID string, ascLocation string) ExternalSecuritySolutionsClient

NewExternalSecuritySolutionsClient creates an instance of the ExternalSecuritySolutionsClient client.

func NewExternalSecuritySolutionsClientWithBaseURI

func NewExternalSecuritySolutionsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) ExternalSecuritySolutionsClient

NewExternalSecuritySolutionsClientWithBaseURI creates an instance of the ExternalSecuritySolutionsClient client.

func (ExternalSecuritySolutionsClient) Get

func (client ExternalSecuritySolutionsClient) Get(ctx context.Context, resourceGroupName string, externalSecuritySolutionsName string) (result ExternalSecuritySolutionModel, err error)

Get gets a specific external Security Solution. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. externalSecuritySolutionsName - name of an external security solution.

func (ExternalSecuritySolutionsClient) GetPreparer

func (client ExternalSecuritySolutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, externalSecuritySolutionsName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ExternalSecuritySolutionsClient) GetResponder

func (client ExternalSecuritySolutionsClient) GetResponder(resp *http.Response) (result ExternalSecuritySolutionModel, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ExternalSecuritySolutionsClient) GetSender

func (client ExternalSecuritySolutionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ExternalSecuritySolutionsClient) List

List gets a list of external security solutions for the subscription.

func (ExternalSecuritySolutionsClient) ListByHomeRegion

func (client ExternalSecuritySolutionsClient) ListByHomeRegion(ctx context.Context) (result ExternalSecuritySolutionListPage, err error)

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

func (ExternalSecuritySolutionsClient) ListByHomeRegionComplete

func (client ExternalSecuritySolutionsClient) ListByHomeRegionComplete(ctx context.Context) (result ExternalSecuritySolutionListIterator, err error)

ListByHomeRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (ExternalSecuritySolutionsClient) ListByHomeRegionPreparer

func (client ExternalSecuritySolutionsClient) ListByHomeRegionPreparer(ctx context.Context) (*http.Request, error)

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (ExternalSecuritySolutionsClient) ListByHomeRegionResponder

func (client ExternalSecuritySolutionsClient) ListByHomeRegionResponder(resp *http.Response) (result ExternalSecuritySolutionList, err error)

ListByHomeRegionResponder handles the response to the ListByHomeRegion request. The method always closes the http.Response Body.

func (ExternalSecuritySolutionsClient) ListByHomeRegionSender

func (client ExternalSecuritySolutionsClient) ListByHomeRegionSender(req *http.Request) (*http.Response, error)

ListByHomeRegionSender sends the ListByHomeRegion request. The method will close the http.Response Body if it receives an error.

func (ExternalSecuritySolutionsClient) ListComplete

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ExternalSecuritySolutionsClient) ListPreparer

func (client ExternalSecuritySolutionsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ExternalSecuritySolutionsClient) ListResponder

func (client ExternalSecuritySolutionsClient) ListResponder(resp *http.Response) (result ExternalSecuritySolutionList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ExternalSecuritySolutionsClient) ListSender

func (client ExternalSecuritySolutionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Family

type Family string

Family enumerates the values for family.

const (
	// Ngfw ...
	Ngfw Family = "Ngfw"
	// SaasWaf ...
	SaasWaf Family = "SaasWaf"
	// Va ...
	Va Family = "Va"
	// Waf ...
	Waf Family = "Waf"
)

func PossibleFamilyValues

func PossibleFamilyValues() []Family

PossibleFamilyValues returns an array of possible values for the Family const type.

type InformationProtectionKeyword

type InformationProtectionKeyword struct {
	// Pattern - The keyword pattern.
	Pattern *string `json:"pattern,omitempty"`
	// Custom - Indicates whether the keyword is custom or not.
	Custom *bool `json:"custom,omitempty"`
	// CanBeNumeric - Indicates whether the keyword can be applied on numeric types or not.
	CanBeNumeric *bool `json:"canBeNumeric,omitempty"`
	// Excluded - Indicates whether the keyword is excluded or not.
	Excluded *bool `json:"excluded,omitempty"`
}

InformationProtectionKeyword the information type keyword.

type InformationProtectionPoliciesClient

type InformationProtectionPoliciesClient struct {
	BaseClient
}

InformationProtectionPoliciesClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewInformationProtectionPoliciesClient

func NewInformationProtectionPoliciesClient(subscriptionID string, ascLocation string) InformationProtectionPoliciesClient

NewInformationProtectionPoliciesClient creates an instance of the InformationProtectionPoliciesClient client.

func NewInformationProtectionPoliciesClientWithBaseURI

func NewInformationProtectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) InformationProtectionPoliciesClient

NewInformationProtectionPoliciesClientWithBaseURI creates an instance of the InformationProtectionPoliciesClient client.

func (InformationProtectionPoliciesClient) CreateOrUpdate

func (client InformationProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, scope string, informationProtectionPolicyName string) (result InformationProtectionPolicy, err error)

CreateOrUpdate details of the information protection policy. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). informationProtectionPolicyName - name of the information protection policy.

func (InformationProtectionPoliciesClient) CreateOrUpdatePreparer

func (client InformationProtectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, scope string, informationProtectionPolicyName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (InformationProtectionPoliciesClient) CreateOrUpdateResponder

func (client InformationProtectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result InformationProtectionPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (InformationProtectionPoliciesClient) CreateOrUpdateSender

func (client InformationProtectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (InformationProtectionPoliciesClient) Get

func (client InformationProtectionPoliciesClient) Get(ctx context.Context, scope string, informationProtectionPolicyName string) (result InformationProtectionPolicy, err error)

Get details of the information protection policy. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). informationProtectionPolicyName - name of the information protection policy.

func (InformationProtectionPoliciesClient) GetPreparer

func (client InformationProtectionPoliciesClient) GetPreparer(ctx context.Context, scope string, informationProtectionPolicyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (InformationProtectionPoliciesClient) GetResponder

func (client InformationProtectionPoliciesClient) GetResponder(resp *http.Response) (result InformationProtectionPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (InformationProtectionPoliciesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (InformationProtectionPoliciesClient) List

List information protection policies of a specific management group. Parameters: scope - scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).

func (InformationProtectionPoliciesClient) ListComplete

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (InformationProtectionPoliciesClient) ListPreparer

func (client InformationProtectionPoliciesClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error)

ListPreparer prepares the List request.

func (InformationProtectionPoliciesClient) ListResponder

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (InformationProtectionPoliciesClient) ListSender

func (client InformationProtectionPoliciesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type InformationProtectionPolicy

type InformationProtectionPolicy struct {
	autorest.Response `json:"-"`
	// InformationProtectionPolicyProperties - Information protection policy data
	*InformationProtectionPolicyProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

InformationProtectionPolicy information protection policy.

func (InformationProtectionPolicy) MarshalJSON

func (ipp InformationProtectionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InformationProtectionPolicy.

func (*InformationProtectionPolicy) UnmarshalJSON

func (ipp *InformationProtectionPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for InformationProtectionPolicy struct.

type InformationProtectionPolicyList

type InformationProtectionPolicyList struct {
	autorest.Response `json:"-"`
	// Value - List of information protection policies.
	Value *[]InformationProtectionPolicy `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

InformationProtectionPolicyList information protection policies response.

func (InformationProtectionPolicyList) IsEmpty

func (ippl InformationProtectionPolicyList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InformationProtectionPolicyListIterator

type InformationProtectionPolicyListIterator struct {
	// contains filtered or unexported fields
}

InformationProtectionPolicyListIterator provides access to a complete listing of InformationProtectionPolicy values.

func (*InformationProtectionPolicyListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (InformationProtectionPolicyListIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (InformationProtectionPolicyListIterator) Response

Response returns the raw server response from the last page request.

func (InformationProtectionPolicyListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type InformationProtectionPolicyListPage

type InformationProtectionPolicyListPage struct {
	// contains filtered or unexported fields
}

InformationProtectionPolicyListPage contains a page of InformationProtectionPolicy values.

func (*InformationProtectionPolicyListPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (InformationProtectionPolicyListPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (InformationProtectionPolicyListPage) Response

Response returns the raw server response from the last page request.

func (InformationProtectionPolicyListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type InformationProtectionPolicyProperties

type InformationProtectionPolicyProperties struct {
	// LastModifiedUtc - Describes the last UTC time the policy was modified.
	LastModifiedUtc *date.Time `json:"lastModifiedUtc,omitempty"`
	// Labels - Dictionary of sensitivity labels.
	Labels map[string]*SensitivityLabel `json:"labels"`
	// InformationTypes - The sensitivity information types.
	InformationTypes map[string]*InformationType `json:"informationTypes"`
}

InformationProtectionPolicyProperties describes properties of an information protection policy.

func (InformationProtectionPolicyProperties) MarshalJSON

func (ippp InformationProtectionPolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InformationProtectionPolicyProperties.

type InformationType

type InformationType struct {
	// DisplayName - The name of the information type.
	DisplayName *string `json:"displayName,omitempty"`
	// Order - The order of the information type.
	Order *float64 `json:"order,omitempty"`
	// RecommendedLabelID - The recommended label id to be associated with this information type.
	RecommendedLabelID *uuid.UUID `json:"recommendedLabelId,omitempty"`
	// Enabled - Indicates whether the information type is enabled or not.
	Enabled *bool `json:"enabled,omitempty"`
	// Custom - Indicates whether the information type is custom or not.
	Custom *bool `json:"custom,omitempty"`
	// Keywords - The information type keywords.
	Keywords *[]InformationProtectionKeyword `json:"keywords,omitempty"`
}

InformationType the information type.

type JitNetworkAccessPoliciesClient

type JitNetworkAccessPoliciesClient struct {
	BaseClient
}

JitNetworkAccessPoliciesClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewJitNetworkAccessPoliciesClient

func NewJitNetworkAccessPoliciesClient(subscriptionID string, ascLocation string) JitNetworkAccessPoliciesClient

NewJitNetworkAccessPoliciesClient creates an instance of the JitNetworkAccessPoliciesClient client.

func NewJitNetworkAccessPoliciesClientWithBaseURI

func NewJitNetworkAccessPoliciesClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) JitNetworkAccessPoliciesClient

NewJitNetworkAccessPoliciesClientWithBaseURI creates an instance of the JitNetworkAccessPoliciesClient client.

func (JitNetworkAccessPoliciesClient) CreateOrUpdate

func (client JitNetworkAccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicy) (result JitNetworkAccessPolicy, err error)

CreateOrUpdate create a policy for protecting resources using Just-in-Time access control Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. jitNetworkAccessPolicyName - name of a Just-in-Time access configuration policy.

func (JitNetworkAccessPoliciesClient) CreateOrUpdatePreparer

func (client JitNetworkAccessPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (JitNetworkAccessPoliciesClient) CreateOrUpdateResponder

func (client JitNetworkAccessPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result JitNetworkAccessPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) CreateOrUpdateSender

func (client JitNetworkAccessPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) Delete

func (client JitNetworkAccessPoliciesClient) Delete(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (result autorest.Response, err error)

Delete delete a Just-in-Time access control policy. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. jitNetworkAccessPolicyName - name of a Just-in-Time access configuration policy.

func (JitNetworkAccessPoliciesClient) DeletePreparer

func (client JitNetworkAccessPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (JitNetworkAccessPoliciesClient) DeleteResponder

func (client JitNetworkAccessPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) DeleteSender

func (client JitNetworkAccessPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) Get

func (client JitNetworkAccessPoliciesClient) Get(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (result JitNetworkAccessPolicy, err error)

Get policies for protecting resources using Just-in-Time access control for the subscription, location Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. jitNetworkAccessPolicyName - name of a Just-in-Time access configuration policy.

func (JitNetworkAccessPoliciesClient) GetPreparer

func (client JitNetworkAccessPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (JitNetworkAccessPoliciesClient) GetResponder

func (client JitNetworkAccessPoliciesClient) GetResponder(resp *http.Response) (result JitNetworkAccessPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) GetSender

func (client JitNetworkAccessPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) Initiate

func (client JitNetworkAccessPoliciesClient) Initiate(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicyInitiateRequest) (result JitNetworkAccessRequest, err error)

Initiate initiate a JIT access from a specific Just-in-Time policy configuration. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. jitNetworkAccessPolicyName - name of a Just-in-Time access configuration policy.

func (JitNetworkAccessPoliciesClient) InitiatePreparer

func (client JitNetworkAccessPoliciesClient) InitiatePreparer(ctx context.Context, resourceGroupName string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicyInitiateRequest) (*http.Request, error)

InitiatePreparer prepares the Initiate request.

func (JitNetworkAccessPoliciesClient) InitiateResponder

func (client JitNetworkAccessPoliciesClient) InitiateResponder(resp *http.Response) (result JitNetworkAccessRequest, err error)

InitiateResponder handles the response to the Initiate request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) InitiateSender

func (client JitNetworkAccessPoliciesClient) InitiateSender(req *http.Request) (*http.Response, error)

InitiateSender sends the Initiate request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) List

List policies for protecting resources using Just-in-Time access control.

func (JitNetworkAccessPoliciesClient) ListByRegion

ListByRegion policies for protecting resources using Just-in-Time access control for the subscription, location

func (JitNetworkAccessPoliciesClient) ListByRegionComplete

func (client JitNetworkAccessPoliciesClient) ListByRegionComplete(ctx context.Context) (result JitNetworkAccessPoliciesListIterator, err error)

ListByRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (JitNetworkAccessPoliciesClient) ListByRegionPreparer

func (client JitNetworkAccessPoliciesClient) ListByRegionPreparer(ctx context.Context) (*http.Request, error)

ListByRegionPreparer prepares the ListByRegion request.

func (JitNetworkAccessPoliciesClient) ListByRegionResponder

func (client JitNetworkAccessPoliciesClient) ListByRegionResponder(resp *http.Response) (result JitNetworkAccessPoliciesList, err error)

ListByRegionResponder handles the response to the ListByRegion request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) ListByRegionSender

func (client JitNetworkAccessPoliciesClient) ListByRegionSender(req *http.Request) (*http.Response, error)

ListByRegionSender sends the ListByRegion request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) ListByResourceGroup

func (client JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result JitNetworkAccessPoliciesListPage, err error)

ListByResourceGroup policies for protecting resources using Just-in-Time access control for the subscription, location Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx context.Context, resourceGroupName string) (result JitNetworkAccessPoliciesListPage, err error)

ListByResourceGroupAndRegion policies for protecting resources using Just-in-Time access control for the subscription, location Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionComplete

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionComplete(ctx context.Context, resourceGroupName string) (result JitNetworkAccessPoliciesListIterator, err error)

ListByResourceGroupAndRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionPreparer

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupAndRegionPreparer prepares the ListByResourceGroupAndRegion request.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionResponder

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionResponder(resp *http.Response) (result JitNetworkAccessPoliciesList, err error)

ListByResourceGroupAndRegionResponder handles the response to the ListByResourceGroupAndRegion request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionSender

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegionSender(req *http.Request) (*http.Response, error)

ListByResourceGroupAndRegionSender sends the ListByResourceGroupAndRegion request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupComplete

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result JitNetworkAccessPoliciesListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupPreparer

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupResponder

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupResponder(resp *http.Response) (result JitNetworkAccessPoliciesList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) ListByResourceGroupSender

func (client JitNetworkAccessPoliciesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (JitNetworkAccessPoliciesClient) ListComplete

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (JitNetworkAccessPoliciesClient) ListPreparer

func (client JitNetworkAccessPoliciesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (JitNetworkAccessPoliciesClient) ListResponder

func (client JitNetworkAccessPoliciesClient) ListResponder(resp *http.Response) (result JitNetworkAccessPoliciesList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (JitNetworkAccessPoliciesClient) ListSender

func (client JitNetworkAccessPoliciesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type JitNetworkAccessPoliciesList

type JitNetworkAccessPoliciesList struct {
	autorest.Response `json:"-"`
	Value             *[]JitNetworkAccessPolicy `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

JitNetworkAccessPoliciesList ...

func (JitNetworkAccessPoliciesList) IsEmpty

func (jnapl JitNetworkAccessPoliciesList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JitNetworkAccessPoliciesListIterator

type JitNetworkAccessPoliciesListIterator struct {
	// contains filtered or unexported fields
}

JitNetworkAccessPoliciesListIterator provides access to a complete listing of JitNetworkAccessPolicy values.

func (*JitNetworkAccessPoliciesListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (JitNetworkAccessPoliciesListIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (JitNetworkAccessPoliciesListIterator) Response

Response returns the raw server response from the last page request.

func (JitNetworkAccessPoliciesListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type JitNetworkAccessPoliciesListPage

type JitNetworkAccessPoliciesListPage struct {
	// contains filtered or unexported fields
}

JitNetworkAccessPoliciesListPage contains a page of JitNetworkAccessPolicy values.

func (*JitNetworkAccessPoliciesListPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (JitNetworkAccessPoliciesListPage) NotDone

func (page JitNetworkAccessPoliciesListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (JitNetworkAccessPoliciesListPage) Response

Response returns the raw server response from the last page request.

func (JitNetworkAccessPoliciesListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type JitNetworkAccessPolicy

type JitNetworkAccessPolicy struct {
	autorest.Response `json:"-"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
	// Kind - Kind of the resource
	Kind *string `json:"kind,omitempty"`
	// Location - Location where the resource is stored
	Location                          *string `json:"location,omitempty"`
	*JitNetworkAccessPolicyProperties `json:"properties,omitempty"`
}

JitNetworkAccessPolicy ...

func (JitNetworkAccessPolicy) MarshalJSON

func (jnap JitNetworkAccessPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JitNetworkAccessPolicy.

func (*JitNetworkAccessPolicy) UnmarshalJSON

func (jnap *JitNetworkAccessPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JitNetworkAccessPolicy struct.

type JitNetworkAccessPolicyInitiatePort

type JitNetworkAccessPolicyInitiatePort struct {
	Number *int32 `json:"number,omitempty"`
	// AllowedSourceAddressPrefix - Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request.
	AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"`
	// EndTimeUtc - The time to close the request in UTC
	EndTimeUtc *date.Time `json:"endTimeUtc,omitempty"`
}

JitNetworkAccessPolicyInitiatePort ...

type JitNetworkAccessPolicyInitiateRequest

type JitNetworkAccessPolicyInitiateRequest struct {
	// VirtualMachines - A list of virtual machines & ports to open access for
	VirtualMachines *[]JitNetworkAccessPolicyInitiateVirtualMachine `json:"virtualMachines,omitempty"`
}

JitNetworkAccessPolicyInitiateRequest ...

type JitNetworkAccessPolicyInitiateVirtualMachine

type JitNetworkAccessPolicyInitiateVirtualMachine struct {
	// ID - Resource ID of the virtual machine that is linked to this policy
	ID *string `json:"id,omitempty"`
	// Ports - The ports to open for the resource with the `id`
	Ports *[]JitNetworkAccessPolicyInitiatePort `json:"ports,omitempty"`
}

JitNetworkAccessPolicyInitiateVirtualMachine ...

type JitNetworkAccessPolicyProperties

type JitNetworkAccessPolicyProperties struct {
	// VirtualMachines - Configurations for Microsoft.Compute/virtualMachines resource type.
	VirtualMachines *[]JitNetworkAccessPolicyVirtualMachine `json:"virtualMachines,omitempty"`
	Requests        *[]JitNetworkAccessRequest              `json:"requests,omitempty"`
	// ProvisioningState - Gets the provisioning state of the Just-in-Time policy.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

JitNetworkAccessPolicyProperties ...

type JitNetworkAccessPolicyVirtualMachine

type JitNetworkAccessPolicyVirtualMachine struct {
	// ID - Resource ID of the virtual machine that is linked to this policy
	ID *string `json:"id,omitempty"`
	// Ports - Port configurations for the virtual machine
	Ports *[]JitNetworkAccessPortRule `json:"ports,omitempty"`
}

JitNetworkAccessPolicyVirtualMachine ...

type JitNetworkAccessPortRule

type JitNetworkAccessPortRule struct {
	Number *int32 `json:"number,omitempty"`
	// Protocol - Possible values include: 'TCP', 'UDP', 'All'
	Protocol Protocol `json:"protocol,omitempty"`
	// AllowedSourceAddressPrefix - Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
	AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"`
	// AllowedSourceAddressPrefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
	AllowedSourceAddressPrefixes *[]string `json:"allowedSourceAddressPrefixes,omitempty"`
	// MaxRequestAccessDuration - Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day
	MaxRequestAccessDuration *string `json:"maxRequestAccessDuration,omitempty"`
}

JitNetworkAccessPortRule ...

type JitNetworkAccessRequest

type JitNetworkAccessRequest struct {
	autorest.Response `json:"-"`
	VirtualMachines   *[]JitNetworkAccessRequestVirtualMachine `json:"virtualMachines,omitempty"`
	// StartTimeUtc - The start time of the request in UTC
	StartTimeUtc *date.Time `json:"startTimeUtc,omitempty"`
	// Requestor - The identity of the person who made the request
	Requestor *string `json:"requestor,omitempty"`
}

JitNetworkAccessRequest ...

type JitNetworkAccessRequestPort

type JitNetworkAccessRequestPort struct {
	Number *int32 `json:"number,omitempty"`
	// AllowedSourceAddressPrefix - Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".
	AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"`
	// AllowedSourceAddressPrefixes - Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
	AllowedSourceAddressPrefixes *[]string `json:"allowedSourceAddressPrefixes,omitempty"`
	// EndTimeUtc - The date & time at which the request ends in UTC
	EndTimeUtc *date.Time `json:"endTimeUtc,omitempty"`
	// Status - The status of the port. Possible values include: 'Revoked', 'Initiated'
	Status Status `json:"status,omitempty"`
	// StatusReason - A description of why the `status` has its value. Possible values include: 'Expired', 'UserRequested', 'NewerRequestInitiated'
	StatusReason StatusReason `json:"statusReason,omitempty"`
}

JitNetworkAccessRequestPort ...

type JitNetworkAccessRequestVirtualMachine

type JitNetworkAccessRequestVirtualMachine struct {
	// ID - Resource ID of the virtual machine that is linked to this policy
	ID *string `json:"id,omitempty"`
	// Ports - The ports that were opened for the virtual machine
	Ports *[]JitNetworkAccessRequestPort `json:"ports,omitempty"`
}

JitNetworkAccessRequestVirtualMachine ...

type Kind

type Kind struct {
	// Kind - Kind of the resource
	Kind *string `json:"kind,omitempty"`
}

Kind describes an Azure resource with kind

type KindEnum

type KindEnum string

KindEnum enumerates the values for kind enum.

const (
	// KindDataExportSetting ...
	KindDataExportSetting KindEnum = "DataExportSetting"
	// KindSetting ...
	KindSetting KindEnum = "Setting"
)

func PossibleKindEnumValues

func PossibleKindEnumValues() []KindEnum

PossibleKindEnumValues returns an array of possible values for the KindEnum const type.

type KindEnum1

type KindEnum1 string

KindEnum1 enumerates the values for kind enum 1.

const (
	// KindAAD ...
	KindAAD KindEnum1 = "AAD"
	// KindATA ...
	KindATA KindEnum1 = "ATA"
	// KindCEF ...
	KindCEF KindEnum1 = "CEF"
	// KindExternalSecuritySolution ...
	KindExternalSecuritySolution KindEnum1 = "ExternalSecuritySolution"
)

func PossibleKindEnum1Values

func PossibleKindEnum1Values() []KindEnum1

PossibleKindEnum1Values returns an array of possible values for the KindEnum1 const type.

type Location

type Location struct {
	// Location - Location where the resource is stored
	Location *string `json:"location,omitempty"`
}

Location describes an Azure resource with location

type LocationsClient

type LocationsClient struct {
	BaseClient
}

LocationsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewLocationsClient

func NewLocationsClient(subscriptionID string, ascLocation string) LocationsClient

NewLocationsClient creates an instance of the LocationsClient client.

func NewLocationsClientWithBaseURI

func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) LocationsClient

NewLocationsClientWithBaseURI creates an instance of the LocationsClient client.

func (LocationsClient) Get

func (client LocationsClient) Get(ctx context.Context) (result AscLocation, err error)

Get details of a specific location

func (LocationsClient) GetPreparer

func (client LocationsClient) GetPreparer(ctx context.Context) (*http.Request, error)

GetPreparer prepares the Get request.

func (LocationsClient) GetResponder

func (client LocationsClient) GetResponder(resp *http.Response) (result AscLocation, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (LocationsClient) GetSender

func (client LocationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (LocationsClient) List

func (client LocationsClient) List(ctx context.Context) (result AscLocationListPage, err error)

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

func (LocationsClient) ListComplete

func (client LocationsClient) ListComplete(ctx context.Context) (result AscLocationListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (LocationsClient) ListPreparer

func (client LocationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (LocationsClient) ListResponder

func (client LocationsClient) ListResponder(resp *http.Response) (result AscLocationList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (LocationsClient) ListSender

func (client LocationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Operation

type Operation struct {
	// Name - Name of the operation
	Name *string `json:"name,omitempty"`
	// Origin - Where the operation is originated
	Origin  *string           `json:"origin,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation possible operation in the REST API of Microsoft.Security

type OperationDisplay

type OperationDisplay struct {
	// Provider - The resource provider for the operation.
	Provider *string `json:"provider,omitempty"`
	// Resource - The display name of the resource the operation applies to.
	Resource *string `json:"resource,omitempty"`
	// Operation - The display name of the security operation.
	Operation *string `json:"operation,omitempty"`
	// Description - The description of the operation.
	Description *string `json:"description,omitempty"`
}

OperationDisplay security operation display

type OperationList

type OperationList struct {
	autorest.Response `json:"-"`
	// Value - List of Security operations
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationList list of possible operations for Microsoft.Security resource provider

func (OperationList) IsEmpty

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator

type OperationListIterator struct {
	// contains filtered or unexported fields
}

OperationListIterator provides access to a complete listing of Operation values.

func (*OperationListIterator) Next

func (iter *OperationListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListIterator) NotDone

func (iter OperationListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListIterator) Response

func (iter OperationListIterator) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListIterator) Value

func (iter OperationListIterator) Value() Operation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListPage

type OperationListPage struct {
	// contains filtered or unexported fields
}

OperationListPage contains a page of Operation values.

func (*OperationListPage) Next

func (page *OperationListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListPage) NotDone

func (page OperationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListPage) Response

func (page OperationListPage) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListPage) Values

func (page OperationListPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewOperationsClient

func NewOperationsClient(subscriptionID string, ascLocation string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error)

List exposes all available operations for discovery purposes.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Pricing

type Pricing struct {
	autorest.Response `json:"-"`
	// PricingProperties - Pricing data
	*PricingProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

Pricing pricing tier will be applied for the scope based on the resource ID

func (Pricing) MarshalJSON

func (p Pricing) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Pricing.

func (*Pricing) UnmarshalJSON

func (p *Pricing) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Pricing struct.

type PricingList

type PricingList struct {
	autorest.Response `json:"-"`
	// Value - List of pricing configurations
	Value *[]Pricing `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

PricingList list of pricing configurations response

func (PricingList) IsEmpty

func (pl PricingList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PricingListIterator

type PricingListIterator struct {
	// contains filtered or unexported fields
}

PricingListIterator provides access to a complete listing of Pricing values.

func (*PricingListIterator) Next

func (iter *PricingListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (PricingListIterator) NotDone

func (iter PricingListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (PricingListIterator) Response

func (iter PricingListIterator) Response() PricingList

Response returns the raw server response from the last page request.

func (PricingListIterator) Value

func (iter PricingListIterator) Value() Pricing

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PricingListPage

type PricingListPage struct {
	// contains filtered or unexported fields
}

PricingListPage contains a page of Pricing values.

func (*PricingListPage) Next

func (page *PricingListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (PricingListPage) NotDone

func (page PricingListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PricingListPage) Response

func (page PricingListPage) Response() PricingList

Response returns the raw server response from the last page request.

func (PricingListPage) Values

func (page PricingListPage) Values() []Pricing

Values returns the slice of values for the current page or nil if there are no values.

type PricingProperties

type PricingProperties struct {
	// PricingTier - Pricing tier type. Possible values include: 'Free', 'Standard'
	PricingTier PricingTier `json:"pricingTier,omitempty"`
}

PricingProperties pricing data

type PricingTier

type PricingTier string

PricingTier enumerates the values for pricing tier.

const (
	// Free Get free Azure security center experience with basic security features
	Free PricingTier = "Free"
	// Standard Get the standard Azure security center experience with advanced security features
	Standard PricingTier = "Standard"
)

func PossiblePricingTierValues

func PossiblePricingTierValues() []PricingTier

PossiblePricingTierValues returns an array of possible values for the PricingTier const type.

type PricingsClient

type PricingsClient struct {
	BaseClient
}

PricingsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewPricingsClient

func NewPricingsClient(subscriptionID string, ascLocation string) PricingsClient

NewPricingsClient creates an instance of the PricingsClient client.

func NewPricingsClientWithBaseURI

func NewPricingsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) PricingsClient

NewPricingsClientWithBaseURI creates an instance of the PricingsClient client.

func (PricingsClient) CreateOrUpdateResourceGroupPricing

func (client PricingsClient) CreateOrUpdateResourceGroupPricing(ctx context.Context, resourceGroupName string, pricingName string, pricing Pricing) (result Pricing, err error)

CreateOrUpdateResourceGroupPricing security pricing configuration in the resource group Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. pricingName - name of the pricing configuration pricing - pricing object

func (PricingsClient) CreateOrUpdateResourceGroupPricingPreparer

func (client PricingsClient) CreateOrUpdateResourceGroupPricingPreparer(ctx context.Context, resourceGroupName string, pricingName string, pricing Pricing) (*http.Request, error)

CreateOrUpdateResourceGroupPricingPreparer prepares the CreateOrUpdateResourceGroupPricing request.

func (PricingsClient) CreateOrUpdateResourceGroupPricingResponder

func (client PricingsClient) CreateOrUpdateResourceGroupPricingResponder(resp *http.Response) (result Pricing, err error)

CreateOrUpdateResourceGroupPricingResponder handles the response to the CreateOrUpdateResourceGroupPricing request. The method always closes the http.Response Body.

func (PricingsClient) CreateOrUpdateResourceGroupPricingSender

func (client PricingsClient) CreateOrUpdateResourceGroupPricingSender(req *http.Request) (*http.Response, error)

CreateOrUpdateResourceGroupPricingSender sends the CreateOrUpdateResourceGroupPricing request. The method will close the http.Response Body if it receives an error.

func (PricingsClient) GetResourceGroupPricing

func (client PricingsClient) GetResourceGroupPricing(ctx context.Context, resourceGroupName string, pricingName string) (result Pricing, err error)

GetResourceGroupPricing security pricing configuration in the resource group Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. pricingName - name of the pricing configuration

func (PricingsClient) GetResourceGroupPricingPreparer

func (client PricingsClient) GetResourceGroupPricingPreparer(ctx context.Context, resourceGroupName string, pricingName string) (*http.Request, error)

GetResourceGroupPricingPreparer prepares the GetResourceGroupPricing request.

func (PricingsClient) GetResourceGroupPricingResponder

func (client PricingsClient) GetResourceGroupPricingResponder(resp *http.Response) (result Pricing, err error)

GetResourceGroupPricingResponder handles the response to the GetResourceGroupPricing request. The method always closes the http.Response Body.

func (PricingsClient) GetResourceGroupPricingSender

func (client PricingsClient) GetResourceGroupPricingSender(req *http.Request) (*http.Response, error)

GetResourceGroupPricingSender sends the GetResourceGroupPricing request. The method will close the http.Response Body if it receives an error.

func (PricingsClient) GetSubscriptionPricing

func (client PricingsClient) GetSubscriptionPricing(ctx context.Context, pricingName string) (result Pricing, err error)

GetSubscriptionPricing security pricing configuration in the subscriptionSecurity pricing configuration in the subscription Parameters: pricingName - name of the pricing configuration

func (PricingsClient) GetSubscriptionPricingPreparer

func (client PricingsClient) GetSubscriptionPricingPreparer(ctx context.Context, pricingName string) (*http.Request, error)

GetSubscriptionPricingPreparer prepares the GetSubscriptionPricing request.

func (PricingsClient) GetSubscriptionPricingResponder

func (client PricingsClient) GetSubscriptionPricingResponder(resp *http.Response) (result Pricing, err error)

GetSubscriptionPricingResponder handles the response to the GetSubscriptionPricing request. The method always closes the http.Response Body.

func (PricingsClient) GetSubscriptionPricingSender

func (client PricingsClient) GetSubscriptionPricingSender(req *http.Request) (*http.Response, error)

GetSubscriptionPricingSender sends the GetSubscriptionPricing request. The method will close the http.Response Body if it receives an error.

func (PricingsClient) List

func (client PricingsClient) List(ctx context.Context) (result PricingListPage, err error)

List security pricing configurations in the subscription

func (PricingsClient) ListByResourceGroup

func (client PricingsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result PricingListPage, err error)

ListByResourceGroup security pricing configurations in the resource group Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (PricingsClient) ListByResourceGroupComplete

func (client PricingsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result PricingListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (PricingsClient) ListByResourceGroupPreparer

func (client PricingsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (PricingsClient) ListByResourceGroupResponder

func (client PricingsClient) ListByResourceGroupResponder(resp *http.Response) (result PricingList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (PricingsClient) ListByResourceGroupSender

func (client PricingsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (PricingsClient) ListComplete

func (client PricingsClient) ListComplete(ctx context.Context) (result PricingListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (PricingsClient) ListPreparer

func (client PricingsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (PricingsClient) ListResponder

func (client PricingsClient) ListResponder(resp *http.Response) (result PricingList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (PricingsClient) ListSender

func (client PricingsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (PricingsClient) UpdateSubscriptionPricing

func (client PricingsClient) UpdateSubscriptionPricing(ctx context.Context, pricingName string, pricing Pricing) (result Pricing, err error)

UpdateSubscriptionPricing security pricing configuration in the subscription Parameters: pricingName - name of the pricing configuration pricing - pricing object

func (PricingsClient) UpdateSubscriptionPricingPreparer

func (client PricingsClient) UpdateSubscriptionPricingPreparer(ctx context.Context, pricingName string, pricing Pricing) (*http.Request, error)

UpdateSubscriptionPricingPreparer prepares the UpdateSubscriptionPricing request.

func (PricingsClient) UpdateSubscriptionPricingResponder

func (client PricingsClient) UpdateSubscriptionPricingResponder(resp *http.Response) (result Pricing, err error)

UpdateSubscriptionPricingResponder handles the response to the UpdateSubscriptionPricing request. The method always closes the http.Response Body.

func (PricingsClient) UpdateSubscriptionPricingSender

func (client PricingsClient) UpdateSubscriptionPricingSender(req *http.Request) (*http.Response, error)

UpdateSubscriptionPricingSender sends the UpdateSubscriptionPricing request. The method will close the http.Response Body if it receives an error.

type Protocol

type Protocol string

Protocol enumerates the values for protocol.

const (
	// All ...
	All Protocol = "*"
	// TCP ...
	TCP Protocol = "TCP"
	// UDP ...
	UDP Protocol = "UDP"
)

func PossibleProtocolValues

func PossibleProtocolValues() []Protocol

PossibleProtocolValues returns an array of possible values for the Protocol const type.

type Resource

type Resource struct {
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

Resource describes an Azure resource.

type SensitivityLabel

type SensitivityLabel struct {
	// DisplayName - The name of the sensitivity label.
	DisplayName *string `json:"displayName,omitempty"`
	// Order - The order of the sensitivity label.
	Order *float64 `json:"order,omitempty"`
	// Enabled - Indicates whether the label is enabled or not.
	Enabled *bool `json:"enabled,omitempty"`
}

SensitivityLabel the sensitivity label.

type Setting

type Setting struct {
	autorest.Response `json:"-"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
	// Kind - Possible values include: 'KindSetting', 'KindDataExportSetting'
	Kind KindEnum `json:"kind,omitempty"`
}

Setting represents a security setting in Azure Security Center.

func (Setting) AsBasicSetting

func (s Setting) AsBasicSetting() (BasicSetting, bool)

AsBasicSetting is the BasicSetting implementation for Setting.

func (Setting) AsDataExportSetting

func (s Setting) AsDataExportSetting() (*DataExportSetting, bool)

AsDataExportSetting is the BasicSetting implementation for Setting.

func (Setting) AsSetting

func (s Setting) AsSetting() (*Setting, bool)

AsSetting is the BasicSetting implementation for Setting.

func (Setting) MarshalJSON

func (s Setting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Setting.

type SettingKind

type SettingKind string

SettingKind enumerates the values for setting kind.

const (
	// SettingKindDataExportSetting ...
	SettingKindDataExportSetting SettingKind = "DataExportSetting"
)

func PossibleSettingKindValues

func PossibleSettingKindValues() []SettingKind

PossibleSettingKindValues returns an array of possible values for the SettingKind const type.

type SettingKind1

type SettingKind1 struct {
	// Kind - the kind of the settings string. Possible values include: 'SettingKindDataExportSetting'
	Kind SettingKind `json:"kind,omitempty"`
}

SettingKind1 the kind of the security setting

type SettingModel

type SettingModel struct {
	autorest.Response `json:"-"`
	Value             BasicSetting `json:"value,omitempty"`
}

SettingModel ...

func (*SettingModel) UnmarshalJSON

func (sm *SettingModel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SettingModel struct.

type SettingsClient

type SettingsClient struct {
	BaseClient
}

SettingsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewSettingsClient

func NewSettingsClient(subscriptionID string, ascLocation string) SettingsClient

NewSettingsClient creates an instance of the SettingsClient client.

func NewSettingsClientWithBaseURI

func NewSettingsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) SettingsClient

NewSettingsClientWithBaseURI creates an instance of the SettingsClient client.

func (SettingsClient) Get

func (client SettingsClient) Get(ctx context.Context, settingName string) (result SettingModel, err error)

Get settings of different configurations in security center Parameters: settingName - name of setting

func (SettingsClient) GetPreparer

func (client SettingsClient) GetPreparer(ctx context.Context, settingName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SettingsClient) GetResponder

func (client SettingsClient) GetResponder(resp *http.Response) (result SettingModel, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SettingsClient) GetSender

func (client SettingsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SettingsClient) List

func (client SettingsClient) List(ctx context.Context) (result SettingsListPage, err error)

List settings about different configurations in security center

func (SettingsClient) ListComplete

func (client SettingsClient) ListComplete(ctx context.Context) (result SettingsListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (SettingsClient) ListPreparer

func (client SettingsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (SettingsClient) ListResponder

func (client SettingsClient) ListResponder(resp *http.Response) (result SettingsList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (SettingsClient) ListSender

func (client SettingsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (SettingsClient) Update

func (client SettingsClient) Update(ctx context.Context, settingName string, setting BasicSetting) (result SettingModel, err error)

Update updating settings about different configurations in security center Parameters: settingName - name of setting setting - setting object

func (SettingsClient) UpdatePreparer

func (client SettingsClient) UpdatePreparer(ctx context.Context, settingName string, setting BasicSetting) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SettingsClient) UpdateResponder

func (client SettingsClient) UpdateResponder(resp *http.Response) (result SettingModel, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (SettingsClient) UpdateSender

func (client SettingsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type SettingsList

type SettingsList struct {
	autorest.Response `json:"-"`
	// Value - The settings list.
	Value *[]BasicSetting `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

SettingsList subscription settings list.

func (SettingsList) IsEmpty

func (sl SettingsList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (*SettingsList) UnmarshalJSON

func (sl *SettingsList) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SettingsList struct.

type SettingsListIterator

type SettingsListIterator struct {
	// contains filtered or unexported fields
}

SettingsListIterator provides access to a complete listing of Setting values.

func (*SettingsListIterator) Next

func (iter *SettingsListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (SettingsListIterator) NotDone

func (iter SettingsListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SettingsListIterator) Response

func (iter SettingsListIterator) Response() SettingsList

Response returns the raw server response from the last page request.

func (SettingsListIterator) Value

func (iter SettingsListIterator) Value() BasicSetting

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SettingsListPage

type SettingsListPage struct {
	// contains filtered or unexported fields
}

SettingsListPage contains a page of BasicSetting values.

func (*SettingsListPage) Next

func (page *SettingsListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (SettingsListPage) NotDone

func (page SettingsListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SettingsListPage) Response

func (page SettingsListPage) Response() SettingsList

Response returns the raw server response from the last page request.

func (SettingsListPage) Values

func (page SettingsListPage) Values() []BasicSetting

Values returns the slice of values for the current page or nil if there are no values.

type Status

type Status string

Status enumerates the values for status.

const (
	// Initiated ...
	Initiated Status = "Initiated"
	// Revoked ...
	Revoked Status = "Revoked"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type StatusReason

type StatusReason string

StatusReason enumerates the values for status reason.

const (
	// Expired ...
	Expired StatusReason = "Expired"
	// NewerRequestInitiated ...
	NewerRequestInitiated StatusReason = "NewerRequestInitiated"
	// UserRequested ...
	UserRequested StatusReason = "UserRequested"
)

func PossibleStatusReasonValues

func PossibleStatusReasonValues() []StatusReason

PossibleStatusReasonValues returns an array of possible values for the StatusReason const type.

type Task

type Task struct {
	autorest.Response `json:"-"`
	*TaskProperties   `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

Task security task that we recommend to do in order to strengthen security

func (Task) MarshalJSON

func (t Task) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Task.

func (*Task) UnmarshalJSON

func (t *Task) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Task struct.

type TaskList

type TaskList struct {
	autorest.Response `json:"-"`
	Value             *[]Task `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

TaskList list of security task recommendations

func (TaskList) IsEmpty

func (tl TaskList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TaskListIterator

type TaskListIterator struct {
	// contains filtered or unexported fields
}

TaskListIterator provides access to a complete listing of Task values.

func (*TaskListIterator) Next

func (iter *TaskListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (TaskListIterator) NotDone

func (iter TaskListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (TaskListIterator) Response

func (iter TaskListIterator) Response() TaskList

Response returns the raw server response from the last page request.

func (TaskListIterator) Value

func (iter TaskListIterator) Value() Task

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type TaskListPage

type TaskListPage struct {
	// contains filtered or unexported fields
}

TaskListPage contains a page of Task values.

func (*TaskListPage) Next

func (page *TaskListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (TaskListPage) NotDone

func (page TaskListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (TaskListPage) Response

func (page TaskListPage) Response() TaskList

Response returns the raw server response from the last page request.

func (TaskListPage) Values

func (page TaskListPage) Values() []Task

Values returns the slice of values for the current page or nil if there are no values.

type TaskParameters

type TaskParameters struct {
	// AdditionalProperties - Unmatched properties from the message are deserialized this collection
	AdditionalProperties map[string]interface{} `json:""`
	// Name - Name of the task type
	Name *string `json:"name,omitempty"`
}

TaskParameters changing set of properties, depending on the task type that is derived from the name field

func (TaskParameters) MarshalJSON

func (tp TaskParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TaskParameters.

func (*TaskParameters) UnmarshalJSON

func (tp *TaskParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TaskParameters struct.

type TaskProperties

type TaskProperties struct {
	// State - State of the task (Active, Resolved etc.)
	State *string `json:"state,omitempty"`
	// CreationTimeUtc - The time this task was discovered in UTC
	CreationTimeUtc        *date.Time      `json:"creationTimeUtc,omitempty"`
	SecurityTaskParameters *TaskParameters `json:"securityTaskParameters,omitempty"`
	// LastStateChangeTimeUtc - The time this task's details were last changed in UTC
	LastStateChangeTimeUtc *date.Time `json:"lastStateChangeTimeUtc,omitempty"`
	// SubState - Additional data on the state of the task
	SubState *string `json:"subState,omitempty"`
}

TaskProperties describes properties of a task.

type TasksClient

type TasksClient struct {
	BaseClient
}

TasksClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewTasksClient

func NewTasksClient(subscriptionID string, ascLocation string) TasksClient

NewTasksClient creates an instance of the TasksClient client.

func NewTasksClientWithBaseURI

func NewTasksClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) TasksClient

NewTasksClientWithBaseURI creates an instance of the TasksClient client.

func (TasksClient) GetResourceGroupLevelTask

func (client TasksClient) GetResourceGroupLevelTask(ctx context.Context, resourceGroupName string, taskName string) (result Task, err error)

GetResourceGroupLevelTask recommended tasks that will help improve the security of the subscription proactively Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. taskName - name of the task object, will be a GUID

func (TasksClient) GetResourceGroupLevelTaskPreparer

func (client TasksClient) GetResourceGroupLevelTaskPreparer(ctx context.Context, resourceGroupName string, taskName string) (*http.Request, error)

GetResourceGroupLevelTaskPreparer prepares the GetResourceGroupLevelTask request.

func (TasksClient) GetResourceGroupLevelTaskResponder

func (client TasksClient) GetResourceGroupLevelTaskResponder(resp *http.Response) (result Task, err error)

GetResourceGroupLevelTaskResponder handles the response to the GetResourceGroupLevelTask request. The method always closes the http.Response Body.

func (TasksClient) GetResourceGroupLevelTaskSender

func (client TasksClient) GetResourceGroupLevelTaskSender(req *http.Request) (*http.Response, error)

GetResourceGroupLevelTaskSender sends the GetResourceGroupLevelTask request. The method will close the http.Response Body if it receives an error.

func (TasksClient) GetSubscriptionLevelTask

func (client TasksClient) GetSubscriptionLevelTask(ctx context.Context, taskName string) (result Task, err error)

GetSubscriptionLevelTask recommended tasks that will help improve the security of the subscription proactively Parameters: taskName - name of the task object, will be a GUID

func (TasksClient) GetSubscriptionLevelTaskPreparer

func (client TasksClient) GetSubscriptionLevelTaskPreparer(ctx context.Context, taskName string) (*http.Request, error)

GetSubscriptionLevelTaskPreparer prepares the GetSubscriptionLevelTask request.

func (TasksClient) GetSubscriptionLevelTaskResponder

func (client TasksClient) GetSubscriptionLevelTaskResponder(resp *http.Response) (result Task, err error)

GetSubscriptionLevelTaskResponder handles the response to the GetSubscriptionLevelTask request. The method always closes the http.Response Body.

func (TasksClient) GetSubscriptionLevelTaskSender

func (client TasksClient) GetSubscriptionLevelTaskSender(req *http.Request) (*http.Response, error)

GetSubscriptionLevelTaskSender sends the GetSubscriptionLevelTask request. The method will close the http.Response Body if it receives an error.

func (TasksClient) List

func (client TasksClient) List(ctx context.Context, filter string) (result TaskListPage, err error)

List recommended tasks that will help improve the security of the subscription proactively Parameters: filter - oData filter. Optional.

func (TasksClient) ListByHomeRegion

func (client TasksClient) ListByHomeRegion(ctx context.Context, filter string) (result TaskListPage, err error)

ListByHomeRegion recommended tasks that will help improve the security of the subscription proactively Parameters: filter - oData filter. Optional.

func (TasksClient) ListByHomeRegionComplete

func (client TasksClient) ListByHomeRegionComplete(ctx context.Context, filter string) (result TaskListIterator, err error)

ListByHomeRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (TasksClient) ListByHomeRegionPreparer

func (client TasksClient) ListByHomeRegionPreparer(ctx context.Context, filter string) (*http.Request, error)

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (TasksClient) ListByHomeRegionResponder

func (client TasksClient) ListByHomeRegionResponder(resp *http.Response) (result TaskList, err error)

ListByHomeRegionResponder handles the response to the ListByHomeRegion request. The method always closes the http.Response Body.

func (TasksClient) ListByHomeRegionSender

func (client TasksClient) ListByHomeRegionSender(req *http.Request) (*http.Response, error)

ListByHomeRegionSender sends the ListByHomeRegion request. The method will close the http.Response Body if it receives an error.

func (TasksClient) ListByResourceGroup

func (client TasksClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result TaskListPage, err error)

ListByResourceGroup recommended tasks that will help improve the security of the subscription proactively Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. filter - oData filter. Optional.

func (TasksClient) ListByResourceGroupComplete

func (client TasksClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string) (result TaskListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (TasksClient) ListByResourceGroupPreparer

func (client TasksClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (TasksClient) ListByResourceGroupResponder

func (client TasksClient) ListByResourceGroupResponder(resp *http.Response) (result TaskList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (TasksClient) ListByResourceGroupSender

func (client TasksClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (TasksClient) ListComplete

func (client TasksClient) ListComplete(ctx context.Context, filter string) (result TaskListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (TasksClient) ListPreparer

func (client TasksClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (TasksClient) ListResponder

func (client TasksClient) ListResponder(resp *http.Response) (result TaskList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (TasksClient) ListSender

func (client TasksClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (TasksClient) UpdateResourceGroupLevelTaskState

func (client TasksClient) UpdateResourceGroupLevelTaskState(ctx context.Context, resourceGroupName string, taskName string, taskUpdateActionType string) (result autorest.Response, err error)

UpdateResourceGroupLevelTaskState recommended tasks that will help improve the security of the subscription proactively Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. taskName - name of the task object, will be a GUID taskUpdateActionType - type of the action to do on the task

func (TasksClient) UpdateResourceGroupLevelTaskStatePreparer

func (client TasksClient) UpdateResourceGroupLevelTaskStatePreparer(ctx context.Context, resourceGroupName string, taskName string, taskUpdateActionType string) (*http.Request, error)

UpdateResourceGroupLevelTaskStatePreparer prepares the UpdateResourceGroupLevelTaskState request.

func (TasksClient) UpdateResourceGroupLevelTaskStateResponder

func (client TasksClient) UpdateResourceGroupLevelTaskStateResponder(resp *http.Response) (result autorest.Response, err error)

UpdateResourceGroupLevelTaskStateResponder handles the response to the UpdateResourceGroupLevelTaskState request. The method always closes the http.Response Body.

func (TasksClient) UpdateResourceGroupLevelTaskStateSender

func (client TasksClient) UpdateResourceGroupLevelTaskStateSender(req *http.Request) (*http.Response, error)

UpdateResourceGroupLevelTaskStateSender sends the UpdateResourceGroupLevelTaskState request. The method will close the http.Response Body if it receives an error.

func (TasksClient) UpdateSubscriptionLevelTaskState

func (client TasksClient) UpdateSubscriptionLevelTaskState(ctx context.Context, taskName string, taskUpdateActionType string) (result autorest.Response, err error)

UpdateSubscriptionLevelTaskState recommended tasks that will help improve the security of the subscription proactively Parameters: taskName - name of the task object, will be a GUID taskUpdateActionType - type of the action to do on the task

func (TasksClient) UpdateSubscriptionLevelTaskStatePreparer

func (client TasksClient) UpdateSubscriptionLevelTaskStatePreparer(ctx context.Context, taskName string, taskUpdateActionType string) (*http.Request, error)

UpdateSubscriptionLevelTaskStatePreparer prepares the UpdateSubscriptionLevelTaskState request.

func (TasksClient) UpdateSubscriptionLevelTaskStateResponder

func (client TasksClient) UpdateSubscriptionLevelTaskStateResponder(resp *http.Response) (result autorest.Response, err error)

UpdateSubscriptionLevelTaskStateResponder handles the response to the UpdateSubscriptionLevelTaskState request. The method always closes the http.Response Body.

func (TasksClient) UpdateSubscriptionLevelTaskStateSender

func (client TasksClient) UpdateSubscriptionLevelTaskStateSender(req *http.Request) (*http.Response, error)

UpdateSubscriptionLevelTaskStateSender sends the UpdateSubscriptionLevelTaskState request. The method will close the http.Response Body if it receives an error.

type TopologyClient

type TopologyClient struct {
	BaseClient
}

TopologyClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewTopologyClient

func NewTopologyClient(subscriptionID string, ascLocation string) TopologyClient

NewTopologyClient creates an instance of the TopologyClient client.

func NewTopologyClientWithBaseURI

func NewTopologyClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) TopologyClient

NewTopologyClientWithBaseURI creates an instance of the TopologyClient client.

func (TopologyClient) Get

func (client TopologyClient) Get(ctx context.Context, resourceGroupName string, topologyResourceName string) (result TopologyResource, err error)

Get gets a specific topology component. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. topologyResourceName - name of a topology resources collection.

func (TopologyClient) GetPreparer

func (client TopologyClient) GetPreparer(ctx context.Context, resourceGroupName string, topologyResourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (TopologyClient) GetResponder

func (client TopologyClient) GetResponder(resp *http.Response) (result TopologyResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (TopologyClient) GetSender

func (client TopologyClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (TopologyClient) List

func (client TopologyClient) List(ctx context.Context) (result TopologyListPage, err error)

List gets a list that allows to build a topology view of a subscription.

func (TopologyClient) ListByHomeRegion

func (client TopologyClient) ListByHomeRegion(ctx context.Context) (result TopologyListPage, err error)

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

func (TopologyClient) ListByHomeRegionComplete

func (client TopologyClient) ListByHomeRegionComplete(ctx context.Context) (result TopologyListIterator, err error)

ListByHomeRegionComplete enumerates all values, automatically crossing page boundaries as required.

func (TopologyClient) ListByHomeRegionPreparer

func (client TopologyClient) ListByHomeRegionPreparer(ctx context.Context) (*http.Request, error)

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (TopologyClient) ListByHomeRegionResponder

func (client TopologyClient) ListByHomeRegionResponder(resp *http.Response) (result TopologyList, err error)

ListByHomeRegionResponder handles the response to the ListByHomeRegion request. The method always closes the http.Response Body.

func (TopologyClient) ListByHomeRegionSender

func (client TopologyClient) ListByHomeRegionSender(req *http.Request) (*http.Response, error)

ListByHomeRegionSender sends the ListByHomeRegion request. The method will close the http.Response Body if it receives an error.

func (TopologyClient) ListComplete

func (client TopologyClient) ListComplete(ctx context.Context) (result TopologyListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (TopologyClient) ListPreparer

func (client TopologyClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (TopologyClient) ListResponder

func (client TopologyClient) ListResponder(resp *http.Response) (result TopologyList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (TopologyClient) ListSender

func (client TopologyClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type TopologyList

type TopologyList struct {
	autorest.Response `json:"-"`
	Value             *[]TopologyResource `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

TopologyList ...

func (TopologyList) IsEmpty

func (tl TopologyList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TopologyListIterator

type TopologyListIterator struct {
	// contains filtered or unexported fields
}

TopologyListIterator provides access to a complete listing of TopologyResource values.

func (*TopologyListIterator) Next

func (iter *TopologyListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (TopologyListIterator) NotDone

func (iter TopologyListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (TopologyListIterator) Response

func (iter TopologyListIterator) Response() TopologyList

Response returns the raw server response from the last page request.

func (TopologyListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type TopologyListPage

type TopologyListPage struct {
	// contains filtered or unexported fields
}

TopologyListPage contains a page of TopologyResource values.

func (*TopologyListPage) Next

func (page *TopologyListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (TopologyListPage) NotDone

func (page TopologyListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (TopologyListPage) Response

func (page TopologyListPage) Response() TopologyList

Response returns the raw server response from the last page request.

func (TopologyListPage) Values

func (page TopologyListPage) Values() []TopologyResource

Values returns the slice of values for the current page or nil if there are no values.

type TopologyResource

type TopologyResource struct {
	autorest.Response `json:"-"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
	// Location - Location where the resource is stored
	Location                    *string `json:"location,omitempty"`
	*TopologyResourceProperties `json:"properties,omitempty"`
}

TopologyResource ...

func (TopologyResource) MarshalJSON

func (tr TopologyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TopologyResource.

func (*TopologyResource) UnmarshalJSON

func (tr *TopologyResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TopologyResource struct.

type TopologyResourceProperties

type TopologyResourceProperties struct {
	// CalculatedDateTime - The UTC time on which the topology was calculated
	CalculatedDateTime *date.Time `json:"calculatedDateTime,omitempty"`
	// TopologyResources - Azure resources which are part of this topology resource
	TopologyResources *[]TopologySingleResource `json:"topologyResources,omitempty"`
}

TopologyResourceProperties ...

type TopologySingleResource

type TopologySingleResource struct {
	// ResourceID - Azure resource id
	ResourceID *string `json:"resourceId,omitempty"`
	// Severity - The security severity of the resource
	Severity *string `json:"severity,omitempty"`
	// RecommendationsExist - Indicates if the resource has security recommendations
	RecommendationsExist *bool `json:"recommendationsExist,omitempty"`
	// NetworkZones - Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.)
	NetworkZones *string `json:"networkZones,omitempty"`
	// TopologyScore - Score of the resource based on its security severity
	TopologyScore *int32 `json:"topologyScore,omitempty"`
	// Location - The location of this resource
	Location *string `json:"location,omitempty"`
	// Parents - Azure resources connected to this resource which are in higher level in the topology view
	Parents *[]TopologySingleResourceParent `json:"parents,omitempty"`
	// Children - Azure resources connected to this resource which are in lower level in the topology view
	Children *[]TopologySingleResourceChild `json:"children,omitempty"`
}

TopologySingleResource ...

type TopologySingleResourceChild

type TopologySingleResourceChild struct {
	// ResourceID - Azure resource id which serves as child resource in topology view
	ResourceID *string `json:"resourceId,omitempty"`
}

TopologySingleResourceChild ...

type TopologySingleResourceParent

type TopologySingleResourceParent struct {
	// ResourceID - Azure resource id which serves as parent resource in topology view
	ResourceID *string `json:"resourceId,omitempty"`
}

TopologySingleResourceParent ...

type WorkspaceSetting

type WorkspaceSetting struct {
	autorest.Response `json:"-"`
	// WorkspaceSettingProperties - Workspace setting data
	*WorkspaceSettingProperties `json:"properties,omitempty"`
	// ID - Resource Id
	ID *string `json:"id,omitempty"`
	// Name - Resource name
	Name *string `json:"name,omitempty"`
	// Type - Resource type
	Type *string `json:"type,omitempty"`
}

WorkspaceSetting configures where to store the OMS agent data for workspaces under a scope

func (WorkspaceSetting) MarshalJSON

func (ws WorkspaceSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WorkspaceSetting.

func (*WorkspaceSetting) UnmarshalJSON

func (ws *WorkspaceSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WorkspaceSetting struct.

type WorkspaceSettingList

type WorkspaceSettingList struct {
	autorest.Response `json:"-"`
	// Value - List of workspace settings
	Value *[]WorkspaceSetting `json:"value,omitempty"`
	// NextLink - The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

WorkspaceSettingList list of workspace settings response

func (WorkspaceSettingList) IsEmpty

func (wsl WorkspaceSettingList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type WorkspaceSettingListIterator

type WorkspaceSettingListIterator struct {
	// contains filtered or unexported fields
}

WorkspaceSettingListIterator provides access to a complete listing of WorkspaceSetting values.

func (*WorkspaceSettingListIterator) Next

func (iter *WorkspaceSettingListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (WorkspaceSettingListIterator) NotDone

func (iter WorkspaceSettingListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (WorkspaceSettingListIterator) Response

Response returns the raw server response from the last page request.

func (WorkspaceSettingListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type WorkspaceSettingListPage

type WorkspaceSettingListPage struct {
	// contains filtered or unexported fields
}

WorkspaceSettingListPage contains a page of WorkspaceSetting values.

func (*WorkspaceSettingListPage) Next

func (page *WorkspaceSettingListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (WorkspaceSettingListPage) NotDone

func (page WorkspaceSettingListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (WorkspaceSettingListPage) Response

Response returns the raw server response from the last page request.

func (WorkspaceSettingListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type WorkspaceSettingProperties

type WorkspaceSettingProperties struct {
	// WorkspaceID - The full Azure ID of the workspace to save the data in
	WorkspaceID *string `json:"workspaceId,omitempty"`
	// Scope - All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope
	Scope *string `json:"scope,omitempty"`
}

WorkspaceSettingProperties workspace setting data

type WorkspaceSettingsClient

type WorkspaceSettingsClient struct {
	BaseClient
}

WorkspaceSettingsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider

func NewWorkspaceSettingsClient

func NewWorkspaceSettingsClient(subscriptionID string, ascLocation string) WorkspaceSettingsClient

NewWorkspaceSettingsClient creates an instance of the WorkspaceSettingsClient client.

func NewWorkspaceSettingsClientWithBaseURI

func NewWorkspaceSettingsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) WorkspaceSettingsClient

NewWorkspaceSettingsClientWithBaseURI creates an instance of the WorkspaceSettingsClient client.

func (WorkspaceSettingsClient) Create

func (client WorkspaceSettingsClient) Create(ctx context.Context, workspaceSettingName string, workspaceSetting WorkspaceSetting) (result WorkspaceSetting, err error)

Create creating settings about where we should store your security data and logs Parameters: workspaceSettingName - name of the security setting workspaceSetting - security data setting object

func (WorkspaceSettingsClient) CreatePreparer

func (client WorkspaceSettingsClient) CreatePreparer(ctx context.Context, workspaceSettingName string, workspaceSetting WorkspaceSetting) (*http.Request, error)

CreatePreparer prepares the Create request.

func (WorkspaceSettingsClient) CreateResponder

func (client WorkspaceSettingsClient) CreateResponder(resp *http.Response) (result WorkspaceSetting, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (WorkspaceSettingsClient) CreateSender

func (client WorkspaceSettingsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (WorkspaceSettingsClient) Delete

func (client WorkspaceSettingsClient) Delete(ctx context.Context, workspaceSettingName string) (result autorest.Response, err error)

Delete deletes the custom workspace settings for this subscription. new VMs will report to the default workspace Parameters: workspaceSettingName - name of the security setting

func (WorkspaceSettingsClient) DeletePreparer

func (client WorkspaceSettingsClient) DeletePreparer(ctx context.Context, workspaceSettingName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (WorkspaceSettingsClient) DeleteResponder

func (client WorkspaceSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (WorkspaceSettingsClient) DeleteSender

func (client WorkspaceSettingsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (WorkspaceSettingsClient) Get

func (client WorkspaceSettingsClient) Get(ctx context.Context, workspaceSettingName string) (result WorkspaceSetting, err error)

Get settings about where we should store your security data and logs Parameters: workspaceSettingName - name of the security setting

func (WorkspaceSettingsClient) GetPreparer

func (client WorkspaceSettingsClient) GetPreparer(ctx context.Context, workspaceSettingName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (WorkspaceSettingsClient) GetResponder

func (client WorkspaceSettingsClient) GetResponder(resp *http.Response) (result WorkspaceSetting, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (WorkspaceSettingsClient) GetSender

func (client WorkspaceSettingsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (WorkspaceSettingsClient) List

func (client WorkspaceSettingsClient) List(ctx context.Context) (result WorkspaceSettingListPage, err error)

List settings about where we should store your security data and logs

func (WorkspaceSettingsClient) ListComplete

func (client WorkspaceSettingsClient) ListComplete(ctx context.Context) (result WorkspaceSettingListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (WorkspaceSettingsClient) ListPreparer

func (client WorkspaceSettingsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (WorkspaceSettingsClient) ListResponder

func (client WorkspaceSettingsClient) ListResponder(resp *http.Response) (result WorkspaceSettingList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (WorkspaceSettingsClient) ListSender

func (client WorkspaceSettingsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (WorkspaceSettingsClient) Update

func (client WorkspaceSettingsClient) Update(ctx context.Context, workspaceSettingName string, workspaceSetting WorkspaceSetting) (result WorkspaceSetting, err error)

Update settings about where we should store your security data and logs Parameters: workspaceSettingName - name of the security setting workspaceSetting - security data setting object

func (WorkspaceSettingsClient) UpdatePreparer

func (client WorkspaceSettingsClient) UpdatePreparer(ctx context.Context, workspaceSettingName string, workspaceSetting WorkspaceSetting) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (WorkspaceSettingsClient) UpdateResponder

func (client WorkspaceSettingsClient) UpdateResponder(resp *http.Response) (result WorkspaceSetting, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (WorkspaceSettingsClient) UpdateSender

func (client WorkspaceSettingsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL