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 alertssuppressionrules.go allowedconnections.go automations.go autoprovisioningsettings.go client.go compliances.go connectors.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 securescorecontroldefinitions.go securescorecontrols.go securescores.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) Delete Uses

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

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

func (AdaptiveApplicationControlsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (AdaptiveApplicationControlsClient) DeleteResponder Uses

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

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

func (AdaptiveApplicationControlsClient) DeleteSender Uses

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

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

func (AdaptiveApplicationControlsClient) Get 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, autoDismissRuleName string) (result AlertListPage, err error)

List list all the alerts that are associated with the subscription Parameters: filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional. autoDismissRuleName - the name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and get the alerts that would have been dismissed if the rule was enabled when the alert was created

func (AlertsClient) ListByResourceGroup Uses

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

ListByResourceGroup list all the alerts that are associated with the resource group Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional. autoDismissRuleName - the name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and get the alerts that would have been dismissed if the rule was enabled when the alert was created

func (AlertsClient) ListByResourceGroupComplete Uses

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

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

func (AlertsClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AlertsClient) ListByResourceGroupResponder 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, autoDismissRuleName 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, autoDismissRuleName 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, autoDismissRuleName string) (result AlertListPage, err error)

ListResourceGroupLevelAlertsByRegion list all the alerts that are associated with the resource group that are stored in a specific location Parameters: resourceGroupName - the name of the resource group within the user's subscription. The name is case insensitive. filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional. autoDismissRuleName - the name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and get the alerts that would have been dismissed if the rule was enabled when the alert was created

func (AlertsClient) ListResourceGroupLevelAlertsByRegionComplete Uses

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

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

func (AlertsClient) ListResourceGroupLevelAlertsByRegionPreparer Uses

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

ListResourceGroupLevelAlertsByRegionPreparer prepares the ListResourceGroupLevelAlertsByRegion request.

func (AlertsClient) ListResourceGroupLevelAlertsByRegionResponder 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, autoDismissRuleName string) (result AlertListPage, err error)

ListSubscriptionLevelAlertsByRegion list all the alerts that are associated with the subscription that are stored in a specific location Parameters: filter - oData filter. Optional. selectParameter - oData select. Optional. expand - oData expand. Optional. autoDismissRuleName - the name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and get the alerts that would have been dismissed if the rule was enabled when the alert was created

func (AlertsClient) ListSubscriptionLevelAlertsByRegionComplete Uses

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

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

func (AlertsClient) ListSubscriptionLevelAlertsByRegionPreparer Uses

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

ListSubscriptionLevelAlertsByRegionPreparer prepares the ListSubscriptionLevelAlertsByRegion request.

func (AlertsClient) ListSubscriptionLevelAlertsByRegionResponder 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 AlertsSuppressionRule Uses

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

AlertsSuppressionRule describes the suppression rule

func (AlertsSuppressionRule) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AlertsSuppressionRule.

func (*AlertsSuppressionRule) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AlertsSuppressionRule struct.

type AlertsSuppressionRuleProperties Uses

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

AlertsSuppressionRuleProperties describes AlertsSuppressionRule properties

type AlertsSuppressionRulesClient Uses

type AlertsSuppressionRulesClient struct {
    BaseClient
}

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

func NewAlertsSuppressionRulesClient Uses

func NewAlertsSuppressionRulesClient(subscriptionID string, ascLocation string) AlertsSuppressionRulesClient

NewAlertsSuppressionRulesClient creates an instance of the AlertsSuppressionRulesClient client.

func NewAlertsSuppressionRulesClientWithBaseURI Uses

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

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

func (AlertsSuppressionRulesClient) Delete Uses

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

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

func (AlertsSuppressionRulesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (AlertsSuppressionRulesClient) DeleteResponder Uses

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

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

func (AlertsSuppressionRulesClient) DeleteSender Uses

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

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

func (AlertsSuppressionRulesClient) Get Uses

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

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

func (AlertsSuppressionRulesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (AlertsSuppressionRulesClient) GetResponder Uses

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

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

func (AlertsSuppressionRulesClient) GetSender Uses

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

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

func (AlertsSuppressionRulesClient) List Uses

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

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

func (AlertsSuppressionRulesClient) ListComplete Uses

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

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

func (AlertsSuppressionRulesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (AlertsSuppressionRulesClient) ListResponder Uses

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

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

func (AlertsSuppressionRulesClient) ListSender Uses

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

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

func (AlertsSuppressionRulesClient) Update Uses

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

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

func (AlertsSuppressionRulesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (AlertsSuppressionRulesClient) UpdateResponder Uses

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

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

func (AlertsSuppressionRulesClient) UpdateSender Uses

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

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

type AlertsSuppressionRulesList Uses

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

AlertsSuppressionRulesList suppression rules list for subscription.

func (AlertsSuppressionRulesList) IsEmpty Uses

func (asrl AlertsSuppressionRulesList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AlertsSuppressionRulesListIterator Uses

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

AlertsSuppressionRulesListIterator provides access to a complete listing of AlertsSuppressionRule values.

func NewAlertsSuppressionRulesListIterator Uses

func NewAlertsSuppressionRulesListIterator(page AlertsSuppressionRulesListPage) AlertsSuppressionRulesListIterator

Creates a new instance of the AlertsSuppressionRulesListIterator type.

func (*AlertsSuppressionRulesListIterator) Next Uses

func (iter *AlertsSuppressionRulesListIterator) Next() error

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

func (*AlertsSuppressionRulesListIterator) NextWithContext Uses

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

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

func (AlertsSuppressionRulesListIterator) NotDone Uses

func (iter AlertsSuppressionRulesListIterator) NotDone() bool

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

func (AlertsSuppressionRulesListIterator) Response Uses

func (iter AlertsSuppressionRulesListIterator) Response() AlertsSuppressionRulesList

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

func (AlertsSuppressionRulesListIterator) Value Uses

func (iter AlertsSuppressionRulesListIterator) Value() AlertsSuppressionRule

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

type AlertsSuppressionRulesListPage Uses

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

AlertsSuppressionRulesListPage contains a page of AlertsSuppressionRule values.

func NewAlertsSuppressionRulesListPage Uses

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

Creates a new instance of the AlertsSuppressionRulesListPage type.

func (*AlertsSuppressionRulesListPage) Next Uses

func (page *AlertsSuppressionRulesListPage) Next() error

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

func (*AlertsSuppressionRulesListPage) NextWithContext Uses

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

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

func (AlertsSuppressionRulesListPage) NotDone Uses

func (page AlertsSuppressionRulesListPage) NotDone() bool

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

func (AlertsSuppressionRulesListPage) Response Uses

func (page AlertsSuppressionRulesListPage) Response() AlertsSuppressionRulesList

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

func (AlertsSuppressionRulesListPage) Values Uses

func (page AlertsSuppressionRulesListPage) Values() []AlertsSuppressionRule

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

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

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

AuthenticationDetailsProperties settings for cloud authentication management

func (AuthenticationDetailsProperties) AsAuthenticationDetailsProperties Uses

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

AsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) AsAwAssumeRoleAuthenticationDetailsProperties Uses

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

AsAwAssumeRoleAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) AsAwsCredsAuthenticationDetailsProperties Uses

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

AsAwsCredsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) AsBasicAuthenticationDetailsProperties Uses

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

AsBasicAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) AsGcpCredentialsDetailsProperties Uses

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

AsGcpCredentialsDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AuthenticationDetailsProperties.

func (AuthenticationDetailsProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AuthenticationDetailsProperties.

type AuthenticationProvisioningState Uses

type AuthenticationProvisioningState string

AuthenticationProvisioningState enumerates the values for authentication provisioning state.

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

func PossibleAuthenticationProvisioningStateValues Uses

func PossibleAuthenticationProvisioningStateValues() []AuthenticationProvisioningState

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

type AuthenticationType Uses

type AuthenticationType string

AuthenticationType enumerates the values for authentication type.

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

func PossibleAuthenticationTypeValues Uses

func PossibleAuthenticationTypeValues() []AuthenticationType

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

type AutoProvision Uses

type AutoProvision string

AutoProvision enumerates the values for auto provision.

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

func PossibleAutoProvisionValues 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 AwAssumeRoleAuthenticationDetailsProperties Uses

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

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

func (AwAssumeRoleAuthenticationDetailsProperties) AsAuthenticationDetailsProperties Uses

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

AsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) AsAwAssumeRoleAuthenticationDetailsProperties Uses

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

AsAwAssumeRoleAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) AsAwsCredsAuthenticationDetailsProperties Uses

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

AsAwsCredsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) AsBasicAuthenticationDetailsProperties Uses

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

AsBasicAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) AsGcpCredentialsDetailsProperties Uses

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

AsGcpCredentialsDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwAssumeRoleAuthenticationDetailsProperties.

func (AwAssumeRoleAuthenticationDetailsProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AwAssumeRoleAuthenticationDetailsProperties.

type AwsCredsAuthenticationDetailsProperties Uses

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

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

func (AwsCredsAuthenticationDetailsProperties) AsAuthenticationDetailsProperties Uses

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

AsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) AsAwAssumeRoleAuthenticationDetailsProperties Uses

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

AsAwAssumeRoleAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) AsAwsCredsAuthenticationDetailsProperties Uses

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

AsAwsCredsAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) AsBasicAuthenticationDetailsProperties Uses

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

AsBasicAuthenticationDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) AsGcpCredentialsDetailsProperties Uses

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

AsGcpCredentialsDetailsProperties is the BasicAuthenticationDetailsProperties implementation for AwsCredsAuthenticationDetailsProperties.

func (AwsCredsAuthenticationDetailsProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AwsCredsAuthenticationDetailsProperties.

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 AzureResourceLink struct {
    // ID - READ-ONLY; Azure resource Id
    ID *string `json:"id,omitempty"`
}

AzureResourceLink describes an Azure resource with kind

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

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

BasicAuthenticationDetailsProperties settings for cloud authentication management

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

type ConnectorSetting struct {
    autorest.Response `json:"-"`
    // ConnectorSettingProperties - Connector setting data
    *ConnectorSettingProperties `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"`
}

ConnectorSetting the connector setting

func (ConnectorSetting) MarshalJSON Uses

func (cs ConnectorSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConnectorSetting.

func (*ConnectorSetting) UnmarshalJSON Uses

func (cs *ConnectorSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ConnectorSetting struct.

type ConnectorSettingList Uses

type ConnectorSettingList struct {
    autorest.Response `json:"-"`
    // Value - List of all the cloud account connector settings
    Value *[]ConnectorSetting `json:"value,omitempty"`
    // NextLink - READ-ONLY; The URI to fetch the next page.
    NextLink *string `json:"nextLink,omitempty"`
}

ConnectorSettingList for a subscription, list of all cloud account connectors and their settings

func (ConnectorSettingList) IsEmpty Uses

func (csl ConnectorSettingList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ConnectorSettingListIterator Uses

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

ConnectorSettingListIterator provides access to a complete listing of ConnectorSetting values.

func NewConnectorSettingListIterator Uses

func NewConnectorSettingListIterator(page ConnectorSettingListPage) ConnectorSettingListIterator

Creates a new instance of the ConnectorSettingListIterator type.

func (*ConnectorSettingListIterator) Next Uses

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

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

func (iter ConnectorSettingListIterator) NotDone() bool

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

func (ConnectorSettingListIterator) Response Uses

func (iter ConnectorSettingListIterator) Response() ConnectorSettingList

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

func (ConnectorSettingListIterator) Value Uses

func (iter ConnectorSettingListIterator) Value() ConnectorSetting

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

type ConnectorSettingListPage Uses

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

ConnectorSettingListPage contains a page of ConnectorSetting values.

func NewConnectorSettingListPage Uses

func NewConnectorSettingListPage(getNextPage func(context.Context, ConnectorSettingList) (ConnectorSettingList, error)) ConnectorSettingListPage

Creates a new instance of the ConnectorSettingListPage type.

func (*ConnectorSettingListPage) Next Uses

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

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

func (page ConnectorSettingListPage) NotDone() bool

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

func (ConnectorSettingListPage) Response Uses

func (page ConnectorSettingListPage) Response() ConnectorSettingList

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

func (ConnectorSettingListPage) Values Uses

func (page ConnectorSettingListPage) Values() []ConnectorSetting

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

type ConnectorSettingProperties Uses

type ConnectorSettingProperties struct {
    // HybridComputeSettings - Settings for hybrid compute management, these settings are relevant only Arc autoProvision (Hybrid Compute).
    HybridComputeSettings *HybridComputeSettingsProperties `json:"hybridComputeSettings,omitempty"`
    // AuthenticationDetails - Settings for authentication management, these settings are relevant only for the cloud connector.
    AuthenticationDetails BasicAuthenticationDetailsProperties `json:"authenticationDetails,omitempty"`
}

ConnectorSettingProperties describes properties of an connector setting

func (*ConnectorSettingProperties) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ConnectorSettingProperties struct.

type ConnectorsClient Uses

type ConnectorsClient struct {
    BaseClient
}

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

func NewConnectorsClient Uses

func NewConnectorsClient(subscriptionID string, ascLocation string) ConnectorsClient

NewConnectorsClient creates an instance of the ConnectorsClient client.

func NewConnectorsClientWithBaseURI Uses

func NewConnectorsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) ConnectorsClient

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

func (client ConnectorsClient) CreateOrUpdate(ctx context.Context, connectorName string, connectorSetting ConnectorSetting) (result ConnectorSetting, err error)

CreateOrUpdate create a cloud account connector or update an existing one. Connect to your AWS cloud account using either account credentials or role-based authentication. Parameters: connectorName - name of the cloud account connector connectorSetting - settings for the cloud account connector

func (ConnectorsClient) CreateOrUpdatePreparer Uses

func (client ConnectorsClient) CreateOrUpdatePreparer(ctx context.Context, connectorName string, connectorSetting ConnectorSetting) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConnectorsClient) CreateOrUpdateResponder Uses

func (client ConnectorsClient) CreateOrUpdateResponder(resp *http.Response) (result ConnectorSetting, err error)

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

func (ConnectorsClient) CreateOrUpdateSender Uses

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

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

Delete delete a cloud account connector from a subscription Parameters: connectorName - name of the cloud account connector

func (ConnectorsClient) DeletePreparer Uses

func (client ConnectorsClient) DeletePreparer(ctx context.Context, connectorName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ConnectorsClient) DeleteResponder Uses

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

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

func (client ConnectorsClient) Get(ctx context.Context, connectorName string) (result ConnectorSetting, err error)

Get details of a specific cloud account connector Parameters: connectorName - name of the cloud account connector

func (ConnectorsClient) GetPreparer Uses

func (client ConnectorsClient) GetPreparer(ctx context.Context, connectorName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ConnectorsClient) GetResponder Uses

func (client ConnectorsClient) GetResponder(resp *http.Response) (result ConnectorSetting, err error)

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

func (ConnectorsClient) GetSender Uses

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

func (client ConnectorsClient) List(ctx context.Context) (result ConnectorSettingListPage, err error)

List cloud accounts connectors of a subscription

func (ConnectorsClient) ListComplete Uses

func (client ConnectorsClient) ListComplete(ctx context.Context) (result ConnectorSettingListIterator, err error)

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

func (ConnectorsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ConnectorsClient) ListResponder Uses

func (client ConnectorsClient) ListResponder(resp *http.Response) (result ConnectorSettingList, err error)

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

func (ConnectorsClient) ListSender Uses

func (client ConnectorsClient) 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 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, securityCo