Back to godoc.org
github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v2.0/security

package security

v44.0.0+incompatible
Latest Go to latest
Published: 2 days ago | License: Apache-2.0 | Module: github.com/Azure/azure-sdk-for-go

Overview

Package security implements the Azure ARM Security service API version .

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

Index

Constants

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

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.

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 - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; Location where the resource is stored
	Location *string `json:"location,omitempty"`
	// Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
	Kind KindEnum `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 Action

type Action string

Action enumerates the values for action.

const (
	// Add ...
	Add Action = "Add"
	// Recommended ...
	Recommended Action = "Recommended"
	// Remove ...
	Remove Action = "Remove"
)

func PossibleActionValues

func PossibleActionValues() []Action

PossibleActionValues returns an array of possible values for the Action const type.

type ActionType

type ActionType string

ActionType enumerates the values for action type.

const (
	// ActionTypeAutomationAction ...
	ActionTypeAutomationAction ActionType = "AutomationAction"
	// ActionTypeEventHub ...
	ActionTypeEventHub ActionType = "EventHub"
	// ActionTypeLogicApp ...
	ActionTypeLogicApp ActionType = "LogicApp"
	// ActionTypeWorkspace ...
	ActionTypeWorkspace ActionType = "Workspace"
)

func PossibleActionTypeValues

func PossibleActionTypeValues() []ActionType

PossibleActionTypeValues returns an array of possible values for the ActionType const type.

type AdaptiveApplicationControlsClient

type AdaptiveApplicationControlsClient struct {
	BaseClient
}

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

func NewAdaptiveApplicationControlsClient

func NewAdaptiveApplicationControlsClient(subscriptionID string, ascLocation string) AdaptiveApplicationControlsClient

NewAdaptiveApplicationControlsClient creates an instance of the AdaptiveApplicationControlsClient client.

func NewAdaptiveApplicationControlsClientWithBaseURI

func NewAdaptiveApplicationControlsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AdaptiveApplicationControlsClient

NewAdaptiveApplicationControlsClientWithBaseURI creates an instance of the AdaptiveApplicationControlsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AdaptiveApplicationControlsClient) Delete

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

Delete delete an application control VM/server group Parameters: groupName - name of an application control VM/server group

func (AdaptiveApplicationControlsClient) DeletePreparer

func (client AdaptiveApplicationControlsClient) DeletePreparer(ctx context.Context, groupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AdaptiveApplicationControlsClient) DeleteResponder

func (client AdaptiveApplicationControlsClient) 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 (AdaptiveApplicationControlsClient) DeleteSender

func (client AdaptiveApplicationControlsClient) 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 (AdaptiveApplicationControlsClient) Get

func (client AdaptiveApplicationControlsClient) Get(ctx context.Context, groupName string) (result AppWhitelistingGroup, err error)

Get gets an application control VM/server group. Parameters: groupName - name of an application control VM/server group

func (AdaptiveApplicationControlsClient) GetPreparer

func (client AdaptiveApplicationControlsClient) GetPreparer(ctx context.Context, groupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AdaptiveApplicationControlsClient) GetResponder

func (client AdaptiveApplicationControlsClient) GetResponder(resp *http.Response) (result AppWhitelistingGroup, err error)

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

func (AdaptiveApplicationControlsClient) GetSender

func (client AdaptiveApplicationControlsClient) 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 (AdaptiveApplicationControlsClient) List

func (client AdaptiveApplicationControlsClient) List(ctx context.Context, includePathRecommendations *bool, summary *bool) (result AppWhitelistingGroups, err error)

List gets a list of application control VM/server groups for the subscription. Parameters: includePathRecommendations - include the policy rules summary - return output in a summarized form

func (AdaptiveApplicationControlsClient) ListPreparer

func (client AdaptiveApplicationControlsClient) ListPreparer(ctx context.Context, includePathRecommendations *bool, summary *bool) (*http.Request, error)

ListPreparer prepares the List request.

func (AdaptiveApplicationControlsClient) ListResponder

func (client AdaptiveApplicationControlsClient) ListResponder(resp *http.Response) (result AppWhitelistingGroups, err error)

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

func (AdaptiveApplicationControlsClient) ListSender

func (client AdaptiveApplicationControlsClient) 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 (AdaptiveApplicationControlsClient) Put

func (client AdaptiveApplicationControlsClient) Put(ctx context.Context, groupName string, body AppWhitelistingPutGroupData) (result AppWhitelistingGroup, err error)

Put update an application control VM/server group Parameters: groupName - name of an application control VM/server group body - the updated VM/server group data

func (AdaptiveApplicationControlsClient) PutPreparer

func (client AdaptiveApplicationControlsClient) PutPreparer(ctx context.Context, groupName string, body AppWhitelistingPutGroupData) (*http.Request, error)

PutPreparer prepares the Put request.

func (AdaptiveApplicationControlsClient) PutResponder

func (client AdaptiveApplicationControlsClient) PutResponder(resp *http.Response) (result AppWhitelistingGroup, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (AdaptiveApplicationControlsClient) PutSender

func (client AdaptiveApplicationControlsClient) PutSender(req *http.Request) (*http.Response, error)

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

type AdaptiveNetworkHardening

type AdaptiveNetworkHardening struct {
	autorest.Response `json:"-"`
	// AdaptiveNetworkHardeningProperties - Properties of the Adaptive Network Hardening resource
	*AdaptiveNetworkHardeningProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

AdaptiveNetworkHardening the resource whose properties describes the Adaptive Network Hardening settings for some Azure resource

func (AdaptiveNetworkHardening) MarshalJSON

func (anh AdaptiveNetworkHardening) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AdaptiveNetworkHardening.

func (*AdaptiveNetworkHardening) UnmarshalJSON

func (anh *AdaptiveNetworkHardening) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AdaptiveNetworkHardening struct.

type AdaptiveNetworkHardeningEnforceRequest

type AdaptiveNetworkHardeningEnforceRequest struct {
	// Rules - The rules to enforce
	Rules *[]Rule `json:"rules,omitempty"`
	// NetworkSecurityGroups - The Azure resource IDs of the effective network security groups that will be updated with the created security rules from the Adaptive Network Hardening rules
	NetworkSecurityGroups *[]string `json:"networkSecurityGroups,omitempty"`
}

AdaptiveNetworkHardeningEnforceRequest ...

type AdaptiveNetworkHardeningProperties

type AdaptiveNetworkHardeningProperties struct {
	// Rules - The security rules which are recommended to be effective on the VM
	Rules *[]Rule `json:"rules,omitempty"`
	// RulesCalculationTime - The UTC time on which the rules were calculated
	RulesCalculationTime *date.Time `json:"rulesCalculationTime,omitempty"`
	// EffectiveNetworkSecurityGroups - The Network Security Groups effective on the network interfaces of the protected resource
	EffectiveNetworkSecurityGroups *[]EffectiveNetworkSecurityGroups `json:"effectiveNetworkSecurityGroups,omitempty"`
}

AdaptiveNetworkHardeningProperties adaptive Network Hardening resource properties

type AdaptiveNetworkHardeningsClient

type AdaptiveNetworkHardeningsClient struct {
	BaseClient
}

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

func NewAdaptiveNetworkHardeningsClient

func NewAdaptiveNetworkHardeningsClient(subscriptionID string, ascLocation string) AdaptiveNetworkHardeningsClient

NewAdaptiveNetworkHardeningsClient creates an instance of the AdaptiveNetworkHardeningsClient client.

func NewAdaptiveNetworkHardeningsClientWithBaseURI

func NewAdaptiveNetworkHardeningsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AdaptiveNetworkHardeningsClient

NewAdaptiveNetworkHardeningsClientWithBaseURI creates an instance of the AdaptiveNetworkHardeningsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AdaptiveNetworkHardeningsClient) Enforce

func (client AdaptiveNetworkHardeningsClient) Enforce(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string, body AdaptiveNetworkHardeningEnforceRequest) (result AdaptiveNetworkHardeningsEnforceFuture, err error)

Enforce enforces the given rules on the NSG(s) listed in the request Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. adaptiveNetworkHardeningResourceName - the name of the Adaptive Network Hardening resource.

func (AdaptiveNetworkHardeningsClient) EnforcePreparer

func (client AdaptiveNetworkHardeningsClient) EnforcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string, body AdaptiveNetworkHardeningEnforceRequest) (*http.Request, error)

EnforcePreparer prepares the Enforce request.

func (AdaptiveNetworkHardeningsClient) EnforceResponder

func (client AdaptiveNetworkHardeningsClient) EnforceResponder(resp *http.Response) (result autorest.Response, err error)

EnforceResponder handles the response to the Enforce request. The method always closes the http.Response Body.

func (AdaptiveNetworkHardeningsClient) EnforceSender

func (client AdaptiveNetworkHardeningsClient) EnforceSender(req *http.Request) (future AdaptiveNetworkHardeningsEnforceFuture, err error)

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

func (AdaptiveNetworkHardeningsClient) Get

func (client AdaptiveNetworkHardeningsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string) (result AdaptiveNetworkHardening, err error)

Get gets a single Adaptive Network Hardening resource Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. adaptiveNetworkHardeningResourceName - the name of the Adaptive Network Hardening resource.

func (AdaptiveNetworkHardeningsClient) GetPreparer

func (client AdaptiveNetworkHardeningsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AdaptiveNetworkHardeningsClient) GetResponder

func (client AdaptiveNetworkHardeningsClient) GetResponder(resp *http.Response) (result AdaptiveNetworkHardening, err error)

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

func (AdaptiveNetworkHardeningsClient) GetSender

func (client AdaptiveNetworkHardeningsClient) 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 (AdaptiveNetworkHardeningsClient) ListByExtendedResource

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResource(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (result AdaptiveNetworkHardeningsListPage, err error)

ListByExtendedResource gets a list of Adaptive Network Hardenings resources in scope of an extended resource. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource.

func (AdaptiveNetworkHardeningsClient) ListByExtendedResourceComplete

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (result AdaptiveNetworkHardeningsListIterator, err error)

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

func (AdaptiveNetworkHardeningsClient) ListByExtendedResourcePreparer

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (*http.Request, error)

ListByExtendedResourcePreparer prepares the ListByExtendedResource request.

func (AdaptiveNetworkHardeningsClient) ListByExtendedResourceResponder

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourceResponder(resp *http.Response) (result AdaptiveNetworkHardeningsList, err error)

ListByExtendedResourceResponder handles the response to the ListByExtendedResource request. The method always closes the http.Response Body.

func (AdaptiveNetworkHardeningsClient) ListByExtendedResourceSender

func (client AdaptiveNetworkHardeningsClient) ListByExtendedResourceSender(req *http.Request) (*http.Response, error)

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

type AdaptiveNetworkHardeningsEnforceFuture

type AdaptiveNetworkHardeningsEnforceFuture struct {
	azure.Future
}

AdaptiveNetworkHardeningsEnforceFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AdaptiveNetworkHardeningsEnforceFuture) Result

func (future *AdaptiveNetworkHardeningsEnforceFuture) Result(client AdaptiveNetworkHardeningsClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type AdaptiveNetworkHardeningsList

type AdaptiveNetworkHardeningsList struct {
	autorest.Response `json:"-"`
	// Value - A list of Adaptive Network Hardenings resources
	Value *[]AdaptiveNetworkHardening `json:"value,omitempty"`
	// NextLink - The URL to get the next set of results
	NextLink *string `json:"nextLink,omitempty"`
}

AdaptiveNetworkHardeningsList response for ListAdaptiveNetworkHardenings API service call

func (AdaptiveNetworkHardeningsList) IsEmpty

func (anhl AdaptiveNetworkHardeningsList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AdaptiveNetworkHardeningsListIterator

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

AdaptiveNetworkHardeningsListIterator provides access to a complete listing of AdaptiveNetworkHardening values.

func NewAdaptiveNetworkHardeningsListIterator

func NewAdaptiveNetworkHardeningsListIterator(page AdaptiveNetworkHardeningsListPage) AdaptiveNetworkHardeningsListIterator

Creates a new instance of the AdaptiveNetworkHardeningsListIterator type.

func (*AdaptiveNetworkHardeningsListIterator) Next

func (iter *AdaptiveNetworkHardeningsListIterator) 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. Deprecated: Use NextWithContext() instead.

func (*AdaptiveNetworkHardeningsListIterator) NextWithContext

func (iter *AdaptiveNetworkHardeningsListIterator) NextWithContext(ctx context.Context) (err error)

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

func (AdaptiveNetworkHardeningsListIterator) NotDone

func (iter AdaptiveNetworkHardeningsListIterator) NotDone() bool

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

func (AdaptiveNetworkHardeningsListIterator) Response

func (iter AdaptiveNetworkHardeningsListIterator) Response() AdaptiveNetworkHardeningsList

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

func (AdaptiveNetworkHardeningsListIterator) Value

func (iter AdaptiveNetworkHardeningsListIterator) Value() AdaptiveNetworkHardening

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

type AdaptiveNetworkHardeningsListPage

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

AdaptiveNetworkHardeningsListPage contains a page of AdaptiveNetworkHardening values.

func NewAdaptiveNetworkHardeningsListPage

func NewAdaptiveNetworkHardeningsListPage(getNextPage func(context.Context, AdaptiveNetworkHardeningsList) (AdaptiveNetworkHardeningsList, error)) AdaptiveNetworkHardeningsListPage

Creates a new instance of the AdaptiveNetworkHardeningsListPage type.

func (*AdaptiveNetworkHardeningsListPage) Next

func (page *AdaptiveNetworkHardeningsListPage) 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. Deprecated: Use NextWithContext() instead.

func (*AdaptiveNetworkHardeningsListPage) NextWithContext

func (page *AdaptiveNetworkHardeningsListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 (AdaptiveNetworkHardeningsListPage) NotDone

func (page AdaptiveNetworkHardeningsListPage) NotDone() bool

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

func (AdaptiveNetworkHardeningsListPage) Response

func (page AdaptiveNetworkHardeningsListPage) Response() AdaptiveNetworkHardeningsList

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

func (AdaptiveNetworkHardeningsListPage) Values

func (page AdaptiveNetworkHardeningsListPage) Values() []AdaptiveNetworkHardening

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

type AdditionalData

type AdditionalData struct {
	// AssessedResourceType - Possible values include: 'AssessedResourceTypeAdditionalData', 'AssessedResourceTypeSQLServerVulnerability', 'AssessedResourceTypeContainerRegistryVulnerability', 'AssessedResourceTypeServerVulnerabilityAssessment'
	AssessedResourceType AssessedResourceType `json:"assessedResourceType,omitempty"`
}

AdditionalData details of the sub-assessment

func (AdditionalData) AsAdditionalData

func (ad AdditionalData) AsAdditionalData() (*AdditionalData, bool)

AsAdditionalData is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) AsBasicAdditionalData

func (ad AdditionalData) AsBasicAdditionalData() (BasicAdditionalData, bool)

AsBasicAdditionalData is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) AsContainerRegistryVulnerabilityProperties

func (ad AdditionalData) AsContainerRegistryVulnerabilityProperties() (*ContainerRegistryVulnerabilityProperties, bool)

AsContainerRegistryVulnerabilityProperties is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) AsSQLServerVulnerabilityProperties

func (ad AdditionalData) AsSQLServerVulnerabilityProperties() (*SQLServerVulnerabilityProperties, bool)

AsSQLServerVulnerabilityProperties is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) AsServerVulnerabilityProperties

func (ad AdditionalData) AsServerVulnerabilityProperties() (*ServerVulnerabilityProperties, bool)

AsServerVulnerabilityProperties is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) MarshalJSON

func (ad AdditionalData) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AdditionalData.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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

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

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 - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; 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 - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; 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 - READ-ONLY; Type of confidence factor
	Type *string `json:"type,omitempty"`
	// Reason - READ-ONLY; 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 - READ-ONLY; 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 - READ-ONLY; 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 NewAlertListIterator

func NewAlertListIterator(page AlertListPage) AlertListIterator

Creates a new instance of the AlertListIterator type.

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. Deprecated: Use NextWithContext() instead.

func (*AlertListIterator) NextWithContext

func (iter *AlertListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 NewAlertListPage

func NewAlertListPage(getNextPage func(context.Context, AlertList) (AlertList, error)) AlertListPage

Creates a new instance of the AlertListPage type.

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. Deprecated: Use NextWithContext() instead.

func (*AlertListPage) NextWithContext

func (page *AlertListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 - READ-ONLY; State of the alert (Active, Dismissed etc.)
	State *string `json:"state,omitempty"`
	// ReportedTimeUtc - READ-ONLY; The time the incident was reported to Microsoft.Security in UTC
	ReportedTimeUtc *date.Time `json:"reportedTimeUtc,omitempty"`
	// VendorName - READ-ONLY; Name of the vendor that discovered the incident
	VendorName *string `json:"vendorName,omitempty"`
	// AlertName - READ-ONLY; Name of the alert type
	AlertName *string `json:"alertName,omitempty"`
	// AlertDisplayName - READ-ONLY; Display name of the alert type
	AlertDisplayName *string `json:"alertDisplayName,omitempty"`
	// DetectedTimeUtc - READ-ONLY; The time the incident was detected by the vendor
	DetectedTimeUtc *date.Time `json:"detectedTimeUtc,omitempty"`
	// Description - READ-ONLY; Description of the incident and what it means
	Description *string `json:"description,omitempty"`
	// RemediationSteps - READ-ONLY; Recommended steps to reradiate the incident
	RemediationSteps *string `json:"remediationSteps,omitempty"`
	// ActionTaken - READ-ONLY; The action that was taken as a response to the alert (Active, Blocked etc.)
	ActionTaken *string `json:"actionTaken,omitempty"`
	// ReportedSeverity - READ-ONLY; Estimated severity of this alert. Possible values include: 'Informational', 'Low', 'Medium', 'High'
	ReportedSeverity ReportedSeverity `json:"reportedSeverity,omitempty"`
	// CompromisedEntity - READ-ONLY; The entity that the incident happened on
	CompromisedEntity *string `json:"compromisedEntity,omitempty"`
	// AssociatedResource - READ-ONLY; Azure resource ID of the associated resource
	AssociatedResource *string                `json:"associatedResource,omitempty"`
	ExtendedProperties map[string]interface{} `json:"extendedProperties"`
	// SystemSource - READ-ONLY; The type of the alerted resource (Azure, Non-Azure)
	SystemSource *string `json:"systemSource,omitempty"`
	// CanBeInvestigated - READ-ONLY; Whether this alert can be investigated with Azure Security Center
	CanBeInvestigated *bool `json:"canBeInvestigated,omitempty"`
	// IsIncident - READ-ONLY; Whether this alert is for incident type or not (otherwise - single alert)
	IsIncident *bool `json:"isIncident,omitempty"`
	// Entities - objects that are related to this alerts
	Entities *[]AlertEntity `json:"entities,omitempty"`
	// ConfidenceScore - READ-ONLY; 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 - READ-ONLY; 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 - READ-ONLY; Instance ID of the alert.
	InstanceID *string `json:"instanceId,omitempty"`
	// WorkspaceArmID - READ-ONLY; Azure resource ID of the workspace that the alert was reported to.
	WorkspaceArmID *string `json:"workspaceArmId,omitempty"`
	// CorrelationKey - READ-ONLY; Alerts with the same CorrelationKey will be grouped together in Ibiza.
	CorrelationKey *string `json:"correlationKey,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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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, autoDismissRuleName 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. autoDismissRuleName - the name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and get the alerts that would have been dismissed if the rule was enabled when the alert was created

func (AlertsClient) ListByResourceGroup

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

ListByResourceGroup list all the 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. autoDismissRuleName - the name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and get the alerts that would have been dismissed if the rule was enabled when the alert was created

func (AlertsClient) ListByResourceGroupComplete

func (client AlertsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string, autoDismissRuleName 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, autoDismissRuleName 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, autoDismissRuleName 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, autoDismissRuleName 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, autoDismissRuleName 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. autoDismissRuleName - the name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and get the alerts that would have been dismissed if the rule was enabled when the alert was created

func (AlertsClient) ListResourceGroupLevelAlertsByRegionComplete

func (client AlertsClient) ListResourceGroupLevelAlertsByRegionComplete(ctx context.Context, resourceGroupName string, filter string, selectParameter string, expand string, autoDismissRuleName 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, autoDismissRuleName 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, autoDismissRuleName 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. autoDismissRuleName - the name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and get the alerts that would have been dismissed if the rule was enabled when the alert was created

func (AlertsClient) ListSubscriptionLevelAlertsByRegionComplete

func (client AlertsClient) ListSubscriptionLevelAlertsByRegionComplete(ctx context.Context, filter string, selectParameter string, expand string, autoDismissRuleName 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, autoDismissRuleName 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) UpdateResourceGroupLevelAlertStateToDismiss

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

UpdateResourceGroupLevelAlertStateToDismiss update the alert's state 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) UpdateResourceGroupLevelAlertStateToDismissPreparer

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

UpdateResourceGroupLevelAlertStateToDismissPreparer prepares the UpdateResourceGroupLevelAlertStateToDismiss request.

func (AlertsClient) UpdateResourceGroupLevelAlertStateToDismissResponder

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

UpdateResourceGroupLevelAlertStateToDismissResponder handles the response to the UpdateResourceGroupLevelAlertStateToDismiss request. The method always closes the http.Response Body.

func (AlertsClient) UpdateResourceGroupLevelAlertStateToDismissSender

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

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

func (AlertsClient) UpdateResourceGroupLevelAlertStateToReactivate

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

UpdateResourceGroupLevelAlertStateToReactivate update the alert's state 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) UpdateResourceGroupLevelAlertStateToReactivatePreparer

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

UpdateResourceGroupLevelAlertStateToReactivatePreparer prepares the UpdateResourceGroupLevelAlertStateToReactivate request.

func (AlertsClient) UpdateResourceGroupLevelAlertStateToReactivateResponder

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

UpdateResourceGroupLevelAlertStateToReactivateResponder handles the response to the UpdateResourceGroupLevelAlertStateToReactivate request. The method always closes the http.Response Body.

func (AlertsClient) UpdateResourceGroupLevelAlertStateToReactivateSender

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

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

func (AlertsClient) UpdateSubscriptionLevelAlertStateToDismiss

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

UpdateSubscriptionLevelAlertStateToDismiss update the alert's state Parameters: alertName - name of the alert object

func (AlertsClient) UpdateSubscriptionLevelAlertStateToDismissPreparer

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

UpdateSubscriptionLevelAlertStateToDismissPreparer prepares the UpdateSubscriptionLevelAlertStateToDismiss request.

func (AlertsClient) UpdateSubscriptionLevelAlertStateToDismissResponder

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

UpdateSubscriptionLevelAlertStateToDismissResponder handles the response to the UpdateSubscriptionLevelAlertStateToDismiss request. The method always closes the http.Response Body.

func (AlertsClient) UpdateSubscriptionLevelAlertStateToDismissSender

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

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

func (AlertsClient) UpdateSubscriptionLevelAlertStateToReactivate

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

UpdateSubscriptionLevelAlertStateToReactivate update the alert's state Parameters: alertName - name of the alert object

func (AlertsClient) UpdateSubscriptionLevelAlertStateToReactivatePreparer

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

UpdateSubscriptionLevelAlertStateToReactivatePreparer prepares the UpdateSubscriptionLevelAlertStateToReactivate request.

func (AlertsClient) UpdateSubscriptionLevelAlertStateToReactivateResponder

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

UpdateSubscriptionLevelAlertStateToReactivateResponder handles the response to the UpdateSubscriptionLevelAlertStateToReactivate request. The method always closes the http.Response Body.

func (AlertsClient) UpdateSubscriptionLevelAlertStateToReactivateSender

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

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

type AlertsSuppressionRule

type AlertsSuppressionRule struct {
	autorest.Response                `json:"-"`
	*AlertsSuppressionRuleProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
}

AlertsSuppressionRule describes the suppression rule

func (AlertsSuppressionRule) MarshalJSON

func (asr AlertsSuppressionRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertsSuppressionRule.

func (*AlertsSuppressionRule) UnmarshalJSON

func (asr *AlertsSuppressionRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AlertsSuppressionRule struct.

type AlertsSuppressionRuleProperties

type AlertsSuppressionRuleProperties struct {
	// AlertType - Type of the alert to automatically suppress. For all alert types, use '*'
	AlertType *string `json:"alertType,omitempty"`
	// LastModifiedUtc - READ-ONLY; The last time this rule was modified
	LastModifiedUtc *date.Time `json:"lastModifiedUtc,omitempty"`
	// ExpirationDateUtc - Expiration date of the rule, if value is not provided or provided as null this field will default to the maximum allowed expiration date.
	ExpirationDateUtc *date.Time `json:"expirationDateUtc,omitempty"`
	// Reason - The reason for dismissing the alert
	Reason *string `json:"reason,omitempty"`
	// State - Possible states of the rule. Possible values include: 'RuleStateEnabled', 'RuleStateDisabled', 'RuleStateExpired'
	State RuleState `json:"state,omitempty"`
	// Comment - Any comment regarding the rule
	Comment *string `json:"comment,omitempty"`
	// SuppressionAlertsScope - The suppression conditions
	SuppressionAlertsScope *SuppressionAlertsScope `json:"suppressionAlertsScope,omitempty"`
}

AlertsSuppressionRuleProperties describes AlertsSuppressionRule properties

type AlertsSuppressionRulesClient

type AlertsSuppressionRulesClient struct {
	BaseClient
}

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

func NewAlertsSuppressionRulesClient

func NewAlertsSuppressionRulesClient(subscriptionID string, ascLocation string) AlertsSuppressionRulesClient

NewAlertsSuppressionRulesClient creates an instance of the AlertsSuppressionRulesClient client.

func NewAlertsSuppressionRulesClientWithBaseURI

func NewAlertsSuppressionRulesClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AlertsSuppressionRulesClient

NewAlertsSuppressionRulesClientWithBaseURI creates an instance of the AlertsSuppressionRulesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AlertsSuppressionRulesClient) Delete

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

Delete delete dismiss alert rule for this subscription. Parameters: alertsSuppressionRuleName - the unique name of the suppression alert rule

func (AlertsSuppressionRulesClient) DeletePreparer

func (client AlertsSuppressionRulesClient) DeletePreparer(ctx context.Context, alertsSuppressionRuleName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AlertsSuppressionRulesClient) DeleteResponder

func (client AlertsSuppressionRulesClient) 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 (AlertsSuppressionRulesClient) DeleteSender

func (client AlertsSuppressionRulesClient) 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 (AlertsSuppressionRulesClient) Get

func (client AlertsSuppressionRulesClient) Get(ctx context.Context, alertsSuppressionRuleName string) (result AlertsSuppressionRule, err error)

Get get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription Parameters: alertsSuppressionRuleName - the unique name of the suppression alert rule

func (AlertsSuppressionRulesClient) GetPreparer

func (client AlertsSuppressionRulesClient) GetPreparer(ctx context.Context, alertsSuppressionRuleName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AlertsSuppressionRulesClient) GetResponder

func (client AlertsSuppressionRulesClient) GetResponder(resp *http.Response) (result AlertsSuppressionRule, err error)

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

func (AlertsSuppressionRulesClient) GetSender

func (client AlertsSuppressionRulesClient) 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 (AlertsSuppressionRulesClient) List

func (client AlertsSuppressionRulesClient) List(ctx context.Context, alertType string) (result AlertsSuppressionRulesListPage, err error)

List list of all the dismiss rules for the given subscription Parameters: alertType - type of the alert to get rules for

func (AlertsSuppressionRulesClient) ListComplete

func (client AlertsSuppressionRulesClient) ListComplete(ctx context.Context, alertType string) (result AlertsSuppressionRulesListIterator, err error)

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

func (AlertsSuppressionRulesClient) ListPreparer

func (client AlertsSuppressionRulesClient) ListPreparer(ctx context.Context, alertType string) (*http.Request, error)

ListPreparer prepares the List request.

func (AlertsSuppressionRulesClient) ListResponder

func (client AlertsSuppressionRulesClient) ListResponder(resp *http.Response) (result AlertsSuppressionRulesList, err error)

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

func (AlertsSuppressionRulesClient) ListSender

func (client AlertsSuppressionRulesClient) 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 (AlertsSuppressionRulesClient) Update

func (client AlertsSuppressionRulesClient) Update(ctx context.Context, alertsSuppressionRuleName string, alertsSuppressionRule AlertsSuppressionRule) (result AlertsSuppressionRule, err error)

Update update existing rule or create new rule if it doesn't exist Parameters: alertsSuppressionRuleName - the unique name of the suppression alert rule alertsSuppressionRule - suppression rule object

func (AlertsSuppressionRulesClient) UpdatePreparer

func (client AlertsSuppressionRulesClient) UpdatePreparer(ctx context.Context, alertsSuppressionRuleName string, alertsSuppressionRule AlertsSuppressionRule) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AlertsSuppressionRulesClient) UpdateResponder

func (client AlertsSuppressionRulesClient) UpdateResponder(resp *http.Response) (result AlertsSuppressionRule, err error)

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

func (AlertsSuppressionRulesClient) UpdateSender

func (client AlertsSuppressionRulesClient) 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 AlertsSuppressionRulesList

type AlertsSuppressionRulesList struct {
	autorest.Response `json:"-"`
	Value             *[]AlertsSuppressionRule `json:"value,omitempty"`
	// NextLink - READ-ONLY; URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

AlertsSuppressionRulesList suppression rules list for subscription.

func (AlertsSuppressionRulesList) IsEmpty

func (asrl AlertsSuppressionRulesList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AlertsSuppressionRulesListIterator

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

AlertsSuppressionRulesListIterator provides access to a complete listing of AlertsSuppressionRule values.

func NewAlertsSuppressionRulesListIterator

func NewAlertsSuppressionRulesListIterator(page AlertsSuppressionRulesListPage) AlertsSuppressionRulesListIterator

Creates a new instance of the AlertsSuppressionRulesListIterator type.

func (*AlertsSuppressionRulesListIterator) Next

func (iter *AlertsSuppressionRulesListIterator) 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. Deprecated: Use NextWithContext() instead.

func (*AlertsSuppressionRulesListIterator) NextWithContext

func (iter *AlertsSuppressionRulesListIterator) NextWithContext(ctx context.Context) (err error)

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

func (AlertsSuppressionRulesListIterator) NotDone

func (iter AlertsSuppressionRulesListIterator) NotDone() bool

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

func (AlertsSuppressionRulesListIterator) Response

func (iter AlertsSuppressionRulesListIterator) Response() AlertsSuppressionRulesList

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

func (AlertsSuppressionRulesListIterator) Value

func (iter AlertsSuppressionRulesListIterator) Value() AlertsSuppressionRule

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

type AlertsSuppressionRulesListPage

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

AlertsSuppressionRulesListPage contains a page of AlertsSuppressionRule values.

func NewAlertsSuppressionRulesListPage

func NewAlertsSuppressionRulesListPage(getNextPage func(context.Context, AlertsSuppressionRulesList) (AlertsSuppressionRulesList, error)) AlertsSuppressionRulesListPage

Creates a new instance of the AlertsSuppressionRulesListPage type.

func (*AlertsSuppressionRulesListPage) Next

func (page *AlertsSuppressionRulesListPage) 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. Deprecated: Use NextWithContext() instead.

func (*AlertsSuppressionRulesListPage) NextWithContext

func (page *AlertsSuppressionRulesListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 (AlertsSuppressionRulesListPage) NotDone

func (page AlertsSuppressionRulesListPage) NotDone() bool

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

func (AlertsSuppressionRulesListPage) Response

func (page AlertsSuppressionRulesListPage) Response() AlertsSuppressionRulesList

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

func (AlertsSuppressionRulesListPage) Values

func (page AlertsSuppressionRulesListPage) Values() []AlertsSuppressionRule

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

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 AllowedConnectionsClient

type AllowedConnectionsClient struct {
	BaseClient
}

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

func NewAllowedConnectionsClient

func NewAllowedConnectionsClient(subscriptionID string, ascLocation string) AllowedConnectionsClient

NewAllowedConnectionsClient creates an instance of the AllowedConnectionsClient client.

func NewAllowedConnectionsClientWithBaseURI

func NewAllowedConnectionsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AllowedConnectionsClient

NewAllowedConnectionsClientWithBaseURI creates an instance of the AllowedConnectionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AllowedConnectionsClient) Get

func (client AllowedConnectionsClient) Get(ctx context.Context, resourceGroupName string, connectionType ConnectionType) (result AllowedConnectionsResource, err error)

Get gets the list of all possible traffic between resources for the subscription and location, based on connection type. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. connectionType - the type of allowed connections (Internal, External)

func (AllowedConnectionsClient) GetPreparer

func (client AllowedConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, connectionType ConnectionType) (*http.Request, error)

GetPreparer prepares the Get request.

func (AllowedConnectionsClient) GetResponder

func (client AllowedConnectionsClient) GetResponder(resp *http.Response) (result AllowedConnectionsResource, err error)

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

func (AllowedConnectionsClient) GetSender

func (client AllowedConnectionsClient) 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 (AllowedConnectionsClient) List

func (client AllowedConnectionsClient) List(ctx context.Context) (result AllowedConnectionsListPage, err error)

List gets the list of all possible traffic between resources for the subscription

func (AllowedConnectionsClient) ListByHomeRegion

func (client AllowedConnectionsClient) ListByHomeRegion(ctx context.Context) (result AllowedConnectionsListPage, err error)

ListByHomeRegion gets the list of all possible traffic between resources for the subscription and location.

func (AllowedConnectionsClient) ListByHomeRegionComplete

func (client AllowedConnectionsClient) ListByHomeRegionComplete(ctx context.Context) (result AllowedConnectionsListIterator, err error)

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

func (AllowedConnectionsClient) ListByHomeRegionPreparer

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

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (AllowedConnectionsClient) ListByHomeRegionResponder

func (client AllowedConnectionsClient) ListByHomeRegionResponder(resp *http.Response) (result AllowedConnectionsList, err error)

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

func (AllowedConnectionsClient) ListByHomeRegionSender

func (client AllowedConnectionsClient) 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 (AllowedConnectionsClient) ListComplete

func (client AllowedConnectionsClient) ListComplete(ctx context.Context) (result AllowedConnectionsListIterator, err error)

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

func (AllowedConnectionsClient) ListPreparer

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

ListPreparer prepares the List request.

func (AllowedConnectionsClient) ListResponder

func (client AllowedConnectionsClient) ListResponder(resp *http.Response) (result AllowedConnectionsList, err error)

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

func (AllowedConnectionsClient) ListSender

func (client AllowedConnectionsClient) 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 AllowedConnectionsList

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

AllowedConnectionsList list of all possible traffic between Azure resources

func (AllowedConnectionsList) IsEmpty

func (ACL AllowedConnectionsList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AllowedConnectionsListIterator

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

AllowedConnectionsListIterator provides access to a complete listing of AllowedConnectionsResource values.

func NewAllowedConnectionsListIterator

func NewAllowedConnectionsListIterator(page AllowedConnectionsListPage) AllowedConnectionsListIterator

Creates a new instance of the AllowedConnectionsListIterator type.

func (*AllowedConnectionsListIterator) Next

func (iter *AllowedConnectionsListIterator) 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. Deprecated: Use NextWithContext() instead.

func (*AllowedConnectionsListIterator) NextWithContext

func (iter *AllowedConnectionsListIterator) NextWithContext(ctx context.Context) (err error)

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

func (AllowedConnectionsListIterator) NotDone

func (iter AllowedConnectionsListIterator) NotDone() bool

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

func (AllowedConnectionsListIterator) Response

func (iter AllowedConnectionsListIterator) Response() AllowedConnectionsList

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

func (AllowedConnectionsListIterator) Value

func (iter AllowedConnectionsListIterator) Value() AllowedConnectionsResource

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

type AllowedConnectionsListPage

type AllowedConnectionsListPage struct {
	ACL AllowedConnectionsList
	// contains filtered or unexported fields
}

AllowedConnectionsListPage contains a page of AllowedConnectionsResource values.

func NewAllowedConnectionsListPage

func NewAllowedConnectionsListPage(getNextPage func(context.Context, AllowedConnectionsList) (AllowedConnectionsList, error)) AllowedConnectionsListPage

Creates a new instance of the AllowedConnectionsListPage type.

func (*AllowedConnectionsListPage) Next

func (page *AllowedConnectionsListPage) 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. Deprecated: Use NextWithContext() instead.

func (*AllowedConnectionsListPage) NextWithContext

func (page *AllowedConnectionsListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 (AllowedConnectionsListPage) NotDone

func (page AllowedConnectionsListPage) NotDone() bool

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

func (AllowedConnectionsListPage) Response

func (page AllowedConnectionsListPage) Response() AllowedConnectionsList

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

func (AllowedConnectionsListPage) Values

func (page AllowedConnectionsListPage) Values() []AllowedConnectionsResource

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

type AllowedConnectionsResource

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

AllowedConnectionsResource the resource whose properties describes the allowed traffic between Azure resources

func (AllowedConnectionsResource) MarshalJSON

func (acr AllowedConnectionsResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AllowedConnectionsResource.

func (*AllowedConnectionsResource) UnmarshalJSON

func (acr *AllowedConnectionsResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AllowedConnectionsResource struct.

type AllowedConnectionsResourceProperties

type AllowedConnectionsResourceProperties struct {
	// CalculatedDateTime - READ-ONLY; The UTC time on which the allowed connections resource was calculated
	CalculatedDateTime *date.Time `json:"calculatedDateTime,omitempty"`
	// ConnectableResources - READ-ONLY; List of connectable resources
	ConnectableResources *[]ConnectableResource `json:"connectableResources,omitempty"`
}

AllowedConnectionsResourceProperties describes the allowed traffic between Azure resources

type AllowlistCustomAlertRule

type AllowlistCustomAlertRule struct {
	// AllowlistValues - The values to allow. The format of the values depends on the rule type.
	AllowlistValues *[]string `json:"allowlistValues,omitempty"`
	// ValueType - READ-ONLY; The value type of the items in the list. Possible values include: 'ValueTypeIPCidr', 'ValueTypeString'
	ValueType ValueType `json:"valueType,omitempty"`
	// DisplayName - READ-ONLY; The display name of the custom alert.
	DisplayName *string `json:"displayName,omitempty"`
	// Description - READ-ONLY; The description of the custom alert.
	Description *string `json:"description,omitempty"`
	// IsEnabled - Whether the custom alert is enabled.
	IsEnabled *bool `json:"isEnabled,omitempty"`
	// RuleType - The type of the custom alert rule.
	RuleType *string `json:"ruleType,omitempty"`
}

AllowlistCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) is allowed

type AppWhitelistingGroup

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

AppWhitelistingGroup ...

func (AppWhitelistingGroup) MarshalJSON

func (awg AppWhitelistingGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AppWhitelistingGroup.

func (*AppWhitelistingGroup) UnmarshalJSON

func (awg *AppWhitelistingGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AppWhitelistingGroup struct.

type AppWhitelistingGroupData

type AppWhitelistingGroupData struct {
	// EnforcementMode - Possible values include: 'Audit', 'Enforce', 'None'
	EnforcementMode EnforcementMode `json:"enforcementMode,omitempty"`
	ProtectionMode  *ProtectionMode `json:"protectionMode,omitempty"`
	// ConfigurationStatus - Possible values include: 'ConfigurationStatus2Configured', 'ConfigurationStatus2NotConfigured', 'ConfigurationStatus2InProgress', 'ConfigurationStatus2Failed', 'ConfigurationStatus2NoStatus'
	ConfigurationStatus ConfigurationStatus2 `json:"configurationStatus,omitempty"`
	// RecommendationStatus - Possible values include: 'RecommendationStatusRecommended', 'RecommendationStatusNotRecommended', 'RecommendationStatusNotAvailable', 'RecommendationStatusNoStatus'
	RecommendationStatus RecommendationStatus           `json:"recommendationStatus,omitempty"`
	Issues               *[]AppWhitelistingIssueSummary `json:"issues,omitempty"`
	// SourceSystem - Possible values include: 'SourceSystemAzureAppLocker', 'SourceSystemAzureAuditD', 'SourceSystemNonAzureAppLocker', 'SourceSystemNonAzureAuditD', 'SourceSystemNone'
	SourceSystem        SourceSystem          `json:"sourceSystem,omitempty"`
	VMRecommendations   *[]VMRecommendation   `json:"vmRecommendations,omitempty"`
	PathRecommendations *[]PathRecommendation `json:"pathRecommendations,omitempty"`
}

AppWhitelistingGroupData represents a VM/server group and set of rules that are Recommended by Azure Security Center to be allowed

type AppWhitelistingGroups

type AppWhitelistingGroups struct {
	autorest.Response `json:"-"`
	Value             *[]AppWhitelistingGroup `json:"value,omitempty"`
}

AppWhitelistingGroups represents a list of VM/server groups and set of rules that are Recommended by Azure Security Center to be allowed

type AppWhitelistingIssueSummary

type AppWhitelistingIssueSummary struct {
	// Issue - Possible values include: 'ViolationsAudited', 'ViolationsBlocked', 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited', 'RulesViolatedManually'
	Issue Issue `json:"issue,omitempty"`
	// NumberOfVms - The number of machines in the VM/server group that have this alert
	NumberOfVms *float64 `json:"numberOfVms,omitempty"`
}

AppWhitelistingIssueSummary represents a summary of the alerts of the VM/server group

type AppWhitelistingPutGroupData

type AppWhitelistingPutGroupData struct {
	// EnforcementMode - The enforcement mode of the group. Can also be defined per collection type by using ProtectionMode. Possible values include: 'EnforcementMode1Audit', 'EnforcementMode1Enforce', 'EnforcementMode1None'
	EnforcementMode EnforcementMode1 `json:"enforcementMode,omitempty"`
	// ProtectionMode - The protection mode of the group per collection type. Can also be defined for all collection types by using EnforcementMode
	ProtectionMode      *ProtectionMode       `json:"protectionMode,omitempty"`
	VMRecommendations   *[]VMRecommendation   `json:"vmRecommendations,omitempty"`
	PathRecommendations *[]PathRecommendation `json:"pathRecommendations,omitempty"`
}

AppWhitelistingPutGroupData the altered data of the recommended VM/server group policy

type AscLocation

type AscLocation struct {
	autorest.Response `json:"-"`
	Properties        interface{} `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; 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 - READ-ONLY
	Value *[]AscLocation `json:"value,omitempty"`
	// NextLink - READ-ONLY; 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 NewAscLocationListIterator

func NewAscLocationListIterator(page AscLocationListPage) AscLocationListIterator

Creates a new instance of the AscLocationListIterator type.

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. Deprecated: Use NextWithContext() instead.

func (*AscLocationListIterator) NextWithContext

func (iter *AscLocationListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 NewAscLocationListPage

func NewAscLocationListPage(getNextPage func(context.Context, AscLocationList) (AscLocationList, error)) AscLocationListPage

Creates a new instance of the AscLocationListPage type.

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. Deprecated: Use NextWithContext() instead.

func (*AscLocationListPage) NextWithContext

func (page *AscLocationListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 AssessedResourceType

type AssessedResourceType string

AssessedResourceType enumerates the values for assessed resource type.

const (
	// AssessedResourceTypeAdditionalData ...
	AssessedResourceTypeAdditionalData AssessedResourceType = "AdditionalData"
	// AssessedResourceTypeContainerRegistryVulnerability ...
	AssessedResourceTypeContainerRegistryVulnerability AssessedResourceType = "ContainerRegistryVulnerability"
	// AssessedResourceTypeServerVulnerabilityAssessment ...
	AssessedResourceTypeServerVulnerabilityAssessment AssessedResourceType = "ServerVulnerabilityAssessment"
	// AssessedResourceTypeSQLServerVulnerability ...
	AssessedResourceTypeSQLServerVulnerability AssessedResourceType = "SqlServerVulnerability"
)

func PossibleAssessedResourceTypeValues

func PossibleAssessedResourceTypeValues() []AssessedResourceType

PossibleAssessedResourceTypeValues returns an array of possible values for the AssessedResourceType const type.

type AtaExternalSecuritySolution

type AtaExternalSecuritySolution struct {
	Properties *AtaSolutionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; Location where the resource is stored
	Location *string `json:"location,omitempty"`
	// Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
	Kind KindEnum `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 AuthenticationDetailsProperties

type AuthenticationDetailsProperties struct {
	// AuthenticationProvisioningState - READ-ONLY; State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', 'IncorrectPolicy'
	AuthenticationProvisioningState AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty"`
	// GrantedPermissions - READ-ONLY; The permissions detected in the cloud account.
	GrantedPermissions *[]PermissionProperty `json:"grantedPermissions,omitempty"`
	// AuthenticationType - Possible values include: 'AuthenticationTypeAuthenticationDetailsProperties', 'AuthenticationTypeAwsCreds', 'AuthenticationTypeAwsAssumeRole', 'AuthenticationTypeGcpCredentials'
	AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}

AuthenticationDetailsProperties settings for cloud authentication management

func (AuthenticationDetailsProperties) AsAuthenticationDetailsProperties

func (adp AuthenticationDetailsProperties) AsAuthenticationDetailsProperties() (*AuthenticationDetailsProperties, bool)

AsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) AsAwAssumeRoleAuthenticationDetailsProperties

func (adp AuthenticationDetailsProperties) AsAwAssumeRoleAuthenticationDetailsProperties() (*AwAssumeRoleAuthenticationDetailsProperties, bool)

AsAwAssumeRoleAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) AsAwsCredsAuthenticationDetailsProperties

func (adp AuthenticationDetailsProperties) AsAwsCredsAuthenticationDetailsProperties() (*AwsCredsAuthenticationDetailsProperties, bool)

AsAwsCredsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) AsBasicAuthenticationDetailsProperties

func (adp AuthenticationDetailsProperties) AsBasicAuthenticationDetailsProperties() (BasicAuthenticationDetailsProperties, bool)

AsBasicAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) AsGcpCredentialsDetailsProperties

func (adp AuthenticationDetailsProperties) AsGcpCredentialsDetailsProperties() (*GcpCredentialsDetailsProperties, bool)

AsGcpCredentialsDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) MarshalJSON

func (adp AuthenticationDetailsProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AuthenticationDetailsProperties.

type AuthenticationProvisioningState

type AuthenticationProvisioningState string

AuthenticationProvisioningState enumerates the values for authentication provisioning state.

const (
	// Expired the connection is expired
	Expired AuthenticationProvisioningState = "Expired"
	// IncorrectPolicy Incorrect policy of the connector
	IncorrectPolicy AuthenticationProvisioningState = "IncorrectPolicy"
	// Invalid Invalid connector
	Invalid AuthenticationProvisioningState = "Invalid"
	// Valid Valid connector
	Valid AuthenticationProvisioningState = "Valid"
)

func PossibleAuthenticationProvisioningStateValues

func PossibleAuthenticationProvisioningStateValues() []AuthenticationProvisioningState

PossibleAuthenticationProvisioningStateValues returns an array of possible values for the AuthenticationProvisioningState const type.

type AuthenticationType

type AuthenticationType string

AuthenticationType enumerates the values for authentication type.

const (
	// AuthenticationTypeAuthenticationDetailsProperties ...
	AuthenticationTypeAuthenticationDetailsProperties AuthenticationType = "AuthenticationDetailsProperties"
	// AuthenticationTypeAwsAssumeRole ...
	AuthenticationTypeAwsAssumeRole AuthenticationType = "awsAssumeRole"
	// AuthenticationTypeAwsCreds ...
	AuthenticationTypeAwsCreds AuthenticationType = "awsCreds"
	// AuthenticationTypeGcpCredentials ...
	AuthenticationTypeGcpCredentials AuthenticationType = "gcpCredentials"
)

func PossibleAuthenticationTypeValues

func PossibleAuthenticationTypeValues() []AuthenticationType

PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type.

type AutoProvision

type AutoProvision string

AutoProvision enumerates the values for auto provision.

const (
	// AutoProvisionOff Do not install Azure Arc agent on the VMs automatically
	AutoProvisionOff AutoProvision = "Off"
	// AutoProvisionOn Install missing Azure Arc 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 - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; 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 - READ-ONLY; 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 NewAutoProvisioningSettingListIterator

func NewAutoProvisioningSettingListIterator(page AutoProvisioningSettingListPage) AutoProvisioningSettingListIterator

Creates a new instance of the AutoProvisioningSettingListIterator type.

func (*AutoProvisioningSettingListIterator) Next

func (iter *AutoProvisioningSettingListIterator) 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. Deprecated: Use NextWithContext() instead.

func (*AutoProvisioningSettingListIterator) NextWithContext

func (iter *AutoProvisioningSettingListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext 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

func (iter AutoProvisioningSettingListIterator) NotDone() bool

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

func (AutoProvisioningSettingListIterator) Response

func (iter AutoProvisioningSettingListIterator) Response() AutoProvisioningSettingList

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

func (AutoProvisioningSettingListIterator) Value

func (iter AutoProvisioningSettingListIterator) Value() AutoProvisioningSetting

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 NewAutoProvisioningSettingListPage

func NewAutoProvisioningSettingListPage(getNextPage func(context.Context, AutoProvisioningSettingList) (AutoProvisioningSettingList, error)) AutoProvisioningSettingListPage

Creates a new instance of the AutoProvisioningSettingListPage type.

func (*AutoProvisioningSettingListPage) Next

func (page *AutoProvisioningSettingListPage) 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. Deprecated: Use NextWithContext() instead.

func (*AutoProvisioningSettingListPage) NextWithContext

func (page *AutoProvisioningSettingListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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

func (page AutoProvisioningSettingListPage) Response() AutoProvisioningSettingList

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

func (AutoProvisioningSettingListPage) Values

func (page AutoProvisioningSettingListPage) Values() []AutoProvisioningSetting

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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

func (client AutoProvisioningSettingsClient) List(ctx context.Context) (result AutoProvisioningSettingListPage, err error)

List exposes the auto provisioning settings of the subscriptions

func (AutoProvisioningSettingsClient) ListComplete

func (client AutoProvisioningSettingsClient) ListComplete(ctx context.Context) (result AutoProvisioningSettingListIterator, err error)

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 Automation

type Automation struct {
	autorest.Response `json:"-"`
	// AutomationProperties - Security automation data
	*AutomationProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; Location where the resource is stored
	Location *string `json:"location,omitempty"`
	// Kind - Kind of the resource
	Kind *string `json:"kind,omitempty"`
	// Etag - Entity tag is used for comparing two or more entities from the same requested resource.
	Etag *string `json:"etag,omitempty"`
	// Tags - A list of key value pairs that describe the resource.
	Tags map[string]*string `json:"tags"`
}

Automation the security automation resource.

func (Automation) MarshalJSON

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

MarshalJSON is the custom marshaler for Automation.

func (*Automation) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Automation struct.

type AutomationAction

type AutomationAction struct {
	// ActionType - Possible values include: 'ActionTypeAutomationAction', 'ActionTypeLogicApp', 'ActionTypeEventHub', 'ActionTypeWorkspace'
	ActionType ActionType `json:"actionType,omitempty"`
}

AutomationAction the action that should be triggered.

func (AutomationAction) AsAutomationAction

func (aa AutomationAction) AsAutomationAction() (*AutomationAction, bool)

AsAutomationAction is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) AsAutomationActionEventHub

func (aa AutomationAction) AsAutomationActionEventHub() (*AutomationActionEventHub, bool)

AsAutomationActionEventHub is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) AsAutomationActionLogicApp

func (aa AutomationAction) AsAutomationActionLogicApp() (*AutomationActionLogicApp, bool)

AsAutomationActionLogicApp is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) AsAutomationActionWorkspace

func (aa AutomationAction) AsAutomationActionWorkspace() (*AutomationActionWorkspace, bool)

AsAutomationActionWorkspace is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) AsBasicAutomationAction

func (aa AutomationAction) AsBasicAutomationAction() (BasicAutomationAction, bool)

AsBasicAutomationAction is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) MarshalJSON

func (aa AutomationAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutomationAction.

type AutomationActionEventHub

type AutomationActionEventHub struct {
	// EventHubResourceID - The target Event Hub Azure Resource ID.
	EventHubResourceID *string `json:"eventHubResourceId,omitempty"`
	// SasPolicyName - READ-ONLY; The target Event Hub SAS policy name.
	SasPolicyName *string `json:"sasPolicyName,omitempty"`
	// ConnectionString - The target Event Hub connection string (it will not be included in any response).
	ConnectionString *string `json:"connectionString,omitempty"`
	// ActionType - Possible values include: 'ActionTypeAutomationAction', 'ActionTypeLogicApp', 'ActionTypeEventHub', 'ActionTypeWorkspace'
	ActionType ActionType `json:"actionType,omitempty"`
}

AutomationActionEventHub the target Event Hub to which event data will be exported. To learn more about Security Center continuous export capabilities, visit https://aka.ms/ASCExportLearnMore

func (AutomationActionEventHub) AsAutomationAction

func (aaeh AutomationActionEventHub) AsAutomationAction() (*AutomationAction, bool)

AsAutomationAction is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) AsAutomationActionEventHub

func (aaeh AutomationActionEventHub) AsAutomationActionEventHub() (*AutomationActionEventHub, bool)

AsAutomationActionEventHub is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) AsAutomationActionLogicApp

func (aaeh AutomationActionEventHub) AsAutomationActionLogicApp() (*AutomationActionLogicApp, bool)

AsAutomationActionLogicApp is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) AsAutomationActionWorkspace

func (aaeh AutomationActionEventHub) AsAutomationActionWorkspace() (*AutomationActionWorkspace, bool)

AsAutomationActionWorkspace is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) AsBasicAutomationAction

func (aaeh AutomationActionEventHub) AsBasicAutomationAction() (BasicAutomationAction, bool)

AsBasicAutomationAction is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) MarshalJSON

func (aaeh AutomationActionEventHub) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutomationActionEventHub.

type AutomationActionLogicApp

type AutomationActionLogicApp struct {
	// LogicAppResourceID - The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions to trigger the Logic App
	LogicAppResourceID *string `json:"logicAppResourceId,omitempty"`
	// URI - The Logic App trigger URI endpoint (it will not be included in any response).
	URI *string `json:"uri,omitempty"`
	// ActionType - Possible values include: 'ActionTypeAutomationAction', 'ActionTypeLogicApp', 'ActionTypeEventHub', 'ActionTypeWorkspace'
	ActionType ActionType `json:"actionType,omitempty"`
}

AutomationActionLogicApp the logic app action that should be triggered. To learn more about Security Center's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore

func (AutomationActionLogicApp) AsAutomationAction

func (aala AutomationActionLogicApp) AsAutomationAction() (*AutomationAction, bool)

AsAutomationAction is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) AsAutomationActionEventHub

func (aala AutomationActionLogicApp) AsAutomationActionEventHub() (*AutomationActionEventHub, bool)

AsAutomationActionEventHub is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) AsAutomationActionLogicApp

func (aala AutomationActionLogicApp) AsAutomationActionLogicApp() (*AutomationActionLogicApp, bool)

AsAutomationActionLogicApp is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) AsAutomationActionWorkspace

func (aala AutomationActionLogicApp) AsAutomationActionWorkspace() (*AutomationActionWorkspace, bool)

AsAutomationActionWorkspace is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) AsBasicAutomationAction

func (aala AutomationActionLogicApp) AsBasicAutomationAction() (BasicAutomationAction, bool)

AsBasicAutomationAction is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) MarshalJSON

func (aala AutomationActionLogicApp) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutomationActionLogicApp.

type AutomationActionWorkspace

type AutomationActionWorkspace struct {
	// WorkspaceResourceID - The fully qualified Log Analytics Workspace Azure Resource ID.
	WorkspaceResourceID *string `json:"workspaceResourceId,omitempty"`
	// ActionType - Possible values include: 'ActionTypeAutomationAction', 'ActionTypeLogicApp', 'ActionTypeEventHub', 'ActionTypeWorkspace'
	ActionType ActionType `json:"actionType,omitempty"`
}

AutomationActionWorkspace the Log Analytics Workspace to which event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Security Center continuous export capabilities, visit https://aka.ms/ASCExportLearnMore

func (AutomationActionWorkspace) AsAutomationAction

func (aaw AutomationActionWorkspace) AsAutomationAction() (*AutomationAction, bool)

AsAutomationAction is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) AsAutomationActionEventHub

func (aaw AutomationActionWorkspace) AsAutomationActionEventHub() (*AutomationActionEventHub, bool)

AsAutomationActionEventHub is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) AsAutomationActionLogicApp

func (aaw AutomationActionWorkspace) AsAutomationActionLogicApp() (*AutomationActionLogicApp, bool)

AsAutomationActionLogicApp is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) AsAutomationActionWorkspace

func (aaw AutomationActionWorkspace) AsAutomationActionWorkspace() (*AutomationActionWorkspace, bool)

AsAutomationActionWorkspace is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) AsBasicAutomationAction

func (aaw AutomationActionWorkspace) AsBasicAutomationAction() (BasicAutomationAction, bool)

AsBasicAutomationAction is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) MarshalJSON

func (aaw AutomationActionWorkspace) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutomationActionWorkspace.

type AutomationList

type AutomationList struct {
	autorest.Response `json:"-"`
	// Value - The list of security automations under the given scope.
	Value *[]Automation `json:"value,omitempty"`
	// NextLink - READ-ONLY; The URI to fetch the next page.
	NextLink *string `json:"nextLink,omitempty"`
}

AutomationList list of security automations response.

func (AutomationList) IsEmpty

func (al AutomationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AutomationListIterator

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

AutomationListIterator provides access to a complete listing of Automation values.

func NewAutomationListIterator

func NewAutomationListIterator(page AutomationListPage) AutomationListIterator

Creates a new instance of the AutomationListIterator type.

func (*AutomationListIterator) Next

func (iter *AutomationListIterator) 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. Deprecated: Use NextWithContext() instead.

func (*AutomationListIterator) NextWithContext

func (iter *AutomationListIterator) NextWithContext(ctx context.Context) (err error)

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

func (AutomationListIterator) NotDone

func (iter AutomationListIterator) NotDone() bool

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

func (AutomationListIterator) Response

func (iter AutomationListIterator) Response() AutomationList

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

func (AutomationListIterator) Value

func (iter AutomationListIterator) Value() Automation

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

type AutomationListPage

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

AutomationListPage contains a page of Automation values.

func NewAutomationListPage

func NewAutomationListPage(getNextPage func(context.Context, AutomationList) (AutomationList, error)) AutomationListPage

Creates a new instance of the AutomationListPage type.

func (*AutomationListPage) Next

func (page *AutomationListPage) 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. Deprecated: Use NextWithContext() instead.

func (*AutomationListPage) NextWithContext

func (page *AutomationListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 (AutomationListPage) NotDone

func (page AutomationListPage) NotDone() bool

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

func (AutomationListPage) Response

func (page AutomationListPage) Response() AutomationList

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

func (AutomationListPage) Values

func (page AutomationListPage) Values() []Automation

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

type AutomationProperties

type AutomationProperties struct {
	// Description - The security automation description.
	Description *string `json:"description,omitempty"`
	// IsEnabled - Indicates whether the security automation is enabled.
	IsEnabled *bool `json:"isEnabled,omitempty"`
	// Scopes - A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
	Scopes *[]AutomationScope `json:"scopes,omitempty"`
	// Sources - A collection of the source event types which evaluate the security automation set of rules.
	Sources *[]AutomationSource `json:"sources,omitempty"`
	// Actions - A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.
	Actions *[]BasicAutomationAction `json:"actions,omitempty"`
}

AutomationProperties a set of properties that defines the behavior of the automation configuration. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas.

func (*AutomationProperties) UnmarshalJSON

func (ap *AutomationProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AutomationProperties struct.

type AutomationRuleSet

type AutomationRuleSet struct {
	Rules *[]AutomationTriggeringRule `json:"rules,omitempty"`
}

AutomationRuleSet a rule set which evaluates all its rules upon an event interception. Only when all the included rules in the rule set will be evaluated as 'true', will the event trigger the defined actions.

type AutomationScope

type AutomationScope struct {
	// Description - The resources scope description.
	Description *string `json:"description,omitempty"`
	// ScopePath - The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that subscription (fully qualified Azure resource IDs).
	ScopePath *string `json:"scopePath,omitempty"`
}

AutomationScope a single automation scope.

type AutomationSource

type AutomationSource struct {
	// EventSource - A valid event source type. Possible values include: 'Assessments', 'Alerts'
	EventSource EventSource `json:"eventSource,omitempty"`
	// RuleSets - A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical 'or').
	RuleSets *[]AutomationRuleSet `json:"ruleSets,omitempty"`
}

AutomationSource the source event types which evaluate the security automation set of rules. For example - security alerts and security assessments. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas.

type AutomationTriggeringRule

type AutomationTriggeringRule struct {
	// PropertyJPath - The JPath of the entity model property that should be checked.
	PropertyJPath *string `json:"propertyJPath,omitempty"`
	// PropertyType - The data type of the compared operands (string, integer, floating point number or a boolean [true/false]]. Possible values include: 'String', 'Integer', 'Number', 'Boolean'
	PropertyType PropertyType `json:"propertyType,omitempty"`
	// ExpectedValue - The expected value.
	ExpectedValue *string `json:"expectedValue,omitempty"`
	// Operator - A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType. Possible values include: 'Equals', 'GreaterThan', 'GreaterThanOrEqualTo', 'LesserThan', 'LesserThanOrEqualTo', 'NotEquals', 'Contains', 'StartsWith', 'EndsWith'
	Operator Operator `json:"operator,omitempty"`
}

AutomationTriggeringRule a rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set.

type AutomationValidationStatus

type AutomationValidationStatus struct {
	autorest.Response `json:"-"`
	// IsValid - Indicates whether the model is valid or not.
	IsValid *bool `json:"isValid,omitempty"`
	// Message - The validation message.
	Message *string `json:"message,omitempty"`
}

AutomationValidationStatus the security automation model state property bag.

type AutomationsClient

type AutomationsClient struct {
	BaseClient
}

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

func NewAutomationsClient

func NewAutomationsClient(subscriptionID string, ascLocation string) AutomationsClient

NewAutomationsClient creates an instance of the AutomationsClient client.

func NewAutomationsClientWithBaseURI

func NewAutomationsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) AutomationsClient

NewAutomationsClientWithBaseURI creates an instance of the AutomationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AutomationsClient) CreateOrUpdate

func (client AutomationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationName string, automation Automation) (result Automation, err error)

CreateOrUpdate creates or updates a security automation. If a security automation is already created and a subsequent request is issued for the same automation id, then it will be updated. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. automationName - the security automation name. automation - the security automation resource

func (AutomationsClient) CreateOrUpdatePreparer

func (client AutomationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationName string, automation Automation) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AutomationsClient) CreateOrUpdateResponder

func (client AutomationsClient) CreateOrUpdateResponder(resp *http.Response) (result Automation, err error)

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

func (AutomationsClient) CreateOrUpdateSender

func (client AutomationsClient) 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 (AutomationsClient) Delete

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

Delete deletes a security automation. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. automationName - the security automation name.

func (AutomationsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AutomationsClient) DeleteResponder

func (client AutomationsClient) 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 (AutomationsClient) DeleteSender

func (client AutomationsClient) 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 (AutomationsClient) Get

func (client AutomationsClient) Get(ctx context.Context, resourceGroupName string, automationName string) (result Automation, err error)

Get retrieves information about the model of a security automation. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. automationName - the security automation name.

func (AutomationsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AutomationsClient) GetResponder

func (client AutomationsClient) GetResponder(resp *http.Response) (result Automation, err error)

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

func (AutomationsClient) GetSender

func (client AutomationsClient) 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 (AutomationsClient) List

func (client AutomationsClient) List(ctx context.Context) (result AutomationListPage, err error)

List lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to get the next page of security automations for the specified subscription.

func (AutomationsClient) ListByResourceGroup

func (client AutomationsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AutomationListPage, err error)

ListByResourceGroup lists all the security automations in the specified resource group. Use the 'nextLink' property in the response to get the next page of security automations for the specified resource group. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive.

func (AutomationsClient) ListByResourceGroupComplete

func (client AutomationsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AutomationListIterator, err error)

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

func (AutomationsClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AutomationsClient) ListByResourceGroupResponder

func (client AutomationsClient) ListByResourceGroupResponder(resp *http.Response) (result AutomationList, err error)

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

func (AutomationsClient) ListByResourceGroupSender

func (client AutomationsClient) 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 (AutomationsClient) ListComplete

func (client AutomationsClient) ListComplete(ctx context.Context) (result AutomationListIterator, err error)

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

func (AutomationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (AutomationsClient) ListResponder

func (client AutomationsClient) ListResponder(resp *http.Response) (result AutomationList, err error)

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

func (AutomationsClient) ListSender

func (client AutomationsClient) 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 (AutomationsClient) Validate

func (client AutomationsClient) Validate(ctx context.Context, resourceGroupName string, automationName string, automation Automation) (result AutomationValidationStatus, err error)

Validate validates the security automation model before create or update. Any validation errors are returned to the client. Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. automationName - the security automation name. automation - the security automation resource

func (AutomationsClient) ValidatePreparer

func (client AutomationsClient) ValidatePreparer(ctx context.Context, resourceGroupName string, automationName string, automation Automation) (*http.Request, error)

ValidatePreparer prepares the Validate request.

func (AutomationsClient) ValidateResponder

func (client AutomationsClient) ValidateResponder(resp *http.Response) (result AutomationValidationStatus, err error)

ValidateResponder handles the response to the Validate request. The method always closes the http.Response Body.

func (AutomationsClient) ValidateSender

func (client AutomationsClient) ValidateSender(req *http.Request) (*http.Response, error)

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

type AwAssumeRoleAuthenticationDetailsProperties

type AwAssumeRoleAuthenticationDetailsProperties struct {
	// AccountID - READ-ONLY; The ID of the cloud account
	AccountID *string `json:"accountId,omitempty"`
	// AwsAssumeRoleArn - Assumed role ID is an identifier that you can use to create temporary security credentials.
	AwsAssumeRoleArn *string `json:"awsAssumeRoleArn,omitempty"`
	// AwsExternalID - A unique identifier that is required when you assume a role in another account.
	AwsExternalID *string `json:"awsExternalId,omitempty"`
	// AuthenticationProvisioningState - READ-ONLY; State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', 'IncorrectPolicy'
	AuthenticationProvisioningState AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty"`
	// GrantedPermissions - READ-ONLY; The permissions detected in the cloud account.
	GrantedPermissions *[]PermissionProperty `json:"grantedPermissions,omitempty"`
	// AuthenticationType - Possible values include: 'AuthenticationTypeAuthenticationDetailsProperties', 'AuthenticationTypeAwsCreds', 'AuthenticationTypeAwsAssumeRole', 'AuthenticationTypeGcpCredentials'
	AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}

AwAssumeRoleAuthenticationDetailsProperties AWS cloud account connector based assume role, the role enables delegating access to your AWS resources. The role is composed of role arn and external id, for more details, refer to <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user.html">Creating a Role to Delegate Permissions to an IAM User (write only)</a>

func (AwAssumeRoleAuthenticationDetailsProperties) AsAuthenticationDetailsProperties

func (aaradp AwAssumeRoleAuthenticationDetailsProperties) AsAuthenticationDetailsProperties() (*AuthenticationDetailsProperties, bool)

AsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) AsAwAssumeRoleAuthenticationDetailsProperties

func (aaradp AwAssumeRoleAuthenticationDetailsProperties) AsAwAssumeRoleAuthenticationDetailsProperties() (*AwAssumeRoleAuthenticationDetailsProperties, bool)

AsAwAssumeRoleAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) AsAwsCredsAuthenticationDetailsProperties

func (aaradp AwAssumeRoleAuthenticationDetailsProperties) AsAwsCredsAuthenticationDetailsProperties() (*AwsCredsAuthenticationDetailsProperties, bool)

AsAwsCredsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) AsBasicAuthenticationDetailsProperties

func (aaradp AwAssumeRoleAuthenticationDetailsProperties) AsBasicAuthenticationDetailsProperties() (BasicAuthenticationDetailsProperties, bool)

AsBasicAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) AsGcpCredentialsDetailsProperties

func (aaradp AwAssumeRoleAuthenticationDetailsProperties) AsGcpCredentialsDetailsProperties() (*GcpCredentialsDetailsProperties, bool)

AsGcpCredentialsDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) MarshalJSON

func (aaradp AwAssumeRoleAuthenticationDetailsProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AwAssumeRoleAuthenticationDetailsProperties.

type AwsCredsAuthenticationDetailsProperties

type AwsCredsAuthenticationDetailsProperties struct {
	// AccountID - READ-ONLY; The ID of the cloud account
	AccountID *string `json:"accountId,omitempty"`
	// AwsAccessKeyID - Public key element of the AWS credential object (write only)
	AwsAccessKeyID *string `json:"awsAccessKeyId,omitempty"`
	// AwsSecretAccessKey - Secret key element of the AWS credential object (write only)
	AwsSecretAccessKey *string `json:"awsSecretAccessKey,omitempty"`
	// AuthenticationProvisioningState - READ-ONLY; State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', 'IncorrectPolicy'
	AuthenticationProvisioningState AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty"`
	// GrantedPermissions - READ-ONLY; The permissions detected in the cloud account.
	GrantedPermissions *[]PermissionProperty `json:"grantedPermissions,omitempty"`
	// AuthenticationType - Possible values include: 'AuthenticationTypeAuthenticationDetailsProperties', 'AuthenticationTypeAwsCreds', 'AuthenticationTypeAwsAssumeRole', 'AuthenticationTypeGcpCredentials'
	AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}

AwsCredsAuthenticationDetailsProperties AWS cloud account connector based credentials, the credentials is composed of access key id and secret key, for more details, refer to <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html">Creating an IAM User in Your AWS Account (write only)</a>

func (AwsCredsAuthenticationDetailsProperties) AsAuthenticationDetailsProperties

func (acadp AwsCredsAuthenticationDetailsProperties) AsAuthenticationDetailsProperties() (*AuthenticationDetailsProperties, bool)

AsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) AsAwAssumeRoleAuthenticationDetailsProperties

func (acadp AwsCredsAuthenticationDetailsProperties) AsAwAssumeRoleAuthenticationDetailsProperties() (*AwAssumeRoleAuthenticationDetailsProperties, bool)

AsAwAssumeRoleAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) AsAwsCredsAuthenticationDetailsProperties

func (acadp AwsCredsAuthenticationDetailsProperties) AsAwsCredsAuthenticationDetailsProperties() (*AwsCredsAuthenticationDetailsProperties, bool)

AsAwsCredsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) AsBasicAuthenticationDetailsProperties

func (acadp AwsCredsAuthenticationDetailsProperties) AsBasicAuthenticationDetailsProperties() (BasicAuthenticationDetailsProperties, bool)

AsBasicAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) AsGcpCredentialsDetailsProperties

func (acadp AwsCredsAuthenticationDetailsProperties) AsGcpCredentialsDetailsProperties() (*GcpCredentialsDetailsProperties, bool)

AsGcpCredentialsDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) MarshalJSON

func (acadp AwsCredsAuthenticationDetailsProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AwsCredsAuthenticationDetailsProperties.

type AzureResourceDetails

type AzureResourceDetails struct {
	// ID - READ-ONLY; Azure resource Id of the assessed resource
	ID *string `json:"id,omitempty"`
	// Source - Possible values include: 'SourceResourceDetails', 'SourceOnPremise', 'SourceAzure'
	Source Source `json:"source,omitempty"`
}

AzureResourceDetails details of the Azure resource that was assessed

func (AzureResourceDetails) AsAzureResourceDetails

func (ard AzureResourceDetails) AsAzureResourceDetails() (*AzureResourceDetails, bool)

AsAzureResourceDetails is the BasicResourceDetails implementation for AzureResourceDetails.

func (AzureResourceDetails) AsBasicResourceDetails

func (ard AzureResourceDetails) AsBasicResourceDetails() (BasicResourceDetails, bool)

AsBasicResourceDetails is the BasicResourceDetails implementation for AzureResourceDetails.

func (AzureResourceDetails) AsOnPremiseResourceDetails

func (ard AzureResourceDetails) AsOnPremiseResourceDetails() (*OnPremiseResourceDetails, bool)

AsOnPremiseResourceDetails is the BasicResourceDetails implementation for AzureResourceDetails.

func (AzureResourceDetails) AsResourceDetails

func (ard AzureResourceDetails) AsResourceDetails() (*ResourceDetails, bool)

AsResourceDetails is the BasicResourceDetails implementation for AzureResourceDetails.

func (AzureResourceDetails) MarshalJSON

func (ard AzureResourceDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureResourceDetails.

type AzureResourceLink struct {
	// ID - READ-ONLY; Azure resource Id
	ID *string `json:"id,omitempty"`
}

AzureResourceLink describes an Azure resource with kind

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type BasicAdditionalData

type BasicAdditionalData interface {
	AsSQLServerVulnerabilityProperties() (*SQLServerVulnerabilityProperties, bool)
	AsContainerRegistryVulnerabilityProperties() (*ContainerRegistryVulnerabilityProperties, bool)
	AsServerVulnerabilityProperties() (*ServerVulnerabilityProperties, bool)
	AsAdditionalData() (*AdditionalData, bool)
}

BasicAdditionalData details of the sub-assessment

type BasicAuthenticationDetailsProperties

type BasicAuthenticationDetailsProperties interface {
	AsAwsCredsAuthenticationDetailsProperties() (*AwsCredsAuthenticationDetailsProperties, bool)
	AsAwAssumeRoleAuthenticationDetailsProperties() (*AwAssumeRoleAuthenticationDetailsProperties, bool)
	AsGcpCredentialsDetailsProperties() (*GcpCredentialsDetailsProperties, bool)
	AsAuthenticationDetailsProperties() (*AuthenticationDetailsProperties, bool)
}

BasicAuthenticationDetailsProperties settings for cloud authentication management

type BasicAutomationAction

type BasicAutomationAction interface {
	AsAutomationActionLogicApp() (*AutomationActionLogicApp, bool)
	AsAutomationActionEventHub() (*AutomationActionEventHub, bool)
	AsAutomationActionWorkspace() (*AutomationActionWorkspace, bool)
	AsAutomationAction() (*AutomationAction, bool)
}

BasicAutomationAction the action that should be triggered.

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 whose data is displayed by Azure Security Center.

type BasicResourceDetails

type BasicResourceDetails interface {
	AsOnPremiseResourceDetails() (*OnPremiseResourceDetails, bool)
	AsAzureResourceDetails() (*AzureResourceDetails, bool)
	AsResourceDetails() (*ResourceDetails, bool)
}

BasicResourceDetails details of the resource that was assessed

type CVE

type CVE struct {
	// Title - READ-ONLY; CVE title
	Title *string `json:"title,omitempty"`
	// Link - READ-ONLY; Link url
	Link *string `json:"link,omitempty"`
}

CVE CVE details

type CVSS

type CVSS struct {
	// Base - READ-ONLY; CVSS base
	Base *float64 `json:"base,omitempty"`
}

CVSS CVSS details

type CefExternalSecuritySolution

type CefExternalSecuritySolution struct {
	Properties *CefSolutionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type
	Type *string `json:"type,omitempty"`
	// Location - READ-ONLY; Location where the resource is stored
	Location *string `json:"location,omitempty"`
	// Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
	Kind KindEnum `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
<