azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v2.0/security Index | Files | Directories

package security

import "github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v2.0/security"

Package security implements the Azure ARM Security service API version .

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

Index

Package Files

adaptiveapplicationcontrols.go adaptivenetworkhardenings.go advancedthreatprotection.go alerts.go allowedconnections.go automations.go autoprovisioningsettings.go client.go compliances.go contacts.go devicesecuritygroups.go discoveredsecuritysolutions.go externalsecuritysolutions.go informationprotectionpolicies.go iotsecuritysolution.go iotsecuritysolutions.go iotsecuritysolutionsanalytics.go iotsecuritysolutionsanalyticsaggregatedalert.go iotsecuritysolutionsanalyticsaggregatedalerts.go iotsecuritysolutionsanalyticsrecommendation.go iotsecuritysolutionsanalyticsrecommendations.go iotsecuritysolutionsresourcegroup.go jitnetworkaccesspolicies.go locations.go models.go operations.go pricings.go regulatorycomplianceassessments.go regulatorycompliancecontrols.go regulatorycompliancestandards.go settings.go subassessments.go tasks.go topology.go version.go workspacesettings.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type AadConnectivityState Uses

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 Uses

func PossibleAadConnectivityStateValues() []AadConnectivityState

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

type AadConnectivityState1 Uses

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

AadConnectivityState1 describes an Azure resource with kind

type AadExternalSecuritySolution Uses

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 Uses

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

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsAtaExternalSecuritySolution Uses

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

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsBasicExternalSecuritySolution Uses

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

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsCefExternalSecuritySolution Uses

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

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) AsExternalSecuritySolution Uses

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

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AadExternalSecuritySolution.

func (AadExternalSecuritySolution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AadExternalSecuritySolution.

type AadSolutionProperties Uses

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 Uses

type Action string

Action enumerates the values for action.

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

func PossibleActionValues Uses

func PossibleActionValues() []Action

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

type ActionType Uses

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 Uses

func PossibleActionTypeValues() []ActionType

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

type AdaptiveApplicationControlsClient Uses

type AdaptiveApplicationControlsClient struct {
    BaseClient
}

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

func NewAdaptiveApplicationControlsClient Uses

func NewAdaptiveApplicationControlsClient(subscriptionID string, ascLocation string) AdaptiveApplicationControlsClient

NewAdaptiveApplicationControlsClient creates an instance of the AdaptiveApplicationControlsClient client.

func NewAdaptiveApplicationControlsClientWithBaseURI Uses

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) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (AdaptiveApplicationControlsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (AdaptiveApplicationControlsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

PutPreparer prepares the Put request.

func (AdaptiveApplicationControlsClient) PutResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for AdaptiveNetworkHardening.

func (*AdaptiveNetworkHardening) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AdaptiveNetworkHardening struct.

type AdaptiveNetworkHardeningEnforceRequest Uses

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 Uses

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 Uses

type AdaptiveNetworkHardeningsClient struct {
    BaseClient
}

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

func NewAdaptiveNetworkHardeningsClient Uses

func NewAdaptiveNetworkHardeningsClient(subscriptionID string, ascLocation string) AdaptiveNetworkHardeningsClient

NewAdaptiveNetworkHardeningsClient creates an instance of the AdaptiveNetworkHardeningsClient client.

func NewAdaptiveNetworkHardeningsClientWithBaseURI Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type AdaptiveNetworkHardeningsEnforceFuture struct {
    azure.Future
}

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

func (*AdaptiveNetworkHardeningsEnforceFuture) Result Uses

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 Uses

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 Uses

func (anhl AdaptiveNetworkHardeningsList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AdaptiveNetworkHardeningsListIterator Uses

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

AdaptiveNetworkHardeningsListIterator provides access to a complete listing of AdaptiveNetworkHardening values.

func NewAdaptiveNetworkHardeningsListIterator Uses

func NewAdaptiveNetworkHardeningsListIterator(page AdaptiveNetworkHardeningsListPage) AdaptiveNetworkHardeningsListIterator

Creates a new instance of the AdaptiveNetworkHardeningsListIterator type.

func (*AdaptiveNetworkHardeningsListIterator) Next Uses

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 Uses

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 Uses

func (iter AdaptiveNetworkHardeningsListIterator) NotDone() bool

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

func (AdaptiveNetworkHardeningsListIterator) Response Uses

func (iter AdaptiveNetworkHardeningsListIterator) Response() AdaptiveNetworkHardeningsList

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

func (AdaptiveNetworkHardeningsListIterator) Value Uses

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 Uses

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

AdaptiveNetworkHardeningsListPage contains a page of AdaptiveNetworkHardening values.

func NewAdaptiveNetworkHardeningsListPage Uses

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

Creates a new instance of the AdaptiveNetworkHardeningsListPage type.

func (*AdaptiveNetworkHardeningsListPage) Next Uses

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 Uses

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 Uses

func (page AdaptiveNetworkHardeningsListPage) NotDone() bool

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

func (AdaptiveNetworkHardeningsListPage) Response Uses

func (page AdaptiveNetworkHardeningsListPage) Response() AdaptiveNetworkHardeningsList

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

func (AdaptiveNetworkHardeningsListPage) Values Uses

func (page AdaptiveNetworkHardeningsListPage) Values() []AdaptiveNetworkHardening

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

type AdditionalData Uses

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 Uses

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

AsAdditionalData is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) AsBasicAdditionalData Uses

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

AsBasicAdditionalData is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) AsContainerRegistryVulnerabilityProperties Uses

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

AsContainerRegistryVulnerabilityProperties is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) AsSQLServerVulnerabilityProperties Uses

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

AsSQLServerVulnerabilityProperties is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) AsServerVulnerabilityProperties Uses

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

AsServerVulnerabilityProperties is the BasicAdditionalData implementation for AdditionalData.

func (AdditionalData) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AdditionalData.

type AdvancedThreatProtectionClient Uses

type AdvancedThreatProtectionClient struct {
    BaseClient
}

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

func NewAdvancedThreatProtectionClient Uses

func NewAdvancedThreatProtectionClient(subscriptionID string, ascLocation string) AdvancedThreatProtectionClient

NewAdvancedThreatProtectionClient creates an instance of the AdvancedThreatProtectionClient client.

func NewAdvancedThreatProtectionClientWithBaseURI Uses

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 Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (AdvancedThreatProtectionClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (AdvancedThreatProtectionClient) GetResponder Uses

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 Uses

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 Uses

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

AdvancedThreatProtectionProperties the Advanced Threat Protection settings.

type AdvancedThreatProtectionSetting Uses

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 Uses

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

MarshalJSON is the custom marshaler for AdvancedThreatProtectionSetting.

func (*AdvancedThreatProtectionSetting) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AdvancedThreatProtectionSetting struct.

type Alert Uses

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 Uses

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

MarshalJSON is the custom marshaler for Alert.

func (*Alert) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Alert struct.

type AlertConfidenceReason Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for AlertEntity.

func (*AlertEntity) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AlertEntity struct.

type AlertList Uses

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 Uses

func (al AlertList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AlertListIterator Uses

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

AlertListIterator provides access to a complete listing of Alert values.

func NewAlertListIterator Uses

func NewAlertListIterator(page AlertListPage) AlertListIterator

Creates a new instance of the AlertListIterator type.

func (*AlertListIterator) Next Uses

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 Uses

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 Uses

func (iter AlertListIterator) NotDone() bool

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

func (AlertListIterator) Response Uses

func (iter AlertListIterator) Response() AlertList

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

func (AlertListIterator) Value Uses

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 Uses

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

AlertListPage contains a page of Alert values.

func NewAlertListPage Uses

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

Creates a new instance of the AlertListPage type.

func (*AlertListPage) Next Uses

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 Uses

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 Uses

func (page AlertListPage) NotDone() bool

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

func (AlertListPage) Response Uses

func (page AlertListPage) Response() AlertList

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

func (AlertListPage) Values Uses

func (page AlertListPage) Values() []Alert

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

type AlertNotifications Uses

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 Uses

func PossibleAlertNotificationsValues() []AlertNotifications

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

type AlertProperties Uses

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 Uses

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

MarshalJSON is the custom marshaler for AlertProperties.

type AlertsClient Uses

type AlertsClient struct {
    BaseClient
}

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

func NewAlertsClient Uses

func NewAlertsClient(subscriptionID string, ascLocation string) AlertsClient

NewAlertsClient creates an instance of the AlertsClient client.

func NewAlertsClientWithBaseURI Uses

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 Uses

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 Uses

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

GetResourceGroupLevelAlertsPreparer prepares the GetResourceGroupLevelAlerts request.

func (AlertsClient) GetResourceGroupLevelAlertsResponder Uses

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 Uses

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 Uses

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 Uses

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

GetSubscriptionLevelAlertPreparer prepares the GetSubscriptionLevelAlert request.

func (AlertsClient) GetSubscriptionLevelAlertResponder Uses

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 Uses

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 Uses

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

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

func (AlertsClient) ListByResourceGroup Uses

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

func (AlertsClient) ListByResourceGroupComplete Uses

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

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

func (AlertsClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AlertsClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

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

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

func (AlertsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (AlertsClient) ListResourceGroupLevelAlertsByRegion Uses

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

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

func (AlertsClient) ListResourceGroupLevelAlertsByRegionComplete Uses

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

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

func (AlertsClient) ListResourceGroupLevelAlertsByRegionPreparer Uses

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

ListResourceGroupLevelAlertsByRegionPreparer prepares the ListResourceGroupLevelAlertsByRegion request.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

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

func (AlertsClient) ListSubscriptionLevelAlertsByRegionComplete Uses

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

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

func (AlertsClient) ListSubscriptionLevelAlertsByRegionPreparer Uses

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

ListSubscriptionLevelAlertsByRegionPreparer prepares the ListSubscriptionLevelAlertsByRegion request.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdateResourceGroupLevelAlertStateToDismissPreparer prepares the UpdateResourceGroupLevelAlertStateToDismiss request.

func (AlertsClient) UpdateResourceGroupLevelAlertStateToDismissResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdateResourceGroupLevelAlertStateToReactivatePreparer prepares the UpdateResourceGroupLevelAlertStateToReactivate request.

func (AlertsClient) UpdateResourceGroupLevelAlertStateToReactivateResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdateSubscriptionLevelAlertStateToDismissPreparer prepares the UpdateSubscriptionLevelAlertStateToDismiss request.

func (AlertsClient) UpdateSubscriptionLevelAlertStateToDismissResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdateSubscriptionLevelAlertStateToReactivatePreparer prepares the UpdateSubscriptionLevelAlertStateToReactivate request.

func (AlertsClient) UpdateSubscriptionLevelAlertStateToReactivateResponder Uses

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 Uses

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 AlertsToAdmins Uses

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 Uses

func PossibleAlertsToAdminsValues() []AlertsToAdmins

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

type AllowedConnectionsClient Uses

type AllowedConnectionsClient struct {
    BaseClient
}

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

func NewAllowedConnectionsClient Uses

func NewAllowedConnectionsClient(subscriptionID string, ascLocation string) AllowedConnectionsClient

NewAllowedConnectionsClient creates an instance of the AllowedConnectionsClient client.

func NewAllowedConnectionsClientWithBaseURI Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (AllowedConnectionsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

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

func (AllowedConnectionsClient) ListByHomeRegionPreparer Uses

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

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (AllowedConnectionsClient) ListByHomeRegionResponder Uses

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 Uses

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 Uses

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

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

func (AllowedConnectionsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (AllowedConnectionsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

func (ACL AllowedConnectionsList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AllowedConnectionsListIterator Uses

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

AllowedConnectionsListIterator provides access to a complete listing of AllowedConnectionsResource values.

func NewAllowedConnectionsListIterator Uses

func NewAllowedConnectionsListIterator(page AllowedConnectionsListPage) AllowedConnectionsListIterator

Creates a new instance of the AllowedConnectionsListIterator type.

func (*AllowedConnectionsListIterator) Next Uses

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 Uses

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 Uses

func (iter AllowedConnectionsListIterator) NotDone() bool

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

func (AllowedConnectionsListIterator) Response Uses

func (iter AllowedConnectionsListIterator) Response() AllowedConnectionsList

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

func (AllowedConnectionsListIterator) Value Uses

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 Uses

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

AllowedConnectionsListPage contains a page of AllowedConnectionsResource values.

func NewAllowedConnectionsListPage Uses

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

Creates a new instance of the AllowedConnectionsListPage type.

func (*AllowedConnectionsListPage) Next Uses

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 Uses

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 Uses

func (page AllowedConnectionsListPage) NotDone() bool

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

func (AllowedConnectionsListPage) Response Uses

func (page AllowedConnectionsListPage) Response() AllowedConnectionsList

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

func (AllowedConnectionsListPage) Values Uses

func (page AllowedConnectionsListPage) Values() []AllowedConnectionsResource

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

type AllowedConnectionsResource Uses

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 Uses

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

MarshalJSON is the custom marshaler for AllowedConnectionsResource.

func (*AllowedConnectionsResource) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AllowedConnectionsResource struct.

type AllowedConnectionsResourceProperties Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for AppWhitelistingGroup.

func (*AppWhitelistingGroup) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AppWhitelistingGroup struct.

type AppWhitelistingGroupData Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (all AscLocationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AscLocationListIterator Uses

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

AscLocationListIterator provides access to a complete listing of AscLocation values.

func NewAscLocationListIterator Uses

func NewAscLocationListIterator(page AscLocationListPage) AscLocationListIterator

Creates a new instance of the AscLocationListIterator type.

func (*AscLocationListIterator) Next Uses

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 Uses

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 Uses

func (iter AscLocationListIterator) NotDone() bool

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

func (AscLocationListIterator) Response Uses

func (iter AscLocationListIterator) Response() AscLocationList

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

func (AscLocationListIterator) Value Uses

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 Uses

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

AscLocationListPage contains a page of AscLocation values.

func NewAscLocationListPage Uses

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

Creates a new instance of the AscLocationListPage type.

func (*AscLocationListPage) Next Uses

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 Uses

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 Uses

func (page AscLocationListPage) NotDone() bool

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

func (AscLocationListPage) Response Uses

func (page AscLocationListPage) Response() AscLocationList

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

func (AscLocationListPage) Values Uses

func (page AscLocationListPage) Values() []AscLocation

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

type AssessedResourceType Uses

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 Uses

func PossibleAssessedResourceTypeValues() []AssessedResourceType

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

type AtaExternalSecuritySolution Uses

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 Uses

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

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsAtaExternalSecuritySolution Uses

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

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsBasicExternalSecuritySolution Uses

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

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsCefExternalSecuritySolution Uses

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

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) AsExternalSecuritySolution Uses

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

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for AtaExternalSecuritySolution.

func (AtaExternalSecuritySolution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AtaExternalSecuritySolution.

type AtaSolutionProperties Uses

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 Uses

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

MarshalJSON is the custom marshaler for AtaSolutionProperties.

func (*AtaSolutionProperties) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AtaSolutionProperties struct.

type AutoProvision Uses

type AutoProvision string

AutoProvision enumerates the values for auto provision.

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

func PossibleAutoProvisionValues Uses

func PossibleAutoProvisionValues() []AutoProvision

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

type AutoProvisioningSetting Uses

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 Uses

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

MarshalJSON is the custom marshaler for AutoProvisioningSetting.

func (*AutoProvisioningSetting) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AutoProvisioningSetting struct.

type AutoProvisioningSettingList Uses

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 Uses

func (apsl AutoProvisioningSettingList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AutoProvisioningSettingListIterator Uses

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

AutoProvisioningSettingListIterator provides access to a complete listing of AutoProvisioningSetting values.

func NewAutoProvisioningSettingListIterator Uses

func NewAutoProvisioningSettingListIterator(page AutoProvisioningSettingListPage) AutoProvisioningSettingListIterator

Creates a new instance of the AutoProvisioningSettingListIterator type.

func (*AutoProvisioningSettingListIterator) Next Uses

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 Uses

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 Uses

func (iter AutoProvisioningSettingListIterator) NotDone() bool

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

func (AutoProvisioningSettingListIterator) Response Uses

func (iter AutoProvisioningSettingListIterator) Response() AutoProvisioningSettingList

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

func (AutoProvisioningSettingListIterator) Value Uses

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 Uses

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

AutoProvisioningSettingListPage contains a page of AutoProvisioningSetting values.

func NewAutoProvisioningSettingListPage Uses

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

Creates a new instance of the AutoProvisioningSettingListPage type.

func (*AutoProvisioningSettingListPage) Next Uses

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 Uses

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 Uses

func (page AutoProvisioningSettingListPage) NotDone() bool

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

func (AutoProvisioningSettingListPage) Response Uses

func (page AutoProvisioningSettingListPage) Response() AutoProvisioningSettingList

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

func (AutoProvisioningSettingListPage) Values Uses

func (page AutoProvisioningSettingListPage) Values() []AutoProvisioningSetting

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

type AutoProvisioningSettingProperties Uses

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 Uses

type AutoProvisioningSettingsClient struct {
    BaseClient
}

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

func NewAutoProvisioningSettingsClient Uses

func NewAutoProvisioningSettingsClient(subscriptionID string, ascLocation string) AutoProvisioningSettingsClient

NewAutoProvisioningSettingsClient creates an instance of the AutoProvisioningSettingsClient client.

func NewAutoProvisioningSettingsClientWithBaseURI Uses

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 Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (AutoProvisioningSettingsClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (AutoProvisioningSettingsClient) GetResponder Uses

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 Uses

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 Uses

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

List exposes the auto provisioning settings of the subscriptions

func (AutoProvisioningSettingsClient) ListComplete Uses

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

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

func (AutoProvisioningSettingsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (AutoProvisioningSettingsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Automation.

func (*Automation) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Automation struct.

type AutomationAction Uses

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 Uses

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

AsAutomationAction is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) AsAutomationActionEventHub Uses

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

AsAutomationActionEventHub is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) AsAutomationActionLogicApp Uses

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

AsAutomationActionLogicApp is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) AsAutomationActionWorkspace Uses

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

AsAutomationActionWorkspace is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) AsBasicAutomationAction Uses

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

AsBasicAutomationAction is the BasicAutomationAction implementation for AutomationAction.

func (AutomationAction) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AutomationAction.

type AutomationActionEventHub Uses

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 Uses

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

AsAutomationAction is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) AsAutomationActionEventHub Uses

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

AsAutomationActionEventHub is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) AsAutomationActionLogicApp Uses

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

AsAutomationActionLogicApp is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) AsAutomationActionWorkspace Uses

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

AsAutomationActionWorkspace is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) AsBasicAutomationAction Uses

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

AsBasicAutomationAction is the BasicAutomationAction implementation for AutomationActionEventHub.

func (AutomationActionEventHub) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AutomationActionEventHub.

type AutomationActionLogicApp Uses

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 Uses

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

AsAutomationAction is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) AsAutomationActionEventHub Uses

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

AsAutomationActionEventHub is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) AsAutomationActionLogicApp Uses

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

AsAutomationActionLogicApp is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) AsAutomationActionWorkspace Uses

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

AsAutomationActionWorkspace is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) AsBasicAutomationAction Uses

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

AsBasicAutomationAction is the BasicAutomationAction implementation for AutomationActionLogicApp.

func (AutomationActionLogicApp) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AutomationActionLogicApp.

type AutomationActionWorkspace Uses

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 Uses

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

AsAutomationAction is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) AsAutomationActionEventHub Uses

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

AsAutomationActionEventHub is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) AsAutomationActionLogicApp Uses

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

AsAutomationActionLogicApp is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) AsAutomationActionWorkspace Uses

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

AsAutomationActionWorkspace is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) AsBasicAutomationAction Uses

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

AsBasicAutomationAction is the BasicAutomationAction implementation for AutomationActionWorkspace.

func (AutomationActionWorkspace) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AutomationActionWorkspace.

type AutomationList Uses

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 Uses

func (al AutomationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AutomationListIterator Uses

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

AutomationListIterator provides access to a complete listing of Automation values.

func NewAutomationListIterator Uses

func NewAutomationListIterator(page AutomationListPage) AutomationListIterator

Creates a new instance of the AutomationListIterator type.

func (*AutomationListIterator) Next Uses

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 Uses

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 Uses

func (iter AutomationListIterator) NotDone() bool

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

func (AutomationListIterator) Response Uses

func (iter AutomationListIterator) Response() AutomationList

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

func (AutomationListIterator) Value Uses

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 Uses

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

AutomationListPage contains a page of Automation values.

func NewAutomationListPage Uses

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

Creates a new instance of the AutomationListPage type.

func (*AutomationListPage) Next Uses

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 Uses

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 Uses

func (page AutomationListPage) NotDone() bool

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

func (AutomationListPage) Response Uses

func (page AutomationListPage) Response() AutomationList

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

func (AutomationListPage) Values Uses

func (page AutomationListPage) Values() []Automation

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

type AutomationProperties Uses

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 Uses

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

UnmarshalJSON is the custom unmarshaler for AutomationProperties struct.

type AutomationRuleSet Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type AutomationsClient struct {
    BaseClient
}

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

func NewAutomationsClient Uses

func NewAutomationsClient(subscriptionID string, ascLocation string) AutomationsClient

NewAutomationsClient creates an instance of the AutomationsClient client.

func NewAutomationsClientWithBaseURI Uses

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 Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AutomationsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (AutomationsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (AutomationsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AutomationsClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

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

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

func (AutomationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (AutomationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

ValidatePreparer prepares the Validate request.

func (AutomationsClient) ValidateResponder Uses

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 Uses

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 AzureResourceDetails Uses

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 Uses

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

AsAzureResourceDetails is the BasicResourceDetails implementation for AzureResourceDetails.

func (AzureResourceDetails) AsBasicResourceDetails Uses

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

AsBasicResourceDetails is the BasicResourceDetails implementation for AzureResourceDetails.

func (AzureResourceDetails) AsOnPremiseResourceDetails Uses

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

AsOnPremiseResourceDetails is the BasicResourceDetails implementation for AzureResourceDetails.

func (AzureResourceDetails) AsResourceDetails Uses

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

AsResourceDetails is the BasicResourceDetails implementation for AzureResourceDetails.

func (AzureResourceDetails) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AzureResourceDetails.

type BaseClient Uses

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

BaseClient is the base client for Security.

func New Uses

func New(subscriptionID string, ascLocation string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

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 Uses

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

BasicAdditionalData details of the sub-assessment

type BasicAutomationAction Uses

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

BasicAutomationAction the action that should be triggered.

type BasicExternalSecuritySolution Uses

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 Uses

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

BasicResourceDetails details of the resource that was assessed

type CVE Uses

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 Uses

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

CVSS CVSS details

type CefExternalSecuritySolution Uses

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 Uses

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

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsAtaExternalSecuritySolution Uses

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

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsBasicExternalSecuritySolution Uses

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

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsCefExternalSecuritySolution Uses

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

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) AsExternalSecuritySolution Uses

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

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for CefExternalSecuritySolution.

func (CefExternalSecuritySolution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CefExternalSecuritySolution.

type CefSolutionProperties Uses

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

CefSolutionProperties ...

func (CefSolutionProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CefSolutionProperties.

func (*CefSolutionProperties) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CefSolutionProperties struct.

type CloudError Uses

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

CloudError error response structure.

func (CloudError) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CloudError.

func (*CloudError) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CloudError struct.

type CloudErrorBody Uses

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

CloudErrorBody error details.

type Compliance Uses

type Compliance struct {
    autorest.Response `json:"-"`
    // ComplianceProperties - Compliance data
    *ComplianceProperties `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"`
}

Compliance compliance of a scope

func (Compliance) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Compliance.

func (*Compliance) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Compliance struct.

type ComplianceList Uses

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

ComplianceList list of Compliance objects response

func (ComplianceList) IsEmpty Uses

func (cl ComplianceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ComplianceListIterator Uses

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

ComplianceListIterator provides access to a complete listing of Compliance values.

func NewComplianceListIterator Uses

func NewComplianceListIterator(page ComplianceListPage) ComplianceListIterator

Creates a new instance of the ComplianceListIterator type.

func (*ComplianceListIterator) Next Uses

func (iter *ComplianceListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ComplianceListIterator) NextWithContext Uses

func (iter *ComplianceListIterator) 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 (ComplianceListIterator) NotDone Uses

func (iter ComplianceListIterator) NotDone() bool

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

func (ComplianceListIterator) Response Uses

func (iter ComplianceListIterator) Response() ComplianceList

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

func (ComplianceListIterator) Value Uses

func (iter ComplianceListIterator) Value() Compliance

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

type ComplianceListPage Uses

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

ComplianceListPage contains a page of Compliance values.

func NewComplianceListPage Uses

func NewComplianceListPage(getNextPage func(context.Context, ComplianceList) (ComplianceList, error)) ComplianceListPage

Creates a new instance of the ComplianceListPage type.

func (*ComplianceListPage) Next Uses

func (page *ComplianceListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ComplianceListPage) NextWithContext Uses

func (page *ComplianceListPage) 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 (ComplianceListPage) NotDone Uses

func (page ComplianceListPage) NotDone() bool

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

func (ComplianceListPage) Response Uses

func (page ComplianceListPage) Response() ComplianceList

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

func (ComplianceListPage) Values Uses

func (page ComplianceListPage) Values() []Compliance

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

type ComplianceProperties Uses

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

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

type ComplianceSegment Uses

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

ComplianceSegment a segment of a compliance assessment.

type CompliancesClient Uses

type CompliancesClient struct {
    BaseClient
}

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

func NewCompliancesClient Uses

func NewCompliancesClient(subscriptionID string, ascLocation string) CompliancesClient

NewCompliancesClient creates an instance of the CompliancesClient client.

func NewCompliancesClientWithBaseURI Uses

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

NewCompliancesClientWithBaseURI creates an instance of the CompliancesClient 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 (CompliancesClient) Get Uses

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

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

func (CompliancesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (CompliancesClient) GetResponder Uses

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

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

func (CompliancesClient) GetSender Uses

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

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

func (CompliancesClient) List Uses

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

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

func (CompliancesClient) ListComplete Uses

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

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

func (CompliancesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (CompliancesClient) ListResponder Uses

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

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

func (CompliancesClient) ListSender Uses

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

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

type ConfigurationStatus Uses

type ConfigurationStatus string

ConfigurationStatus enumerates the values for configuration status.

const (
    // Configured ...
    Configured ConfigurationStatus = "Configured"
    // Failed ...
    Failed ConfigurationStatus = "Failed"
    // InProgress ...
    InProgress ConfigurationStatus = "InProgress"
    // NoStatus ...
    NoStatus ConfigurationStatus = "NoStatus"
    // NotConfigured ...
    NotConfigured ConfigurationStatus = "NotConfigured"
)

func PossibleConfigurationStatusValues Uses

func PossibleConfigurationStatusValues() []ConfigurationStatus

PossibleConfigurationStatusValues returns an array of possible values for the ConfigurationStatus const type.

type ConfigurationStatus1 Uses

type ConfigurationStatus1 string

ConfigurationStatus1 enumerates the values for configuration status 1.

const (
    // ConfigurationStatus1Configured ...
    ConfigurationStatus1Configured ConfigurationStatus1 = "Configured"
    // ConfigurationStatus1Failed ...
    ConfigurationStatus1Failed ConfigurationStatus1 = "Failed"
    // ConfigurationStatus1InProgress ...
    ConfigurationStatus1InProgress ConfigurationStatus1 = "InProgress"
    // ConfigurationStatus1NoStatus ...
    ConfigurationStatus1NoStatus ConfigurationStatus1 = "NoStatus"
    // ConfigurationStatus1NotConfigured ...
    ConfigurationStatus1NotConfigured ConfigurationStatus1 = "NotConfigured"
)

func PossibleConfigurationStatus1Values Uses

func PossibleConfigurationStatus1Values() []ConfigurationStatus1

PossibleConfigurationStatus1Values returns an array of possible values for the ConfigurationStatus1 const type.

type ConfigurationStatus2 Uses

type ConfigurationStatus2 string

ConfigurationStatus2 enumerates the values for configuration status 2.

const (
    // ConfigurationStatus2Configured ...
    ConfigurationStatus2Configured ConfigurationStatus2 = "Configured"
    // ConfigurationStatus2Failed ...
    ConfigurationStatus2Failed ConfigurationStatus2 = "Failed"
    // ConfigurationStatus2InProgress ...
    ConfigurationStatus2InProgress ConfigurationStatus2 = "InProgress"
    // ConfigurationStatus2NoStatus ...
    ConfigurationStatus2NoStatus ConfigurationStatus2 = "NoStatus"
    // ConfigurationStatus2NotConfigured ...
    ConfigurationStatus2NotConfigured ConfigurationStatus2 = "NotConfigured"
)

func PossibleConfigurationStatus2Values Uses

func PossibleConfigurationStatus2Values() []ConfigurationStatus2

PossibleConfigurationStatus2Values returns an array of possible values for the ConfigurationStatus2 const type.

type ConnectableResource Uses

type ConnectableResource struct {
    // ID - READ-ONLY; The Azure resource id
    ID  *string `json:"id,omitempty"`
    // InboundConnectedResources - READ-ONLY; The list of Azure resources that the resource has inbound allowed connection from
    InboundConnectedResources *[]ConnectedResource `json:"inboundConnectedResources,omitempty"`
    // OutboundConnectedResources - READ-ONLY; The list of Azure resources that the resource has outbound allowed connection to
    OutboundConnectedResources *[]ConnectedResource `json:"outboundConnectedResources,omitempty"`
}

ConnectableResource describes the allowed inbound and outbound traffic of an Azure resource

type ConnectedResource Uses

type ConnectedResource struct {
    // ConnectedResourceID - READ-ONLY; The Azure resource id of the connected resource
    ConnectedResourceID *string `json:"connectedResourceId,omitempty"`
    // TCPPorts - READ-ONLY; The allowed tcp ports
    TCPPorts *string `json:"tcpPorts,omitempty"`
    // UDPPorts - READ-ONLY; The allowed udp ports
    UDPPorts *string `json:"udpPorts,omitempty"`
}

ConnectedResource describes properties of a connected resource

type ConnectedWorkspace Uses

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

ConnectedWorkspace ...

type ConnectionType Uses

type ConnectionType string

ConnectionType enumerates the values for connection type.

const (
    // External ...
    External ConnectionType = "External"
    // Internal ...
    Internal ConnectionType = "Internal"
)

func PossibleConnectionTypeValues Uses

func PossibleConnectionTypeValues() []ConnectionType

PossibleConnectionTypeValues returns an array of possible values for the ConnectionType const type.

type Contact Uses

type Contact struct {
    autorest.Response `json:"-"`
    // ContactProperties - Security contact data
    *ContactProperties `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"`
}

Contact contact details for security issues

func (Contact) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Contact.

func (*Contact) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Contact struct.

type ContactList Uses

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

ContactList list of security contacts response

func (ContactList) IsEmpty Uses

func (cl ContactList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ContactListIterator Uses

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

ContactListIterator provides access to a complete listing of Contact values.

func NewContactListIterator Uses

func NewContactListIterator(page ContactListPage) ContactListIterator

Creates a new instance of the ContactListIterator type.

func (*ContactListIterator) Next Uses

func (iter *ContactListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ContactListIterator) NextWithContext Uses

func (iter *ContactListIterator) 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 (ContactListIterator) NotDone Uses

func (iter ContactListIterator) NotDone() bool

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

func (ContactListIterator) Response Uses

func (iter ContactListIterator) Response() ContactList

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

func (ContactListIterator) Value Uses

func (iter ContactListIterator) Value() Contact

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

type ContactListPage Uses

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

ContactListPage contains a page of Contact values.

func NewContactListPage Uses

func NewContactListPage(getNextPage func(context.Context, ContactList) (ContactList, error)) ContactListPage

Creates a new instance of the ContactListPage type.

func (*ContactListPage) Next Uses

func (page *ContactListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ContactListPage) NextWithContext Uses

func (page *ContactListPage) 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 (ContactListPage) NotDone Uses

func (page ContactListPage) NotDone() bool

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

func (ContactListPage) Response Uses

func (page ContactListPage) Response() ContactList

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

func (ContactListPage) Values Uses

func (page ContactListPage) Values() []Contact

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

type ContactProperties Uses

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

ContactProperties describes security contact properties

type ContactsClient Uses

type ContactsClient struct {
    BaseClient
}

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

func NewContactsClient Uses

func NewContactsClient(subscriptionID string, ascLocation string) ContactsClient

NewContactsClient creates an instance of the ContactsClient client.

func NewContactsClientWithBaseURI Uses

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

NewContactsClientWithBaseURI creates an instance of the ContactsClient 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 (ContactsClient) Create Uses

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

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

func (ContactsClient) CreatePreparer Uses

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

CreatePreparer prepares the Create request.

func (ContactsClient) CreateResponder Uses

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

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

func (ContactsClient) CreateSender Uses

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

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

func (ContactsClient) Delete Uses

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

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

func (ContactsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ContactsClient) DeleteResponder Uses

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

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

func (ContactsClient) DeleteSender Uses

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

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

func (ContactsClient) Get Uses

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

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

func (ContactsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ContactsClient) GetResponder Uses

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

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

func (ContactsClient) GetSender Uses

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

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

func (ContactsClient) List Uses

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

List security contact configurations for the subscription

func (ContactsClient) ListComplete Uses

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

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

func (ContactsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ContactsClient) ListResponder Uses

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

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

func (ContactsClient) ListSender Uses

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

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

func (ContactsClient) Update Uses

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

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

func (ContactsClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (ContactsClient) UpdateResponder Uses

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

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

func (ContactsClient) UpdateSender Uses

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

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

type ContainerRegistryVulnerabilityProperties Uses

type ContainerRegistryVulnerabilityProperties struct {
    // Type - READ-ONLY; Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability
    Type *string `json:"type,omitempty"`
    // Cvss - READ-ONLY; Dictionary from cvss version to cvss details object
    Cvss map[string]*CVSS `json:"cvss"`
    // Patchable - READ-ONLY; Indicates whether a patch is available or not
    Patchable *bool `json:"patchable,omitempty"`
    // Cve - READ-ONLY; List of CVEs
    Cve *[]CVE `json:"cve,omitempty"`
    // PublishedTime - READ-ONLY; Published time
    PublishedTime *date.Time `json:"publishedTime,omitempty"`
    // VendorReferences - READ-ONLY
    VendorReferences *[]VendorReference `json:"vendorReferences,omitempty"`
    // RepositoryName - READ-ONLY; Name of the repository which the vulnerable image belongs to
    RepositoryName *string `json:"repositoryName,omitempty"`
    // ImageDigest - READ-ONLY; Digest of the vulnerable image
    ImageDigest *string `json:"imageDigest,omitempty"`
    // AssessedResourceType - Possible values include: 'AssessedResourceTypeAdditionalData', 'AssessedResourceTypeSQLServerVulnerability', 'AssessedResourceTypeContainerRegistryVulnerability', 'AssessedResourceTypeServerVulnerabilityAssessment'
    AssessedResourceType AssessedResourceType `json:"assessedResourceType,omitempty"`
}

ContainerRegistryVulnerabilityProperties additional context fields for container registry Vulnerability assessment

func (ContainerRegistryVulnerabilityProperties) AsAdditionalData Uses

func (crvp ContainerRegistryVulnerabilityProperties) AsAdditionalData() (*AdditionalData, bool)

AsAdditionalData is the BasicAdditionalData implementation for ContainerRegistryVulnerabilityProperties.

func (ContainerRegistryVulnerabilityProperties) AsBasicAdditionalData Uses

func (crvp ContainerRegistryVulnerabilityProperties) AsBasicAdditionalData() (BasicAdditionalData, bool)

AsBasicAdditionalData is the BasicAdditionalData implementation for ContainerRegistryVulnerabilityProperties.

func (ContainerRegistryVulnerabilityProperties) AsContainerRegistryVulnerabilityProperties Uses

func (crvp ContainerRegistryVulnerabilityProperties) AsContainerRegistryVulnerabilityProperties() (*ContainerRegistryVulnerabilityProperties, bool)

AsContainerRegistryVulnerabilityProperties is the BasicAdditionalData implementation for ContainerRegistryVulnerabilityProperties.

func (ContainerRegistryVulnerabilityProperties) AsSQLServerVulnerabilityProperties Uses

func (crvp ContainerRegistryVulnerabilityProperties) AsSQLServerVulnerabilityProperties() (*SQLServerVulnerabilityProperties, bool)

AsSQLServerVulnerabilityProperties is the BasicAdditionalData implementation for ContainerRegistryVulnerabilityProperties.

func (ContainerRegistryVulnerabilityProperties) AsServerVulnerabilityProperties Uses

func (crvp ContainerRegistryVulnerabilityProperties) AsServerVulnerabilityProperties() (*ServerVulnerabilityProperties, bool)

AsServerVulnerabilityProperties is the BasicAdditionalData implementation for ContainerRegistryVulnerabilityProperties.

func (ContainerRegistryVulnerabilityProperties) MarshalJSON Uses

func (crvp ContainerRegistryVulnerabilityProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContainerRegistryVulnerabilityProperties.

type CustomAlertRule Uses

type CustomAlertRule struct {
    // 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"`
}

CustomAlertRule a custom alert rule

type DataExportSetting Uses

type DataExportSetting struct {
    // DataExportSettingProperties - Data export setting data
    *DataExportSettingProperties `json:"properties,omitempty"`
    // Kind - the kind of the settings string (DataExportSetting). Possible values include: 'SettingKindDataExportSetting', 'SettingKindAlertSuppressionSetting'
    Kind SettingKind `json:"kind,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"`
}

DataExportSetting represents a data export setting

func (DataExportSetting) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for DataExportSetting.

func (*DataExportSetting) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DataExportSetting struct.

type DataExportSettingProperties Uses

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

DataExportSettingProperties the data export setting properties

type DataSource Uses

type DataSource string

DataSource enumerates the values for data source.

const (
    // TwinData Devices twin data
    TwinData DataSource = "TwinData"
)

func PossibleDataSourceValues Uses

func PossibleDataSourceValues() []DataSource

PossibleDataSourceValues returns an array of possible values for the DataSource const type.

type DenylistCustomAlertRule Uses

type DenylistCustomAlertRule struct {
    // DenylistValues - The values to deny. The format of the values depends on the rule type.
    DenylistValues *[]string `json:"denylistValues,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"`
}

DenylistCustomAlertRule a custom alert rule that checks if a value (depends on the custom alert type) is denied

type DeviceSecurityGroup Uses

type DeviceSecurityGroup struct {
    autorest.Response `json:"-"`
    // DeviceSecurityGroupProperties - Device Security group data
    *DeviceSecurityGroupProperties `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"`
}

DeviceSecurityGroup the device security group resource

func (DeviceSecurityGroup) MarshalJSON Uses

func (dsg DeviceSecurityGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeviceSecurityGroup.

func (*DeviceSecurityGroup) UnmarshalJSON Uses

func (dsg *DeviceSecurityGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DeviceSecurityGroup struct.

type DeviceSecurityGroupList Uses

type DeviceSecurityGroupList struct {
    autorest.Response `json:"-"`
    // Value - List of device security group objects
    Value *[]DeviceSecurityGroup `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

DeviceSecurityGroupList list of device security groups

func (DeviceSecurityGroupList) IsEmpty Uses

func (dsgl DeviceSecurityGroupList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DeviceSecurityGroupListIterator Uses

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

DeviceSecurityGroupListIterator provides access to a complete listing of DeviceSecurityGroup values.

func NewDeviceSecurityGroupListIterator Uses

func NewDeviceSecurityGroupListIterator(page DeviceSecurityGroupListPage) DeviceSecurityGroupListIterator

Creates a new instance of the DeviceSecurityGroupListIterator type.

func (*DeviceSecurityGroupListIterator) Next Uses

func (iter *DeviceSecurityGroupListIterator) 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 (*DeviceSecurityGroupListIterator) NextWithContext Uses

func (iter *DeviceSecurityGroupListIterator) 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 (DeviceSecurityGroupListIterator) NotDone Uses

func (iter DeviceSecurityGroupListIterator) NotDone() bool

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

func (DeviceSecurityGroupListIterator) Response Uses

func (iter DeviceSecurityGroupListIterator) Response() DeviceSecurityGroupList

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

func (DeviceSecurityGroupListIterator) Value Uses

func (iter DeviceSecurityGroupListIterator) Value() DeviceSecurityGroup

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

type DeviceSecurityGroupListPage Uses

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

DeviceSecurityGroupListPage contains a page of DeviceSecurityGroup values.

func NewDeviceSecurityGroupListPage Uses

func NewDeviceSecurityGroupListPage(getNextPage func(context.Context, DeviceSecurityGroupList) (DeviceSecurityGroupList, error)) DeviceSecurityGroupListPage

Creates a new instance of the DeviceSecurityGroupListPage type.

func (*DeviceSecurityGroupListPage) Next Uses

func (page *DeviceSecurityGroupListPage) 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 (*DeviceSecurityGroupListPage) NextWithContext Uses

func (page *DeviceSecurityGroupListPage) 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 (DeviceSecurityGroupListPage) NotDone Uses

func (page DeviceSecurityGroupListPage) NotDone() bool

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

func (DeviceSecurityGroupListPage) Response Uses

func (page DeviceSecurityGroupListPage) Response() DeviceSecurityGroupList

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

func (DeviceSecurityGroupListPage) Values Uses

func (page DeviceSecurityGroupListPage) Values() []DeviceSecurityGroup

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

type DeviceSecurityGroupProperties Uses

type DeviceSecurityGroupProperties struct {
    // ThresholdRules - A list of threshold custom alert rules.
    ThresholdRules *[]ThresholdCustomAlertRule `json:"thresholdRules,omitempty"`
    // TimeWindowRules - A list of time window custom alert rules.
    TimeWindowRules *[]TimeWindowCustomAlertRule `json:"timeWindowRules,omitempty"`
    // AllowlistRules - A list of allow-list custom alert rules.
    AllowlistRules *[]AllowlistCustomAlertRule `json:"allowlistRules,omitempty"`
    // DenylistRules - A list of deny-list custom alert rules.
    DenylistRules *[]DenylistCustomAlertRule `json:"denylistRules,omitempty"`
}

DeviceSecurityGroupProperties describes properties of a security group.

type DeviceSecurityGroupsClient Uses

type DeviceSecurityGroupsClient struct {
    BaseClient
}

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

func NewDeviceSecurityGroupsClient Uses

func NewDeviceSecurityGroupsClient(subscriptionID string, ascLocation string) DeviceSecurityGroupsClient

NewDeviceSecurityGroupsClient creates an instance of the DeviceSecurityGroupsClient client.

func NewDeviceSecurityGroupsClientWithBaseURI Uses

func NewDeviceSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) DeviceSecurityGroupsClient

NewDeviceSecurityGroupsClientWithBaseURI creates an instance of the DeviceSecurityGroupsClient 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 (DeviceSecurityGroupsClient) CreateOrUpdate Uses

func (client DeviceSecurityGroupsClient) CreateOrUpdate(ctx context.Context, resourceID string, deviceSecurityGroupName string, deviceSecurityGroup DeviceSecurityGroup) (result DeviceSecurityGroup, err error)

CreateOrUpdate creates or updates the device security group on a specified IoT hub resource. Parameters: resourceID - the identifier of the resource. deviceSecurityGroupName - the name of the security group. Please notice that the name is case insensitive. deviceSecurityGroup - security group object.

func (DeviceSecurityGroupsClient) CreateOrUpdatePreparer Uses

func (client DeviceSecurityGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceID string, deviceSecurityGroupName string, deviceSecurityGroup DeviceSecurityGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DeviceSecurityGroupsClient) CreateOrUpdateResponder Uses

func (client DeviceSecurityGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result DeviceSecurityGroup, err error)

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

func (DeviceSecurityGroupsClient) CreateOrUpdateSender Uses

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

func (client DeviceSecurityGroupsClient) Delete(ctx context.Context, resourceID string, deviceSecurityGroupName string) (result autorest.Response, err error)

Delete deletes the security group Parameters: resourceID - the identifier of the resource. deviceSecurityGroupName - the name of the security group. Please notice that the name is case insensitive.

func (DeviceSecurityGroupsClient) DeletePreparer Uses

func (client DeviceSecurityGroupsClient) DeletePreparer(ctx context.Context, resourceID string, deviceSecurityGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DeviceSecurityGroupsClient) DeleteResponder Uses

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

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

func (client DeviceSecurityGroupsClient) Get(ctx context.Context, resourceID string, deviceSecurityGroupName string) (result DeviceSecurityGroup, err error)

Get gets the device security group for the specified IoT hub resource. Parameters: resourceID - the identifier of the resource. deviceSecurityGroupName - the name of the security group. Please notice that the name is case insensitive.

func (DeviceSecurityGroupsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (DeviceSecurityGroupsClient) GetResponder Uses

func (client DeviceSecurityGroupsClient) GetResponder(resp *http.Response) (result DeviceSecurityGroup, err error)

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

func (DeviceSecurityGroupsClient) GetSender Uses

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

func (client DeviceSecurityGroupsClient) List(ctx context.Context, resourceID string) (result DeviceSecurityGroupListPage, err error)

List gets the list of device security groups for the specified IoT hub resource. Parameters: resourceID - the identifier of the resource.

func (DeviceSecurityGroupsClient) ListComplete Uses

func (client DeviceSecurityGroupsClient) ListComplete(ctx context.Context, resourceID string) (result DeviceSecurityGroupListIterator, err error)

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

func (DeviceSecurityGroupsClient) ListPreparer Uses

func (client DeviceSecurityGroupsClient) ListPreparer(ctx context.Context, resourceID string) (*http.Request, error)

ListPreparer prepares the List request.

func (DeviceSecurityGroupsClient) ListResponder Uses

func (client DeviceSecurityGroupsClient) ListResponder(resp *http.Response) (result DeviceSecurityGroupList, err error)

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

func (DeviceSecurityGroupsClient) ListSender Uses

func (client DeviceSecurityGroupsClient) 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 Direction Uses

type Direction string

Direction enumerates the values for direction.

const (
    // Inbound ...
    Inbound Direction = "Inbound"
    // Outbound ...
    Outbound Direction = "Outbound"
)

func PossibleDirectionValues Uses

func PossibleDirectionValues() []Direction

PossibleDirectionValues returns an array of possible values for the Direction const type.

type DiscoveredSecuritySolution Uses

type DiscoveredSecuritySolution 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"`
    *DiscoveredSecuritySolutionProperties `json:"properties,omitempty"`
}

DiscoveredSecuritySolution ...

func (DiscoveredSecuritySolution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for DiscoveredSecuritySolution.

func (*DiscoveredSecuritySolution) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DiscoveredSecuritySolution struct.

type DiscoveredSecuritySolutionList Uses

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

DiscoveredSecuritySolutionList ...

func (DiscoveredSecuritySolutionList) IsEmpty Uses

func (dssl DiscoveredSecuritySolutionList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DiscoveredSecuritySolutionListIterator Uses

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

DiscoveredSecuritySolutionListIterator provides access to a complete listing of DiscoveredSecuritySolution values.

func NewDiscoveredSecuritySolutionListIterator Uses

func NewDiscoveredSecuritySolutionListIterator(page DiscoveredSecuritySolutionListPage) DiscoveredSecuritySolutionListIterator

Creates a new instance of the DiscoveredSecuritySolutionListIterator type.

func (*DiscoveredSecuritySolutionListIterator) Next Uses

func (iter *DiscoveredSecuritySolutionListIterator) 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 (*DiscoveredSecuritySolutionListIterator) NextWithContext Uses

func (iter *DiscoveredSecuritySolutionListIterator) 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 (DiscoveredSecuritySolutionListIterator) NotDone Uses

func (iter DiscoveredSecuritySolutionListIterator) NotDone() bool

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

func (DiscoveredSecuritySolutionListIterator) Response Uses

func (iter DiscoveredSecuritySolutionListIterator) Response() DiscoveredSecuritySolutionList

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

func (DiscoveredSecuritySolutionListIterator) Value Uses

func (iter DiscoveredSecuritySolutionListIterator) Value() DiscoveredSecuritySolution

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

type DiscoveredSecuritySolutionListPage Uses

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

DiscoveredSecuritySolutionListPage contains a page of DiscoveredSecuritySolution values.

func NewDiscoveredSecuritySolutionListPage Uses

func NewDiscoveredSecuritySolutionListPage(getNextPage func(context.Context, DiscoveredSecuritySolutionList) (DiscoveredSecuritySolutionList, error)) DiscoveredSecuritySolutionListPage

Creates a new instance of the DiscoveredSecuritySolutionListPage type.

func (*DiscoveredSecuritySolutionListPage) Next Uses

func (page *DiscoveredSecuritySolutionListPage) 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 (*DiscoveredSecuritySolutionListPage) NextWithContext Uses

func (page *DiscoveredSecuritySolutionListPage) 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 (DiscoveredSecuritySolutionListPage) NotDone Uses

func (page DiscoveredSecuritySolutionListPage) NotDone() bool

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

func (DiscoveredSecuritySolutionListPage) Response Uses

func (page DiscoveredSecuritySolutionListPage) Response() DiscoveredSecuritySolutionList

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

func (DiscoveredSecuritySolutionListPage) Values Uses

func (page DiscoveredSecuritySolutionListPage) Values() []DiscoveredSecuritySolution

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

type DiscoveredSecuritySolutionProperties Uses

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

DiscoveredSecuritySolutionProperties ...

type DiscoveredSecuritySolutionsClient Uses

type DiscoveredSecuritySolutionsClient struct {
    BaseClient
}

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

func NewDiscoveredSecuritySolutionsClient Uses

func NewDiscoveredSecuritySolutionsClient(subscriptionID string, ascLocation string) DiscoveredSecuritySolutionsClient

NewDiscoveredSecuritySolutionsClient creates an instance of the DiscoveredSecuritySolutionsClient client.

func NewDiscoveredSecuritySolutionsClientWithBaseURI Uses

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

NewDiscoveredSecuritySolutionsClientWithBaseURI creates an instance of the DiscoveredSecuritySolutionsClient 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 (DiscoveredSecuritySolutionsClient) Get Uses

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

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

func (DiscoveredSecuritySolutionsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (DiscoveredSecuritySolutionsClient) GetResponder Uses

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

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

func (DiscoveredSecuritySolutionsClient) GetSender Uses

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

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

func (DiscoveredSecuritySolutionsClient) List Uses

func (client DiscoveredSecuritySolutionsClient) List(ctx context.Context) (result DiscoveredSecuritySolutionListPage, err error)

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

func (DiscoveredSecuritySolutionsClient) ListByHomeRegion Uses

func (client DiscoveredSecuritySolutionsClient) ListByHomeRegion(ctx context.Context) (result DiscoveredSecuritySolutionListPage, err error)

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

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionComplete Uses

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

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

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionPreparer Uses

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

ListByHomeRegionPreparer prepares the ListByHomeRegion request.

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionResponder Uses

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

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

func (DiscoveredSecuritySolutionsClient) ListByHomeRegionSender Uses

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

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

func (DiscoveredSecuritySolutionsClient) ListComplete Uses

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

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

func (DiscoveredSecuritySolutionsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (DiscoveredSecuritySolutionsClient) ListResponder Uses

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

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

func (DiscoveredSecuritySolutionsClient) ListSender Uses

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

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

type ETag Uses

type ETag struct {
    // Etag - Entity tag is used for comparing two or more entities from the same requested resource.
    Etag *string `json:"etag,omitempty"`
}

ETag entity tag is used for comparing two or more entities from the same requested resource.

type EffectiveNetworkSecurityGroups Uses

type EffectiveNetworkSecurityGroups struct {
    // NetworkInterface - The Azure resource ID of the network interface
    NetworkInterface *string `json:"networkInterface,omitempty"`
    // NetworkSecurityGroups - The Network Security Groups effective on the network interface
    NetworkSecurityGroups *[]string `json:"networkSecurityGroups,omitempty"`
}

EffectiveNetworkSecurityGroups describes the Network Security Groups effective on a network interface

type EnforcementMode Uses

type EnforcementMode string

EnforcementMode enumerates the values for enforcement mode.

const (
    // Audit ...
    Audit EnforcementMode = "Audit"
    // Enforce ...
    Enforce EnforcementMode = "Enforce"
    // None ...
    None EnforcementMode = "None"
)

func PossibleEnforcementModeValues Uses

func PossibleEnforcementModeValues() []EnforcementMode

PossibleEnforcementModeValues returns an array of possible values for the EnforcementMode const type.

type EnforcementMode1 Uses

type EnforcementMode1 string

EnforcementMode1 enumerates the values for enforcement mode 1.

const (
    // EnforcementMode1Audit ...
    EnforcementMode1Audit EnforcementMode1 = "Audit"
    // EnforcementMode1Enforce ...
    EnforcementMode1Enforce EnforcementMode1 = "Enforce"
    // EnforcementMode1None ...
    EnforcementMode1None EnforcementMode1 = "None"
)

func PossibleEnforcementMode1Values Uses

func PossibleEnforcementMode1Values() []EnforcementMode1

PossibleEnforcementMode1Values returns an array of possible values for the EnforcementMode1 const type.

type EventSource Uses

type EventSource string

EventSource enumerates the values for event source.

const (
    // Alerts ...
    Alerts EventSource = "Alerts"
    // Assessments ...
    Assessments EventSource = "Assessments"
)

func PossibleEventSourceValues Uses

func PossibleEventSourceValues() []EventSource

PossibleEventSourceValues returns an array of possible values for the EventSource const type.

type Exe Uses

type Exe string

Exe enumerates the values for exe.

const (
    // ExeAudit ...
    ExeAudit Exe = "Audit"
    // ExeEnforce ...
    ExeEnforce Exe = "Enforce"
    // ExeNone ...
    ExeNone Exe = "None"
)

func PossibleExeValues Uses

func PossibleExeValues() []Exe

PossibleExeValues returns an array of possible values for the Exe const type.

type Executable Uses

type Executable string

Executable enumerates the values for executable.

const (
    // ExecutableAudit ...
    ExecutableAudit Executable = "Audit"
    // ExecutableEnforce ...
    ExecutableEnforce Executable = "Enforce"
    // ExecutableNone ...
    ExecutableNone Executable = "None"
)

func PossibleExecutableValues Uses

func PossibleExecutableValues() []Executable

PossibleExecutableValues returns an array of possible values for the Executable const type.

type ExportData Uses

type ExportData string

ExportData enumerates the values for export data.

const (
    // RawEvents Agent raw events
    RawEvents ExportData = "RawEvents"
)

func PossibleExportDataValues Uses

func PossibleExportDataValues() []ExportData

PossibleExportDataValues returns an array of possible values for the ExportData const type.

type ExternalSecuritySolution Uses

type ExternalSecuritySolution 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"`
    // Kind - Possible values include: 'KindExternalSecuritySolution', 'KindCEF', 'KindATA', 'KindAAD'
    Kind KindEnum `json:"kind,omitempty"`
}

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

func (ExternalSecuritySolution) AsAadExternalSecuritySolution Uses

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

AsAadExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsAtaExternalSecuritySolution Uses

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

AsAtaExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsBasicExternalSecuritySolution Uses

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

AsBasicExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsCefExternalSecuritySolution Uses

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

AsCefExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) AsExternalSecuritySolution Uses

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

AsExternalSecuritySolution is the BasicExternalSecuritySolution implementation for ExternalSecuritySolution.

func (ExternalSecuritySolution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ExternalSecuritySolution.

type ExternalSecuritySolutionKind Uses

type ExternalSecuritySolutionKind string

ExternalSecuritySolutionKind enumerates the values for external security solution kind.

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

func PossibleExternalSecuritySolutionKindValues Uses

func PossibleExternalSecuritySolutionKindValues() []ExternalSecuritySolutionKind

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

type ExternalSecuritySolutionKind1 Uses

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

ExternalSecuritySolutionKind1 describes an Azure resource with kind

type ExternalSecuritySolutionList Uses

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

ExternalSecuritySolutionList ...

func (ExternalSecuritySolutionList) IsEmpty Uses

func (essl ExternalSecuritySolutionList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (*ExternalSecuritySolutionList) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ExternalSecuritySolutionList struct.

type ExternalSecuritySolutionListIterator Uses

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

ExternalSecuritySolutionListIterator provides access to a complete listing of ExternalSecuritySolution values.

func NewExternalSecuritySolutionListIterator Uses

func NewExternalSecuritySolutionListIterator(page ExternalSecuritySolutionListPage) ExternalSecuritySolutionListIterator

Creates a new instance of the ExternalSecuritySolutionListIterator type.

func (*ExternalSecuritySolutionListIterator) Next Uses

func (iter *ExternalSecuritySolutionListIterator) 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 (*ExternalSecuritySolutionListIterator) NextWithContext Uses

func (iter *ExternalSecuritySolutionListIterator) 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 (ExternalSecuritySolutionListIterator) NotDone Uses

func (iter ExternalSecuritySolutionListIterator) NotDone() bool

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

func (ExternalSecuritySolutionListIterator) Response Uses

func (iter ExternalSecuritySolutionListIterator) Response() ExternalSecuritySolutionList

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

func (ExternalSecuritySolutionListIterator) Value Uses

func (iter ExternalSecuritySolutionListIterator) Value() BasicExternalSecuritySolution

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

type ExternalSecuritySolutionListPage Uses

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

ExternalSecuritySolutionListPage contains a page of BasicExternalSecuritySolution values.

func NewExternalSecuritySolutionListPage