Documentation
¶
Index ¶
- type AADConnectivityState
- type AADConnectivityStateAutoGenerated
- type AADExternalSecuritySolution
- type AADSolutionProperties
- type AccountConnectorsClient
- func (client *AccountConnectorsClient) CreateOrUpdate(ctx context.Context, connectorName string, connectorSetting ConnectorSetting, ...) (AccountConnectorsClientCreateOrUpdateResponse, error)
- func (client *AccountConnectorsClient) Delete(ctx context.Context, connectorName string, ...) (AccountConnectorsClientDeleteResponse, error)
- func (client *AccountConnectorsClient) Get(ctx context.Context, connectorName string, ...) (AccountConnectorsClientGetResponse, error)
- func (client *AccountConnectorsClient) List(options *AccountConnectorsClientListOptions) *runtime.Pager[AccountConnectorsClientListResponse]
- type AccountConnectorsClientCreateOrUpdateOptions
- type AccountConnectorsClientCreateOrUpdateResponse
- type AccountConnectorsClientDeleteOptions
- type AccountConnectorsClientDeleteResponse
- type AccountConnectorsClientGetOptions
- type AccountConnectorsClientGetResponse
- type AccountConnectorsClientListOptions
- type AccountConnectorsClientListResponse
- type ActionType
- type ActiveConnectionsNotInAllowedRange
- func (a *ActiveConnectionsNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (a *ActiveConnectionsNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (a *ActiveConnectionsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (a ActiveConnectionsNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (a *ActiveConnectionsNotInAllowedRange) UnmarshalJSON(data []byte) error
- type AdaptiveApplicationControlGroup
- type AdaptiveApplicationControlGroupData
- type AdaptiveApplicationControlGroups
- type AdaptiveApplicationControlIssue
- type AdaptiveApplicationControlIssueSummary
- type AdaptiveApplicationControlsClient
- func (client *AdaptiveApplicationControlsClient) Delete(ctx context.Context, ascLocation string, groupName string, ...) (AdaptiveApplicationControlsClientDeleteResponse, error)
- func (client *AdaptiveApplicationControlsClient) Get(ctx context.Context, ascLocation string, groupName string, ...) (AdaptiveApplicationControlsClientGetResponse, error)
- func (client *AdaptiveApplicationControlsClient) List(ctx context.Context, options *AdaptiveApplicationControlsClientListOptions) (AdaptiveApplicationControlsClientListResponse, error)
- func (client *AdaptiveApplicationControlsClient) Put(ctx context.Context, ascLocation string, groupName string, ...) (AdaptiveApplicationControlsClientPutResponse, error)
- type AdaptiveApplicationControlsClientDeleteOptions
- type AdaptiveApplicationControlsClientDeleteResponse
- type AdaptiveApplicationControlsClientGetOptions
- type AdaptiveApplicationControlsClientGetResponse
- type AdaptiveApplicationControlsClientListOptions
- type AdaptiveApplicationControlsClientListResponse
- type AdaptiveApplicationControlsClientPutOptions
- type AdaptiveApplicationControlsClientPutResponse
- type AdaptiveNetworkHardening
- type AdaptiveNetworkHardeningEnforceRequest
- type AdaptiveNetworkHardeningProperties
- type AdaptiveNetworkHardeningsClient
- func (client *AdaptiveNetworkHardeningsClient) BeginEnforce(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*armruntime.Poller[AdaptiveNetworkHardeningsClientEnforceResponse], error)
- func (client *AdaptiveNetworkHardeningsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (AdaptiveNetworkHardeningsClientGetResponse, error)
- func (client *AdaptiveNetworkHardeningsClient) ListByExtendedResource(resourceGroupName string, resourceNamespace string, resourceType string, ...) *runtime.Pager[AdaptiveNetworkHardeningsClientListByExtendedResourceResponse]
- type AdaptiveNetworkHardeningsClientBeginEnforceOptions
- type AdaptiveNetworkHardeningsClientEnforceResponse
- type AdaptiveNetworkHardeningsClientGetOptions
- type AdaptiveNetworkHardeningsClientGetResponse
- type AdaptiveNetworkHardeningsClientListByExtendedResourceOptions
- type AdaptiveNetworkHardeningsClientListByExtendedResourceResponse
- type AdaptiveNetworkHardeningsList
- type AdditionalData
- type AdditionalDataClassification
- type AdditionalWorkspaceDataType
- type AdditionalWorkspaceType
- type AdditionalWorkspacesProperties
- type AdvancedThreatProtectionClient
- type AdvancedThreatProtectionClientCreateOptions
- type AdvancedThreatProtectionClientCreateResponse
- type AdvancedThreatProtectionClientGetOptions
- type AdvancedThreatProtectionClientGetResponse
- type AdvancedThreatProtectionProperties
- type AdvancedThreatProtectionSetting
- type Alert
- type AlertEntity
- type AlertList
- type AlertNotifications
- type AlertProperties
- type AlertSeverity
- type AlertSimulatorBundlesRequestProperties
- type AlertSimulatorRequestBody
- type AlertSimulatorRequestProperties
- type AlertSimulatorRequestPropertiesClassification
- type AlertStatus
- type AlertSyncSettingProperties
- type AlertSyncSettings
- type AlertsClient
- func (client *AlertsClient) GetResourceGroupLevel(ctx context.Context, ascLocation string, alertName string, ...) (AlertsClientGetResourceGroupLevelResponse, error)
- func (client *AlertsClient) GetSubscriptionLevel(ctx context.Context, ascLocation string, alertName string, ...) (AlertsClientGetSubscriptionLevelResponse, error)
- func (client *AlertsClient) List(options *AlertsClientListOptions) *runtime.Pager[AlertsClientListResponse]
- func (client *AlertsClient) ListByResourceGroup(resourceGroupName string, options *AlertsClientListByResourceGroupOptions) *runtime.Pager[AlertsClientListByResourceGroupResponse]
- func (client *AlertsClient) ListResourceGroupLevelByRegion(ascLocation string, resourceGroupName string, ...) *runtime.Pager[AlertsClientListResourceGroupLevelByRegionResponse]
- func (client *AlertsClient) ListSubscriptionLevelByRegion(ascLocation string, options *AlertsClientListSubscriptionLevelByRegionOptions) *runtime.Pager[AlertsClientListSubscriptionLevelByRegionResponse]
- func (client *AlertsClient) Simulate(ctx context.Context, ascLocation string, ...) (AlertsClientSimulateResponse, error)
- func (client *AlertsClient) UpdateResourceGroupLevelStateToActivate(ctx context.Context, ascLocation string, alertName string, ...) (AlertsClientUpdateResourceGroupLevelStateToActivateResponse, error)
- func (client *AlertsClient) UpdateResourceGroupLevelStateToDismiss(ctx context.Context, ascLocation string, alertName string, ...) (AlertsClientUpdateResourceGroupLevelStateToDismissResponse, error)
- func (client *AlertsClient) UpdateResourceGroupLevelStateToResolve(ctx context.Context, ascLocation string, alertName string, ...) (AlertsClientUpdateResourceGroupLevelStateToResolveResponse, error)
- func (client *AlertsClient) UpdateSubscriptionLevelStateToActivate(ctx context.Context, ascLocation string, alertName string, ...) (AlertsClientUpdateSubscriptionLevelStateToActivateResponse, error)
- func (client *AlertsClient) UpdateSubscriptionLevelStateToDismiss(ctx context.Context, ascLocation string, alertName string, ...) (AlertsClientUpdateSubscriptionLevelStateToDismissResponse, error)
- func (client *AlertsClient) UpdateSubscriptionLevelStateToResolve(ctx context.Context, ascLocation string, alertName string, ...) (AlertsClientUpdateSubscriptionLevelStateToResolveResponse, error)
- type AlertsClientGetResourceGroupLevelOptions
- type AlertsClientGetResourceGroupLevelResponse
- type AlertsClientGetSubscriptionLevelOptions
- type AlertsClientGetSubscriptionLevelResponse
- type AlertsClientListByResourceGroupOptions
- type AlertsClientListByResourceGroupResponse
- type AlertsClientListOptions
- type AlertsClientListResourceGroupLevelByRegionOptions
- type AlertsClientListResourceGroupLevelByRegionResponse
- type AlertsClientListResponse
- type AlertsClientListSubscriptionLevelByRegionOptions
- type AlertsClientListSubscriptionLevelByRegionResponse
- type AlertsClientSimulateOptions
- type AlertsClientSimulateResponse
- type AlertsClientUpdateResourceGroupLevelStateToActivateOptions
- type AlertsClientUpdateResourceGroupLevelStateToActivateResponse
- type AlertsClientUpdateResourceGroupLevelStateToDismissOptions
- type AlertsClientUpdateResourceGroupLevelStateToDismissResponse
- type AlertsClientUpdateResourceGroupLevelStateToResolveOptions
- type AlertsClientUpdateResourceGroupLevelStateToResolveResponse
- type AlertsClientUpdateSubscriptionLevelStateToActivateOptions
- type AlertsClientUpdateSubscriptionLevelStateToActivateResponse
- type AlertsClientUpdateSubscriptionLevelStateToDismissOptions
- type AlertsClientUpdateSubscriptionLevelStateToDismissResponse
- type AlertsClientUpdateSubscriptionLevelStateToResolveOptions
- type AlertsClientUpdateSubscriptionLevelStateToResolveResponse
- type AlertsSuppressionRule
- type AlertsSuppressionRuleProperties
- type AlertsSuppressionRulesClient
- func (client *AlertsSuppressionRulesClient) Delete(ctx context.Context, alertsSuppressionRuleName string, ...) (AlertsSuppressionRulesClientDeleteResponse, error)
- func (client *AlertsSuppressionRulesClient) Get(ctx context.Context, alertsSuppressionRuleName string, ...) (AlertsSuppressionRulesClientGetResponse, error)
- func (client *AlertsSuppressionRulesClient) List(options *AlertsSuppressionRulesClientListOptions) *runtime.Pager[AlertsSuppressionRulesClientListResponse]
- func (client *AlertsSuppressionRulesClient) Update(ctx context.Context, alertsSuppressionRuleName string, ...) (AlertsSuppressionRulesClientUpdateResponse, error)
- type AlertsSuppressionRulesClientDeleteOptions
- type AlertsSuppressionRulesClientDeleteResponse
- type AlertsSuppressionRulesClientGetOptions
- type AlertsSuppressionRulesClientGetResponse
- type AlertsSuppressionRulesClientListOptions
- type AlertsSuppressionRulesClientListResponse
- type AlertsSuppressionRulesClientUpdateOptions
- type AlertsSuppressionRulesClientUpdateResponse
- type AlertsSuppressionRulesList
- type AlertsToAdmins
- type AllowedConnectionsClient
- func (client *AllowedConnectionsClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, ...) (AllowedConnectionsClientGetResponse, error)
- func (client *AllowedConnectionsClient) List(options *AllowedConnectionsClientListOptions) *runtime.Pager[AllowedConnectionsClientListResponse]
- func (client *AllowedConnectionsClient) ListByHomeRegion(ascLocation string, options *AllowedConnectionsClientListByHomeRegionOptions) *runtime.Pager[AllowedConnectionsClientListByHomeRegionResponse]
- type AllowedConnectionsClientGetOptions
- type AllowedConnectionsClientGetResponse
- type AllowedConnectionsClientListByHomeRegionOptions
- type AllowedConnectionsClientListByHomeRegionResponse
- type AllowedConnectionsClientListOptions
- type AllowedConnectionsClientListResponse
- type AllowedConnectionsList
- type AllowedConnectionsResource
- type AllowedConnectionsResourceProperties
- type AllowlistCustomAlertRule
- func (a *AllowlistCustomAlertRule) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
- func (a *AllowlistCustomAlertRule) GetCustomAlertRule() *CustomAlertRule
- func (a *AllowlistCustomAlertRule) GetListCustomAlertRule() *ListCustomAlertRule
- func (a AllowlistCustomAlertRule) MarshalJSON() ([]byte, error)
- func (a *AllowlistCustomAlertRule) UnmarshalJSON(data []byte) error
- type AllowlistCustomAlertRuleClassification
- type AmqpC2DMessagesNotInAllowedRange
- func (a *AmqpC2DMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (a *AmqpC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (a *AmqpC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (a AmqpC2DMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (a *AmqpC2DMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type AmqpC2DRejectedMessagesNotInAllowedRange
- func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (a AmqpC2DRejectedMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (a *AmqpC2DRejectedMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type AmqpD2CMessagesNotInAllowedRange
- func (a *AmqpD2CMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (a *AmqpD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (a *AmqpD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (a AmqpD2CMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (a *AmqpD2CMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type AscLocation
- type AscLocationList
- type AssessedResourceType
- type Assessment
- type AssessmentLinks
- type AssessmentList
- type AssessmentMetadata
- type AssessmentMetadataPartnerData
- type AssessmentMetadataProperties
- type AssessmentMetadataPropertiesResponse
- type AssessmentMetadataPropertiesResponsePublishDates
- type AssessmentMetadataResponse
- type AssessmentMetadataResponseList
- type AssessmentPartnerData
- type AssessmentProperties
- type AssessmentPropertiesBase
- type AssessmentPropertiesResponse
- type AssessmentResponse
- type AssessmentStatus
- type AssessmentStatusCode
- type AssessmentStatusResponse
- type AssessmentType
- type AssessmentsClient
- func (client *AssessmentsClient) CreateOrUpdate(ctx context.Context, resourceID string, assessmentName string, ...) (AssessmentsClientCreateOrUpdateResponse, error)
- func (client *AssessmentsClient) Delete(ctx context.Context, resourceID string, assessmentName string, ...) (AssessmentsClientDeleteResponse, error)
- func (client *AssessmentsClient) Get(ctx context.Context, resourceID string, assessmentName string, ...) (AssessmentsClientGetResponse, error)
- func (client *AssessmentsClient) List(scope string, options *AssessmentsClientListOptions) *runtime.Pager[AssessmentsClientListResponse]
- type AssessmentsClientCreateOrUpdateOptions
- type AssessmentsClientCreateOrUpdateResponse
- type AssessmentsClientDeleteOptions
- type AssessmentsClientDeleteResponse
- type AssessmentsClientGetOptions
- type AssessmentsClientGetResponse
- type AssessmentsClientListOptions
- type AssessmentsClientListResponse
- type AssessmentsMetadataClient
- func (client *AssessmentsMetadataClient) CreateInSubscription(ctx context.Context, assessmentMetadataName string, ...) (AssessmentsMetadataClientCreateInSubscriptionResponse, error)
- func (client *AssessmentsMetadataClient) DeleteInSubscription(ctx context.Context, assessmentMetadataName string, ...) (AssessmentsMetadataClientDeleteInSubscriptionResponse, error)
- func (client *AssessmentsMetadataClient) Get(ctx context.Context, assessmentMetadataName string, ...) (AssessmentsMetadataClientGetResponse, error)
- func (client *AssessmentsMetadataClient) GetInSubscription(ctx context.Context, assessmentMetadataName string, ...) (AssessmentsMetadataClientGetInSubscriptionResponse, error)
- func (client *AssessmentsMetadataClient) List(options *AssessmentsMetadataClientListOptions) *runtime.Pager[AssessmentsMetadataClientListResponse]
- func (client *AssessmentsMetadataClient) ListBySubscription(options *AssessmentsMetadataClientListBySubscriptionOptions) *runtime.Pager[AssessmentsMetadataClientListBySubscriptionResponse]
- type AssessmentsMetadataClientCreateInSubscriptionOptions
- type AssessmentsMetadataClientCreateInSubscriptionResponse
- type AssessmentsMetadataClientDeleteInSubscriptionOptions
- type AssessmentsMetadataClientDeleteInSubscriptionResponse
- type AssessmentsMetadataClientGetInSubscriptionOptions
- type AssessmentsMetadataClientGetInSubscriptionResponse
- type AssessmentsMetadataClientGetOptions
- type AssessmentsMetadataClientGetResponse
- type AssessmentsMetadataClientListBySubscriptionOptions
- type AssessmentsMetadataClientListBySubscriptionResponse
- type AssessmentsMetadataClientListOptions
- type AssessmentsMetadataClientListResponse
- type AtaExternalSecuritySolution
- type AtaSolutionProperties
- type AuthenticationDetailsProperties
- type AuthenticationDetailsPropertiesClassification
- type AuthenticationProvisioningState
- type AuthenticationType
- type AutoProvision
- type AutoProvisioningSetting
- type AutoProvisioningSettingList
- type AutoProvisioningSettingProperties
- type AutoProvisioningSettingsClient
- func (client *AutoProvisioningSettingsClient) Create(ctx context.Context, settingName string, setting AutoProvisioningSetting, ...) (AutoProvisioningSettingsClientCreateResponse, error)
- func (client *AutoProvisioningSettingsClient) Get(ctx context.Context, settingName string, ...) (AutoProvisioningSettingsClientGetResponse, error)
- func (client *AutoProvisioningSettingsClient) List(options *AutoProvisioningSettingsClientListOptions) *runtime.Pager[AutoProvisioningSettingsClientListResponse]
- type AutoProvisioningSettingsClientCreateOptions
- type AutoProvisioningSettingsClientCreateResponse
- type AutoProvisioningSettingsClientGetOptions
- type AutoProvisioningSettingsClientGetResponse
- type AutoProvisioningSettingsClientListOptions
- type AutoProvisioningSettingsClientListResponse
- type Automation
- type AutomationAction
- type AutomationActionClassification
- type AutomationActionEventHub
- type AutomationActionLogicApp
- type AutomationActionWorkspace
- type AutomationList
- type AutomationProperties
- type AutomationRuleSet
- type AutomationScope
- type AutomationSource
- type AutomationTriggeringRule
- type AutomationValidationStatus
- type AutomationsClient
- func (client *AutomationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationName string, ...) (AutomationsClientCreateOrUpdateResponse, error)
- func (client *AutomationsClient) Delete(ctx context.Context, resourceGroupName string, automationName string, ...) (AutomationsClientDeleteResponse, error)
- func (client *AutomationsClient) Get(ctx context.Context, resourceGroupName string, automationName string, ...) (AutomationsClientGetResponse, error)
- func (client *AutomationsClient) List(options *AutomationsClientListOptions) *runtime.Pager[AutomationsClientListResponse]
- func (client *AutomationsClient) ListByResourceGroup(resourceGroupName string, options *AutomationsClientListByResourceGroupOptions) *runtime.Pager[AutomationsClientListByResourceGroupResponse]
- func (client *AutomationsClient) Validate(ctx context.Context, resourceGroupName string, automationName string, ...) (AutomationsClientValidateResponse, error)
- type AutomationsClientCreateOrUpdateOptions
- type AutomationsClientCreateOrUpdateResponse
- type AutomationsClientDeleteOptions
- type AutomationsClientDeleteResponse
- type AutomationsClientGetOptions
- type AutomationsClientGetResponse
- type AutomationsClientListByResourceGroupOptions
- type AutomationsClientListByResourceGroupResponse
- type AutomationsClientListOptions
- type AutomationsClientListResponse
- type AutomationsClientValidateOptions
- type AutomationsClientValidateResponse
- type AwAssumeRoleAuthenticationDetailsProperties
- type AwsCredsAuthenticationDetailsProperties
- type AzureResourceDetails
- type AzureResourceIdentifier
- type AzureResourceLink
- type AzureTrackedResourceLocation
- type Baseline
- type BaselineAdjustedResult
- type BenchmarkReference
- type BundleType
- type CVE
- type CVSS
- type Categories
- type CefExternalSecuritySolution
- type CefSolutionProperties
- type CloudError
- type CloudErrorBody
- type CloudName
- type CloudOffering
- type CloudOfferingClassification
- type Compliance
- type ComplianceList
- type ComplianceProperties
- type ComplianceResult
- type ComplianceResultList
- type ComplianceResultProperties
- type ComplianceResultsClient
- func (client *ComplianceResultsClient) Get(ctx context.Context, resourceID string, complianceResultName string, ...) (ComplianceResultsClientGetResponse, error)
- func (client *ComplianceResultsClient) List(scope string, options *ComplianceResultsClientListOptions) *runtime.Pager[ComplianceResultsClientListResponse]
- type ComplianceResultsClientGetOptions
- type ComplianceResultsClientGetResponse
- type ComplianceResultsClientListOptions
- type ComplianceResultsClientListResponse
- type ComplianceSegment
- type CompliancesClient
- type CompliancesClientGetOptions
- type CompliancesClientGetResponse
- type CompliancesClientListOptions
- type CompliancesClientListResponse
- type ConfigurationStatus
- type ConnectableResource
- type ConnectedResource
- type ConnectedWorkspace
- type ConnectionFromIPNotAllowed
- func (c *ConnectionFromIPNotAllowed) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
- func (c *ConnectionFromIPNotAllowed) GetCustomAlertRule() *CustomAlertRule
- func (c *ConnectionFromIPNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule
- func (c ConnectionFromIPNotAllowed) MarshalJSON() ([]byte, error)
- func (c *ConnectionFromIPNotAllowed) UnmarshalJSON(data []byte) error
- type ConnectionStrings
- type ConnectionToIPNotAllowed
- func (c *ConnectionToIPNotAllowed) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
- func (c *ConnectionToIPNotAllowed) GetCustomAlertRule() *CustomAlertRule
- func (c *ConnectionToIPNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule
- func (c ConnectionToIPNotAllowed) MarshalJSON() ([]byte, error)
- func (c *ConnectionToIPNotAllowed) UnmarshalJSON(data []byte) error
- type ConnectionType
- type Connector
- type ConnectorProperties
- type ConnectorPropertiesOrganizationalData
- type ConnectorSetting
- type ConnectorSettingList
- type ConnectorSettingProperties
- type ConnectorsClient
- func (client *ConnectorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, securityConnectorName string, ...) (ConnectorsClientCreateOrUpdateResponse, error)
- func (client *ConnectorsClient) Delete(ctx context.Context, resourceGroupName string, securityConnectorName string, ...) (ConnectorsClientDeleteResponse, error)
- func (client *ConnectorsClient) Get(ctx context.Context, resourceGroupName string, securityConnectorName string, ...) (ConnectorsClientGetResponse, error)
- func (client *ConnectorsClient) List(options *ConnectorsClientListOptions) *runtime.Pager[ConnectorsClientListResponse]
- func (client *ConnectorsClient) ListByResourceGroup(resourceGroupName string, options *ConnectorsClientListByResourceGroupOptions) *runtime.Pager[ConnectorsClientListByResourceGroupResponse]
- func (client *ConnectorsClient) Update(ctx context.Context, resourceGroupName string, securityConnectorName string, ...) (ConnectorsClientUpdateResponse, error)
- type ConnectorsClientCreateOrUpdateOptions
- type ConnectorsClientCreateOrUpdateResponse
- type ConnectorsClientDeleteOptions
- type ConnectorsClientDeleteResponse
- type ConnectorsClientGetOptions
- type ConnectorsClientGetResponse
- type ConnectorsClientListByResourceGroupOptions
- type ConnectorsClientListByResourceGroupResponse
- type ConnectorsClientListOptions
- type ConnectorsClientListResponse
- type ConnectorsClientUpdateOptions
- type ConnectorsClientUpdateResponse
- type ConnectorsList
- type Contact
- type ContactList
- type ContactProperties
- type ContactsClient
- func (client *ContactsClient) Create(ctx context.Context, securityContactName string, securityContact Contact, ...) (ContactsClientCreateResponse, error)
- func (client *ContactsClient) Delete(ctx context.Context, securityContactName string, ...) (ContactsClientDeleteResponse, error)
- func (client *ContactsClient) Get(ctx context.Context, securityContactName string, ...) (ContactsClientGetResponse, error)
- func (client *ContactsClient) List(options *ContactsClientListOptions) *runtime.Pager[ContactsClientListResponse]
- func (client *ContactsClient) Update(ctx context.Context, securityContactName string, securityContact Contact, ...) (ContactsClientUpdateResponse, error)
- type ContactsClientCreateOptions
- type ContactsClientCreateResponse
- type ContactsClientDeleteOptions
- type ContactsClientDeleteResponse
- type ContactsClientGetOptions
- type ContactsClientGetResponse
- type ContactsClientListOptions
- type ContactsClientListResponse
- type ContactsClientUpdateOptions
- type ContactsClientUpdateResponse
- type ContainerRegistryVulnerabilityProperties
- type ControlType
- type CreatedByType
- type CspmMonitorAwsOffering
- type CspmMonitorAwsOfferingNativeCloudConnection
- type CustomAlertRule
- type CustomAlertRuleClassification
- type CustomAssessmentAutomation
- type CustomAssessmentAutomationProperties
- type CustomAssessmentAutomationRequest
- type CustomAssessmentAutomationRequestProperties
- type CustomAssessmentAutomationsClient
- func (client *CustomAssessmentAutomationsClient) Create(ctx context.Context, resourceGroupName string, ...) (CustomAssessmentAutomationsClientCreateResponse, error)
- func (client *CustomAssessmentAutomationsClient) Delete(ctx context.Context, resourceGroupName string, ...) (CustomAssessmentAutomationsClientDeleteResponse, error)
- func (client *CustomAssessmentAutomationsClient) Get(ctx context.Context, resourceGroupName string, ...) (CustomAssessmentAutomationsClientGetResponse, error)
- func (client *CustomAssessmentAutomationsClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[CustomAssessmentAutomationsClientListByResourceGroupResponse]
- func (client *CustomAssessmentAutomationsClient) ListBySubscription(options *CustomAssessmentAutomationsClientListBySubscriptionOptions) *runtime.Pager[CustomAssessmentAutomationsClientListBySubscriptionResponse]
- type CustomAssessmentAutomationsClientCreateOptions
- type CustomAssessmentAutomationsClientCreateResponse
- type CustomAssessmentAutomationsClientDeleteOptions
- type CustomAssessmentAutomationsClientDeleteResponse
- type CustomAssessmentAutomationsClientGetOptions
- type CustomAssessmentAutomationsClientGetResponse
- type CustomAssessmentAutomationsClientListByResourceGroupOptions
- type CustomAssessmentAutomationsClientListByResourceGroupResponse
- type CustomAssessmentAutomationsClientListBySubscriptionOptions
- type CustomAssessmentAutomationsClientListBySubscriptionResponse
- type CustomAssessmentAutomationsListResult
- type CustomEntityStoreAssignment
- type CustomEntityStoreAssignmentProperties
- type CustomEntityStoreAssignmentRequest
- type CustomEntityStoreAssignmentRequestProperties
- type CustomEntityStoreAssignmentsClient
- func (client *CustomEntityStoreAssignmentsClient) Create(ctx context.Context, resourceGroupName string, ...) (CustomEntityStoreAssignmentsClientCreateResponse, error)
- func (client *CustomEntityStoreAssignmentsClient) Delete(ctx context.Context, resourceGroupName string, ...) (CustomEntityStoreAssignmentsClientDeleteResponse, error)
- func (client *CustomEntityStoreAssignmentsClient) Get(ctx context.Context, resourceGroupName string, ...) (CustomEntityStoreAssignmentsClientGetResponse, error)
- func (client *CustomEntityStoreAssignmentsClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[CustomEntityStoreAssignmentsClientListByResourceGroupResponse]
- func (client *CustomEntityStoreAssignmentsClient) ListBySubscription(options *CustomEntityStoreAssignmentsClientListBySubscriptionOptions) *runtime.Pager[CustomEntityStoreAssignmentsClientListBySubscriptionResponse]
- type CustomEntityStoreAssignmentsClientCreateOptions
- type CustomEntityStoreAssignmentsClientCreateResponse
- type CustomEntityStoreAssignmentsClientDeleteOptions
- type CustomEntityStoreAssignmentsClientDeleteResponse
- type CustomEntityStoreAssignmentsClientGetOptions
- type CustomEntityStoreAssignmentsClientGetResponse
- type CustomEntityStoreAssignmentsClientListByResourceGroupOptions
- type CustomEntityStoreAssignmentsClientListByResourceGroupResponse
- type CustomEntityStoreAssignmentsClientListBySubscriptionOptions
- type CustomEntityStoreAssignmentsClientListBySubscriptionResponse
- type CustomEntityStoreAssignmentsListResult
- type DataExportSettingProperties
- type DataExportSettings
- type DataSource
- type DefenderForContainersAwsOffering
- type DefenderForContainersAwsOfferingCloudWatchToKinesis
- type DefenderForContainersAwsOfferingKinesisToS3
- type DefenderForContainersAwsOfferingKubernetesScubaReader
- type DefenderForContainersAwsOfferingKubernetesService
- type DefenderForServersAwsOffering
- type DefenderForServersAwsOfferingArcAutoProvisioning
- type DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata
- type DefenderForServersAwsOfferingDefenderForServers
- type DenylistCustomAlertRule
- type DeviceSecurityGroup
- type DeviceSecurityGroupList
- type DeviceSecurityGroupProperties
- type DeviceSecurityGroupsClient
- func (client *DeviceSecurityGroupsClient) CreateOrUpdate(ctx context.Context, resourceID string, deviceSecurityGroupName string, ...) (DeviceSecurityGroupsClientCreateOrUpdateResponse, error)
- func (client *DeviceSecurityGroupsClient) Delete(ctx context.Context, resourceID string, deviceSecurityGroupName string, ...) (DeviceSecurityGroupsClientDeleteResponse, error)
- func (client *DeviceSecurityGroupsClient) Get(ctx context.Context, resourceID string, deviceSecurityGroupName string, ...) (DeviceSecurityGroupsClientGetResponse, error)
- func (client *DeviceSecurityGroupsClient) List(resourceID string, options *DeviceSecurityGroupsClientListOptions) *runtime.Pager[DeviceSecurityGroupsClientListResponse]
- type DeviceSecurityGroupsClientCreateOrUpdateOptions
- type DeviceSecurityGroupsClientCreateOrUpdateResponse
- type DeviceSecurityGroupsClientDeleteOptions
- type DeviceSecurityGroupsClientDeleteResponse
- type DeviceSecurityGroupsClientGetOptions
- type DeviceSecurityGroupsClientGetResponse
- type DeviceSecurityGroupsClientListOptions
- type DeviceSecurityGroupsClientListResponse
- type DirectMethodInvokesNotInAllowedRange
- func (d *DirectMethodInvokesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (d *DirectMethodInvokesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (d *DirectMethodInvokesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (d DirectMethodInvokesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (d *DirectMethodInvokesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type Direction
- type DiscoveredSecuritySolution
- type DiscoveredSecuritySolutionList
- type DiscoveredSecuritySolutionProperties
- type DiscoveredSecuritySolutionsClient
- func (client *DiscoveredSecuritySolutionsClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, ...) (DiscoveredSecuritySolutionsClientGetResponse, error)
- func (client *DiscoveredSecuritySolutionsClient) List(options *DiscoveredSecuritySolutionsClientListOptions) *runtime.Pager[DiscoveredSecuritySolutionsClientListResponse]
- func (client *DiscoveredSecuritySolutionsClient) ListByHomeRegion(ascLocation string, ...) *runtime.Pager[DiscoveredSecuritySolutionsClientListByHomeRegionResponse]
- type DiscoveredSecuritySolutionsClientGetOptions
- type DiscoveredSecuritySolutionsClientGetResponse
- type DiscoveredSecuritySolutionsClientListByHomeRegionOptions
- type DiscoveredSecuritySolutionsClientListByHomeRegionResponse
- type DiscoveredSecuritySolutionsClientListOptions
- type DiscoveredSecuritySolutionsClientListResponse
- type ETag
- type EffectiveNetworkSecurityGroups
- type EndOfSupportStatus
- type EnforcementMode
- type EnforcementSupport
- type ErrorAdditionalInfo
- type EventSource
- type ExpandControlsEnum
- type ExpandEnum
- type ExportData
- type ExternalSecuritySolution
- type ExternalSecuritySolutionKind
- type ExternalSecuritySolutionKindAutoGenerated
- type ExternalSecuritySolutionList
- type ExternalSecuritySolutionProperties
- type ExternalSecuritySolutionsClient
- func (client *ExternalSecuritySolutionsClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, ...) (ExternalSecuritySolutionsClientGetResponse, error)
- func (client *ExternalSecuritySolutionsClient) List(options *ExternalSecuritySolutionsClientListOptions) *runtime.Pager[ExternalSecuritySolutionsClientListResponse]
- func (client *ExternalSecuritySolutionsClient) ListByHomeRegion(ascLocation string, ...) *runtime.Pager[ExternalSecuritySolutionsClientListByHomeRegionResponse]
- type ExternalSecuritySolutionsClientGetOptions
- type ExternalSecuritySolutionsClientGetResponse
- type ExternalSecuritySolutionsClientListByHomeRegionOptions
- type ExternalSecuritySolutionsClientListByHomeRegionResponse
- type ExternalSecuritySolutionsClientListOptions
- type ExternalSecuritySolutionsClientListResponse
- type FailedLocalLoginsNotInAllowedRange
- func (f *FailedLocalLoginsNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (f *FailedLocalLoginsNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (f *FailedLocalLoginsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (f FailedLocalLoginsNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (f *FailedLocalLoginsNotInAllowedRange) UnmarshalJSON(data []byte) error
- type FileType
- type FileUploadsNotInAllowedRange
- func (f *FileUploadsNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (f *FileUploadsNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (f *FileUploadsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (f FileUploadsNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (f *FileUploadsNotInAllowedRange) UnmarshalJSON(data []byte) error
- type GcpCredentialsDetailsProperties
- type HTTPC2DMessagesNotInAllowedRange
- func (h *HTTPC2DMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (h *HTTPC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (h *HTTPC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (h HTTPC2DMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (h *HTTPC2DMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type HTTPC2DRejectedMessagesNotInAllowedRange
- func (h *HTTPC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (h *HTTPC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (h *HTTPC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (h HTTPC2DRejectedMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (h *HTTPC2DRejectedMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type HTTPD2CMessagesNotInAllowedRange
- func (h *HTTPD2CMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (h *HTTPD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (h *HTTPD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (h HTTPD2CMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (h *HTTPD2CMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type HybridComputeProvisioningState
- type HybridComputeSettingsProperties
- type ImplementationEffort
- type InformationProtectionAwsOffering
- type InformationProtectionAwsOfferingInformationProtection
- type InformationProtectionKeyword
- type InformationProtectionPoliciesClient
- func (client *InformationProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, scope string, ...) (InformationProtectionPoliciesClientCreateOrUpdateResponse, error)
- func (client *InformationProtectionPoliciesClient) Get(ctx context.Context, scope string, ...) (InformationProtectionPoliciesClientGetResponse, error)
- func (client *InformationProtectionPoliciesClient) List(scope string, options *InformationProtectionPoliciesClientListOptions) *runtime.Pager[InformationProtectionPoliciesClientListResponse]
- type InformationProtectionPoliciesClientCreateOrUpdateOptions
- type InformationProtectionPoliciesClientCreateOrUpdateResponse
- type InformationProtectionPoliciesClientGetOptions
- type InformationProtectionPoliciesClientGetResponse
- type InformationProtectionPoliciesClientListOptions
- type InformationProtectionPoliciesClientListResponse
- type InformationProtectionPolicy
- type InformationProtectionPolicyList
- type InformationProtectionPolicyName
- type InformationProtectionPolicyProperties
- type InformationType
- type IngestionConnectionString
- type IngestionSetting
- type IngestionSettingList
- type IngestionSettingToken
- type IngestionSettingsClient
- func (client *IngestionSettingsClient) Create(ctx context.Context, ingestionSettingName string, ...) (IngestionSettingsClientCreateResponse, error)
- func (client *IngestionSettingsClient) Delete(ctx context.Context, ingestionSettingName string, ...) (IngestionSettingsClientDeleteResponse, error)
- func (client *IngestionSettingsClient) Get(ctx context.Context, ingestionSettingName string, ...) (IngestionSettingsClientGetResponse, error)
- func (client *IngestionSettingsClient) List(options *IngestionSettingsClientListOptions) *runtime.Pager[IngestionSettingsClientListResponse]
- func (client *IngestionSettingsClient) ListConnectionStrings(ctx context.Context, ingestionSettingName string, ...) (IngestionSettingsClientListConnectionStringsResponse, error)
- func (client *IngestionSettingsClient) ListTokens(ctx context.Context, ingestionSettingName string, ...) (IngestionSettingsClientListTokensResponse, error)
- type IngestionSettingsClientCreateOptions
- type IngestionSettingsClientCreateResponse
- type IngestionSettingsClientDeleteOptions
- type IngestionSettingsClientDeleteResponse
- type IngestionSettingsClientGetOptions
- type IngestionSettingsClientGetResponse
- type IngestionSettingsClientListConnectionStringsOptions
- type IngestionSettingsClientListConnectionStringsResponse
- type IngestionSettingsClientListOptions
- type IngestionSettingsClientListResponse
- type IngestionSettingsClientListTokensOptions
- type IngestionSettingsClientListTokensResponse
- type Intent
- type IoTSecurityAggregatedAlert
- type IoTSecurityAggregatedAlertList
- type IoTSecurityAggregatedAlertProperties
- type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem
- type IoTSecurityAggregatedRecommendation
- type IoTSecurityAggregatedRecommendationList
- type IoTSecurityAggregatedRecommendationProperties
- type IoTSecurityAlertedDevice
- type IoTSecurityDeviceAlert
- type IoTSecurityDeviceRecommendation
- type IoTSecuritySolutionAnalyticsModel
- type IoTSecuritySolutionAnalyticsModelList
- type IoTSecuritySolutionAnalyticsModelProperties
- type IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem
- type IoTSecuritySolutionModel
- type IoTSecuritySolutionProperties
- type IoTSecuritySolutionsList
- type IoTSeverityMetrics
- type IotSecuritySolutionAnalyticsClient
- func (client *IotSecuritySolutionAnalyticsClient) Get(ctx context.Context, resourceGroupName string, solutionName string, ...) (IotSecuritySolutionAnalyticsClientGetResponse, error)
- func (client *IotSecuritySolutionAnalyticsClient) List(ctx context.Context, resourceGroupName string, solutionName string, ...) (IotSecuritySolutionAnalyticsClientListResponse, error)
- type IotSecuritySolutionAnalyticsClientGetOptions
- type IotSecuritySolutionAnalyticsClientGetResponse
- type IotSecuritySolutionAnalyticsClientListOptions
- type IotSecuritySolutionAnalyticsClientListResponse
- type IotSecuritySolutionClient
- func (client *IotSecuritySolutionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, solutionName string, ...) (IotSecuritySolutionClientCreateOrUpdateResponse, error)
- func (client *IotSecuritySolutionClient) Delete(ctx context.Context, resourceGroupName string, solutionName string, ...) (IotSecuritySolutionClientDeleteResponse, error)
- func (client *IotSecuritySolutionClient) Get(ctx context.Context, resourceGroupName string, solutionName string, ...) (IotSecuritySolutionClientGetResponse, error)
- func (client *IotSecuritySolutionClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[IotSecuritySolutionClientListByResourceGroupResponse]
- func (client *IotSecuritySolutionClient) ListBySubscription(options *IotSecuritySolutionClientListBySubscriptionOptions) *runtime.Pager[IotSecuritySolutionClientListBySubscriptionResponse]
- func (client *IotSecuritySolutionClient) Update(ctx context.Context, resourceGroupName string, solutionName string, ...) (IotSecuritySolutionClientUpdateResponse, error)
- type IotSecuritySolutionClientCreateOrUpdateOptions
- type IotSecuritySolutionClientCreateOrUpdateResponse
- type IotSecuritySolutionClientDeleteOptions
- type IotSecuritySolutionClientDeleteResponse
- type IotSecuritySolutionClientGetOptions
- type IotSecuritySolutionClientGetResponse
- type IotSecuritySolutionClientListByResourceGroupOptions
- type IotSecuritySolutionClientListByResourceGroupResponse
- type IotSecuritySolutionClientListBySubscriptionOptions
- type IotSecuritySolutionClientListBySubscriptionResponse
- type IotSecuritySolutionClientUpdateOptions
- type IotSecuritySolutionClientUpdateResponse
- type IotSecuritySolutionsAnalyticsAggregatedAlertClient
- func (client *IotSecuritySolutionsAnalyticsAggregatedAlertClient) Dismiss(ctx context.Context, resourceGroupName string, solutionName string, ...) (IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissResponse, error)
- func (client *IotSecuritySolutionsAnalyticsAggregatedAlertClient) Get(ctx context.Context, resourceGroupName string, solutionName string, ...) (IotSecuritySolutionsAnalyticsAggregatedAlertClientGetResponse, error)
- func (client *IotSecuritySolutionsAnalyticsAggregatedAlertClient) List(resourceGroupName string, solutionName string, ...) *runtime.Pager[IotSecuritySolutionsAnalyticsAggregatedAlertClientListResponse]
- type IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissOptions
- type IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissResponse
- type IotSecuritySolutionsAnalyticsAggregatedAlertClientGetOptions
- type IotSecuritySolutionsAnalyticsAggregatedAlertClientGetResponse
- type IotSecuritySolutionsAnalyticsAggregatedAlertClientListOptions
- type IotSecuritySolutionsAnalyticsAggregatedAlertClientListResponse
- type IotSecuritySolutionsAnalyticsRecommendationClient
- func (client *IotSecuritySolutionsAnalyticsRecommendationClient) Get(ctx context.Context, resourceGroupName string, solutionName string, ...) (IotSecuritySolutionsAnalyticsRecommendationClientGetResponse, error)
- func (client *IotSecuritySolutionsAnalyticsRecommendationClient) List(resourceGroupName string, solutionName string, ...) *runtime.Pager[IotSecuritySolutionsAnalyticsRecommendationClientListResponse]
- type IotSecuritySolutionsAnalyticsRecommendationClientGetOptions
- type IotSecuritySolutionsAnalyticsRecommendationClientGetResponse
- type IotSecuritySolutionsAnalyticsRecommendationClientListOptions
- type IotSecuritySolutionsAnalyticsRecommendationClientListResponse
- type JitNetworkAccessPoliciesClient
- func (client *JitNetworkAccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ascLocation string, ...) (JitNetworkAccessPoliciesClientCreateOrUpdateResponse, error)
- func (client *JitNetworkAccessPoliciesClient) Delete(ctx context.Context, resourceGroupName string, ascLocation string, ...) (JitNetworkAccessPoliciesClientDeleteResponse, error)
- func (client *JitNetworkAccessPoliciesClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, ...) (JitNetworkAccessPoliciesClientGetResponse, error)
- func (client *JitNetworkAccessPoliciesClient) Initiate(ctx context.Context, resourceGroupName string, ascLocation string, ...) (JitNetworkAccessPoliciesClientInitiateResponse, error)
- func (client *JitNetworkAccessPoliciesClient) List(options *JitNetworkAccessPoliciesClientListOptions) *runtime.Pager[JitNetworkAccessPoliciesClientListResponse]
- func (client *JitNetworkAccessPoliciesClient) ListByRegion(ascLocation string, options *JitNetworkAccessPoliciesClientListByRegionOptions) *runtime.Pager[JitNetworkAccessPoliciesClientListByRegionResponse]
- func (client *JitNetworkAccessPoliciesClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[JitNetworkAccessPoliciesClientListByResourceGroupResponse]
- func (client *JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(resourceGroupName string, ascLocation string, ...) ...
- type JitNetworkAccessPoliciesClientCreateOrUpdateOptions
- type JitNetworkAccessPoliciesClientCreateOrUpdateResponse
- type JitNetworkAccessPoliciesClientDeleteOptions
- type JitNetworkAccessPoliciesClientDeleteResponse
- type JitNetworkAccessPoliciesClientGetOptions
- type JitNetworkAccessPoliciesClientGetResponse
- type JitNetworkAccessPoliciesClientInitiateOptions
- type JitNetworkAccessPoliciesClientInitiateResponse
- type JitNetworkAccessPoliciesClientListByRegionOptions
- type JitNetworkAccessPoliciesClientListByRegionResponse
- type JitNetworkAccessPoliciesClientListByResourceGroupAndRegionOptions
- type JitNetworkAccessPoliciesClientListByResourceGroupAndRegionResponse
- type JitNetworkAccessPoliciesClientListByResourceGroupOptions
- type JitNetworkAccessPoliciesClientListByResourceGroupResponse
- type JitNetworkAccessPoliciesClientListOptions
- type JitNetworkAccessPoliciesClientListResponse
- type JitNetworkAccessPoliciesList
- type JitNetworkAccessPolicy
- type JitNetworkAccessPolicyInitiatePort
- type JitNetworkAccessPolicyInitiateRequest
- type JitNetworkAccessPolicyInitiateVirtualMachine
- type JitNetworkAccessPolicyProperties
- type JitNetworkAccessPolicyVirtualMachine
- type JitNetworkAccessPortRule
- type JitNetworkAccessRequest
- type JitNetworkAccessRequestPort
- type JitNetworkAccessRequestVirtualMachine
- type Kind
- type KindAutoGenerated
- type ListCustomAlertRule
- type ListCustomAlertRuleClassification
- type LocalUserNotAllowed
- func (l *LocalUserNotAllowed) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
- func (l *LocalUserNotAllowed) GetCustomAlertRule() *CustomAlertRule
- func (l *LocalUserNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule
- func (l LocalUserNotAllowed) MarshalJSON() ([]byte, error)
- func (l *LocalUserNotAllowed) UnmarshalJSON(data []byte) error
- type Location
- type LocationsClient
- type LocationsClientGetOptions
- type LocationsClientGetResponse
- type LocationsClientListOptions
- type LocationsClientListResponse
- type LogAnalyticsIdentifier
- type MdeOnboardingData
- type MdeOnboardingDataList
- type MdeOnboardingDataProperties
- type MdeOnboardingsClient
- type MdeOnboardingsClientGetOptions
- type MdeOnboardingsClientGetResponse
- type MdeOnboardingsClientListOptions
- type MdeOnboardingsClientListResponse
- type MqttC2DMessagesNotInAllowedRange
- func (m *MqttC2DMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (m *MqttC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (m *MqttC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (m MqttC2DMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (m *MqttC2DMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type MqttC2DRejectedMessagesNotInAllowedRange
- func (m *MqttC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (m *MqttC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (m *MqttC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (m MqttC2DRejectedMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (m *MqttC2DRejectedMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type MqttD2CMessagesNotInAllowedRange
- func (m *MqttD2CMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (m *MqttD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (m *MqttD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (m MqttD2CMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (m *MqttD2CMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type OfferingType
- type OnPremiseResourceDetails
- type OnPremiseResourceDetailsClassification
- type OnPremiseSQLResourceDetails
- func (o *OnPremiseSQLResourceDetails) GetOnPremiseResourceDetails() *OnPremiseResourceDetails
- func (o *OnPremiseSQLResourceDetails) GetResourceDetails() *ResourceDetails
- func (o OnPremiseSQLResourceDetails) MarshalJSON() ([]byte, error)
- func (o *OnPremiseSQLResourceDetails) UnmarshalJSON(data []byte) error
- type Operation
- type OperationDisplay
- type OperationList
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Operator
- type OrganizationMembershipType
- type PathRecommendation
- type PermissionProperty
- type Pricing
- type PricingList
- type PricingProperties
- type PricingTier
- type PricingsClient
- func (client *PricingsClient) Get(ctx context.Context, pricingName string, options *PricingsClientGetOptions) (PricingsClientGetResponse, error)
- func (client *PricingsClient) List(ctx context.Context, options *PricingsClientListOptions) (PricingsClientListResponse, error)
- func (client *PricingsClient) Update(ctx context.Context, pricingName string, pricing Pricing, ...) (PricingsClientUpdateResponse, error)
- type PricingsClientGetOptions
- type PricingsClientGetResponse
- type PricingsClientListOptions
- type PricingsClientListResponse
- type PricingsClientUpdateOptions
- type PricingsClientUpdateResponse
- type ProcessNotAllowed
- func (p *ProcessNotAllowed) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
- func (p *ProcessNotAllowed) GetCustomAlertRule() *CustomAlertRule
- func (p *ProcessNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule
- func (p ProcessNotAllowed) MarshalJSON() ([]byte, error)
- func (p *ProcessNotAllowed) UnmarshalJSON(data []byte) error
- type PropertyType
- type ProtectionMode
- type Protocol
- type ProvisioningState
- type ProxyServerProperties
- type PublisherInfo
- type QueryCheck
- type QueuePurgesNotInAllowedRange
- func (q *QueuePurgesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (q *QueuePurgesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (q *QueuePurgesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (q QueuePurgesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (q *QueuePurgesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type Rank
- type RecommendationAction
- type RecommendationConfigStatus
- type RecommendationConfigurationProperties
- type RecommendationStatus
- type RecommendationType
- type RegulatoryComplianceAssessment
- type RegulatoryComplianceAssessmentList
- type RegulatoryComplianceAssessmentProperties
- type RegulatoryComplianceAssessmentsClient
- func (client *RegulatoryComplianceAssessmentsClient) Get(ctx context.Context, regulatoryComplianceStandardName string, ...) (RegulatoryComplianceAssessmentsClientGetResponse, error)
- func (client *RegulatoryComplianceAssessmentsClient) List(regulatoryComplianceStandardName string, ...) *runtime.Pager[RegulatoryComplianceAssessmentsClientListResponse]
- type RegulatoryComplianceAssessmentsClientGetOptions
- type RegulatoryComplianceAssessmentsClientGetResponse
- type RegulatoryComplianceAssessmentsClientListOptions
- type RegulatoryComplianceAssessmentsClientListResponse
- type RegulatoryComplianceControl
- type RegulatoryComplianceControlList
- type RegulatoryComplianceControlProperties
- type RegulatoryComplianceControlsClient
- func (client *RegulatoryComplianceControlsClient) Get(ctx context.Context, regulatoryComplianceStandardName string, ...) (RegulatoryComplianceControlsClientGetResponse, error)
- func (client *RegulatoryComplianceControlsClient) List(regulatoryComplianceStandardName string, ...) *runtime.Pager[RegulatoryComplianceControlsClientListResponse]
- type RegulatoryComplianceControlsClientGetOptions
- type RegulatoryComplianceControlsClientGetResponse
- type RegulatoryComplianceControlsClientListOptions
- type RegulatoryComplianceControlsClientListResponse
- type RegulatoryComplianceStandard
- type RegulatoryComplianceStandardList
- type RegulatoryComplianceStandardProperties
- type RegulatoryComplianceStandardsClient
- func (client *RegulatoryComplianceStandardsClient) Get(ctx context.Context, regulatoryComplianceStandardName string, ...) (RegulatoryComplianceStandardsClientGetResponse, error)
- func (client *RegulatoryComplianceStandardsClient) List(options *RegulatoryComplianceStandardsClientListOptions) *runtime.Pager[RegulatoryComplianceStandardsClientListResponse]
- type RegulatoryComplianceStandardsClientGetOptions
- type RegulatoryComplianceStandardsClientGetResponse
- type RegulatoryComplianceStandardsClientListOptions
- type RegulatoryComplianceStandardsClientListResponse
- type Remediation
- type ReportedSeverity
- type Resource
- type ResourceDetails
- type ResourceDetailsClassification
- type ResourceIdentifier
- type ResourceIdentifierClassification
- type ResourceIdentifierType
- type ResourceStatus
- type Rule
- type RuleResults
- type RuleResultsInput
- type RuleResultsProperties
- type RuleSeverity
- type RuleState
- type RuleStatus
- type RuleType
- type RulesResults
- type RulesResultsInput
- type SQLServerVulnerabilityProperties
- type SQLVulnerabilityAssessmentBaselineRulesClient
- func (client *SQLVulnerabilityAssessmentBaselineRulesClient) Add(ctx context.Context, workspaceID string, resourceID string, ...) (SQLVulnerabilityAssessmentBaselineRulesClientAddResponse, error)
- func (client *SQLVulnerabilityAssessmentBaselineRulesClient) CreateOrUpdate(ctx context.Context, ruleID string, workspaceID string, resourceID string, ...) (SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateResponse, error)
- func (client *SQLVulnerabilityAssessmentBaselineRulesClient) Delete(ctx context.Context, ruleID string, workspaceID string, resourceID string, ...) (SQLVulnerabilityAssessmentBaselineRulesClientDeleteResponse, error)
- func (client *SQLVulnerabilityAssessmentBaselineRulesClient) Get(ctx context.Context, ruleID string, workspaceID string, resourceID string, ...) (SQLVulnerabilityAssessmentBaselineRulesClientGetResponse, error)
- func (client *SQLVulnerabilityAssessmentBaselineRulesClient) List(ctx context.Context, workspaceID string, resourceID string, ...) (SQLVulnerabilityAssessmentBaselineRulesClientListResponse, error)
- type SQLVulnerabilityAssessmentBaselineRulesClientAddOptions
- type SQLVulnerabilityAssessmentBaselineRulesClientAddResponse
- type SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateOptions
- type SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateResponse
- type SQLVulnerabilityAssessmentBaselineRulesClientDeleteOptions
- type SQLVulnerabilityAssessmentBaselineRulesClientDeleteResponse
- type SQLVulnerabilityAssessmentBaselineRulesClientGetOptions
- type SQLVulnerabilityAssessmentBaselineRulesClientGetResponse
- type SQLVulnerabilityAssessmentBaselineRulesClientListOptions
- type SQLVulnerabilityAssessmentBaselineRulesClientListResponse
- type SQLVulnerabilityAssessmentScanResultsClient
- func (client *SQLVulnerabilityAssessmentScanResultsClient) Get(ctx context.Context, scanID string, scanResultID string, workspaceID string, ...) (SQLVulnerabilityAssessmentScanResultsClientGetResponse, error)
- func (client *SQLVulnerabilityAssessmentScanResultsClient) List(ctx context.Context, scanID string, workspaceID string, resourceID string, ...) (SQLVulnerabilityAssessmentScanResultsClientListResponse, error)
- type SQLVulnerabilityAssessmentScanResultsClientGetOptions
- type SQLVulnerabilityAssessmentScanResultsClientGetResponse
- type SQLVulnerabilityAssessmentScanResultsClientListOptions
- type SQLVulnerabilityAssessmentScanResultsClientListResponse
- type SQLVulnerabilityAssessmentScansClient
- func (client *SQLVulnerabilityAssessmentScansClient) Get(ctx context.Context, scanID string, workspaceID string, resourceID string, ...) (SQLVulnerabilityAssessmentScansClientGetResponse, error)
- func (client *SQLVulnerabilityAssessmentScansClient) List(ctx context.Context, workspaceID string, resourceID string, ...) (SQLVulnerabilityAssessmentScansClientListResponse, error)
- type SQLVulnerabilityAssessmentScansClientGetOptions
- type SQLVulnerabilityAssessmentScansClientGetResponse
- type SQLVulnerabilityAssessmentScansClientListOptions
- type SQLVulnerabilityAssessmentScansClientListResponse
- type Scan
- type ScanProperties
- type ScanResult
- type ScanResultProperties
- type ScanResults
- type ScanState
- type ScanTriggerType
- type Scans
- type ScopeElement
- type ScoreDetails
- type SecureScoreControlDefinitionItem
- type SecureScoreControlDefinitionItemProperties
- type SecureScoreControlDefinitionList
- type SecureScoreControlDefinitionSource
- type SecureScoreControlDefinitionsClient
- func (client *SecureScoreControlDefinitionsClient) List(options *SecureScoreControlDefinitionsClientListOptions) *runtime.Pager[SecureScoreControlDefinitionsClientListResponse]
- func (client *SecureScoreControlDefinitionsClient) ListBySubscription(options *SecureScoreControlDefinitionsClientListBySubscriptionOptions) *runtime.Pager[SecureScoreControlDefinitionsClientListBySubscriptionResponse]
- type SecureScoreControlDefinitionsClientListBySubscriptionOptions
- type SecureScoreControlDefinitionsClientListBySubscriptionResponse
- type SecureScoreControlDefinitionsClientListOptions
- type SecureScoreControlDefinitionsClientListResponse
- type SecureScoreControlDetails
- type SecureScoreControlList
- type SecureScoreControlScore
- type SecureScoreControlScoreDetails
- type SecureScoreControlsClient
- func (client *SecureScoreControlsClient) List(options *SecureScoreControlsClientListOptions) *runtime.Pager[SecureScoreControlsClientListResponse]
- func (client *SecureScoreControlsClient) ListBySecureScore(secureScoreName string, ...) *runtime.Pager[SecureScoreControlsClientListBySecureScoreResponse]
- type SecureScoreControlsClientListBySecureScoreOptions
- type SecureScoreControlsClientListBySecureScoreResponse
- type SecureScoreControlsClientListOptions
- type SecureScoreControlsClientListResponse
- type SecureScoreItem
- type SecureScoreItemProperties
- type SecureScoresClient
- type SecureScoresClientGetOptions
- type SecureScoresClientGetResponse
- type SecureScoresClientListOptions
- type SecureScoresClientListResponse
- type SecureScoresList
- type SecurityFamily
- type SecuritySolutionStatus
- type SensitivityLabel
- type ServerVulnerabilityAssessment
- type ServerVulnerabilityAssessmentClient
- func (client *ServerVulnerabilityAssessmentClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*armruntime.Poller[ServerVulnerabilityAssessmentClientDeleteResponse], error)
- func (client *ServerVulnerabilityAssessmentClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (ServerVulnerabilityAssessmentClientCreateOrUpdateResponse, error)
- func (client *ServerVulnerabilityAssessmentClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (ServerVulnerabilityAssessmentClientGetResponse, error)
- func (client *ServerVulnerabilityAssessmentClient) ListByExtendedResource(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (ServerVulnerabilityAssessmentClientListByExtendedResourceResponse, error)
- type ServerVulnerabilityAssessmentClientBeginDeleteOptions
- type ServerVulnerabilityAssessmentClientCreateOrUpdateOptions
- type ServerVulnerabilityAssessmentClientCreateOrUpdateResponse
- type ServerVulnerabilityAssessmentClientDeleteResponse
- type ServerVulnerabilityAssessmentClientGetOptions
- type ServerVulnerabilityAssessmentClientGetResponse
- type ServerVulnerabilityAssessmentClientListByExtendedResourceOptions
- type ServerVulnerabilityAssessmentClientListByExtendedResourceResponse
- type ServerVulnerabilityAssessmentProperties
- type ServerVulnerabilityAssessmentPropertiesProvisioningState
- type ServerVulnerabilityAssessmentsList
- type ServerVulnerabilityProperties
- type ServicePrincipalProperties
- type Setting
- type SettingClassification
- type SettingKind
- type SettingName
- type SettingsClient
- func (client *SettingsClient) Get(ctx context.Context, settingName SettingName, ...) (SettingsClientGetResponse, error)
- func (client *SettingsClient) List(options *SettingsClientListOptions) *runtime.Pager[SettingsClientListResponse]
- func (client *SettingsClient) Update(ctx context.Context, settingName SettingName, setting SettingClassification, ...) (SettingsClientUpdateResponse, error)
- type SettingsClientGetOptions
- type SettingsClientGetResponse
- type SettingsClientListOptions
- type SettingsClientListResponse
- type SettingsClientUpdateOptions
- type SettingsClientUpdateResponse
- type SettingsList
- type Severity
- type SeverityEnum
- type Software
- type SoftwareInventoriesClient
- func (client *SoftwareInventoriesClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (SoftwareInventoriesClientGetResponse, error)
- func (client *SoftwareInventoriesClient) ListByExtendedResource(resourceGroupName string, resourceNamespace string, resourceType string, ...) *runtime.Pager[SoftwareInventoriesClientListByExtendedResourceResponse]
- func (client *SoftwareInventoriesClient) ListBySubscription(options *SoftwareInventoriesClientListBySubscriptionOptions) *runtime.Pager[SoftwareInventoriesClientListBySubscriptionResponse]
- type SoftwareInventoriesClientGetOptions
- type SoftwareInventoriesClientGetResponse
- type SoftwareInventoriesClientListByExtendedResourceOptions
- type SoftwareInventoriesClientListByExtendedResourceResponse
- type SoftwareInventoriesClientListBySubscriptionOptions
- type SoftwareInventoriesClientListBySubscriptionResponse
- type SoftwareProperties
- type SoftwaresList
- type Solution
- type SolutionList
- type SolutionProperties
- type SolutionsClient
- type SolutionsClientGetOptions
- type SolutionsClientGetResponse
- type SolutionsClientListOptions
- type SolutionsClientListResponse
- type SolutionsReferenceData
- type SolutionsReferenceDataClient
- func (client *SolutionsReferenceDataClient) List(ctx context.Context, options *SolutionsReferenceDataClientListOptions) (SolutionsReferenceDataClientListResponse, error)
- func (client *SolutionsReferenceDataClient) ListByHomeRegion(ctx context.Context, ascLocation string, ...) (SolutionsReferenceDataClientListByHomeRegionResponse, error)
- type SolutionsReferenceDataClientListByHomeRegionOptions
- type SolutionsReferenceDataClientListByHomeRegionResponse
- type SolutionsReferenceDataClientListOptions
- type SolutionsReferenceDataClientListResponse
- type SolutionsReferenceDataList
- type SolutionsReferenceDataProperties
- type Source
- type SourceSystem
- type State
- type Status
- type StatusReason
- type SubAssessment
- type SubAssessmentList
- type SubAssessmentProperties
- type SubAssessmentStatus
- type SubAssessmentStatusCode
- type SubAssessmentsClient
- func (client *SubAssessmentsClient) Get(ctx context.Context, scope string, assessmentName string, ...) (SubAssessmentsClientGetResponse, error)
- func (client *SubAssessmentsClient) List(scope string, assessmentName string, options *SubAssessmentsClientListOptions) *runtime.Pager[SubAssessmentsClientListResponse]
- func (client *SubAssessmentsClient) ListAll(scope string, options *SubAssessmentsClientListAllOptions) *runtime.Pager[SubAssessmentsClientListAllResponse]
- type SubAssessmentsClientGetOptions
- type SubAssessmentsClientGetResponse
- type SubAssessmentsClientListAllOptions
- type SubAssessmentsClientListAllResponse
- type SubAssessmentsClientListOptions
- type SubAssessmentsClientListResponse
- type SupportedCloudEnum
- type SuppressionAlertsScope
- type SystemData
- type Tactics
- type Tags
- type TagsResource
- type Task
- type TaskList
- type TaskParameters
- type TaskProperties
- type TaskUpdateActionType
- type TasksClient
- func (client *TasksClient) GetResourceGroupLevelTask(ctx context.Context, resourceGroupName string, ascLocation string, ...) (TasksClientGetResourceGroupLevelTaskResponse, error)
- func (client *TasksClient) GetSubscriptionLevelTask(ctx context.Context, ascLocation string, taskName string, ...) (TasksClientGetSubscriptionLevelTaskResponse, error)
- func (client *TasksClient) List(options *TasksClientListOptions) *runtime.Pager[TasksClientListResponse]
- func (client *TasksClient) ListByHomeRegion(ascLocation string, options *TasksClientListByHomeRegionOptions) *runtime.Pager[TasksClientListByHomeRegionResponse]
- func (client *TasksClient) ListByResourceGroup(resourceGroupName string, ascLocation string, ...) *runtime.Pager[TasksClientListByResourceGroupResponse]
- func (client *TasksClient) UpdateResourceGroupLevelTaskState(ctx context.Context, resourceGroupName string, ascLocation string, ...) (TasksClientUpdateResourceGroupLevelTaskStateResponse, error)
- func (client *TasksClient) UpdateSubscriptionLevelTaskState(ctx context.Context, ascLocation string, taskName string, ...) (TasksClientUpdateSubscriptionLevelTaskStateResponse, error)
- type TasksClientGetResourceGroupLevelTaskOptions
- type TasksClientGetResourceGroupLevelTaskResponse
- type TasksClientGetSubscriptionLevelTaskOptions
- type TasksClientGetSubscriptionLevelTaskResponse
- type TasksClientListByHomeRegionOptions
- type TasksClientListByHomeRegionResponse
- type TasksClientListByResourceGroupOptions
- type TasksClientListByResourceGroupResponse
- type TasksClientListOptions
- type TasksClientListResponse
- type TasksClientUpdateResourceGroupLevelTaskStateOptions
- type TasksClientUpdateResourceGroupLevelTaskStateResponse
- type TasksClientUpdateSubscriptionLevelTaskStateOptions
- type TasksClientUpdateSubscriptionLevelTaskStateResponse
- type Techniques
- type Threats
- type ThresholdCustomAlertRule
- type ThresholdCustomAlertRuleClassification
- type TimeWindowCustomAlertRule
- func (t *TimeWindowCustomAlertRule) GetCustomAlertRule() *CustomAlertRule
- func (t *TimeWindowCustomAlertRule) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (t *TimeWindowCustomAlertRule) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (t TimeWindowCustomAlertRule) MarshalJSON() ([]byte, error)
- func (t *TimeWindowCustomAlertRule) UnmarshalJSON(data []byte) error
- type TimeWindowCustomAlertRuleClassification
- type TopologyClient
- func (client *TopologyClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, ...) (TopologyClientGetResponse, error)
- func (client *TopologyClient) List(options *TopologyClientListOptions) *runtime.Pager[TopologyClientListResponse]
- func (client *TopologyClient) ListByHomeRegion(ascLocation string, options *TopologyClientListByHomeRegionOptions) *runtime.Pager[TopologyClientListByHomeRegionResponse]
- type TopologyClientGetOptions
- type TopologyClientGetResponse
- type TopologyClientListByHomeRegionOptions
- type TopologyClientListByHomeRegionResponse
- type TopologyClientListOptions
- type TopologyClientListResponse
- type TopologyList
- type TopologyResource
- type TopologyResourceProperties
- type TopologySingleResource
- type TopologySingleResourceChild
- type TopologySingleResourceParent
- type TrackedResource
- type TransportProtocol
- type TwinUpdatesNotInAllowedRange
- func (t *TwinUpdatesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (t *TwinUpdatesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (t *TwinUpdatesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (t TwinUpdatesNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (t *TwinUpdatesNotInAllowedRange) UnmarshalJSON(data []byte) error
- type UnauthorizedOperationsNotInAllowedRange
- func (u *UnauthorizedOperationsNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
- func (u *UnauthorizedOperationsNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
- func (u *UnauthorizedOperationsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
- func (u UnauthorizedOperationsNotInAllowedRange) MarshalJSON() ([]byte, error)
- func (u *UnauthorizedOperationsNotInAllowedRange) UnmarshalJSON(data []byte) error
- type UnmaskedIPLoggingStatus
- type UpdateIoTSecuritySolutionProperties
- type UpdateIotSecuritySolutionData
- type UserDefinedResourcesProperties
- type UserImpact
- type UserRecommendation
- type VMRecommendation
- type VaRule
- type ValueType
- type VendorReference
- type WorkspaceSetting
- type WorkspaceSettingList
- type WorkspaceSettingProperties
- type WorkspaceSettingsClient
- func (client *WorkspaceSettingsClient) Create(ctx context.Context, workspaceSettingName string, ...) (WorkspaceSettingsClientCreateResponse, error)
- func (client *WorkspaceSettingsClient) Delete(ctx context.Context, workspaceSettingName string, ...) (WorkspaceSettingsClientDeleteResponse, error)
- func (client *WorkspaceSettingsClient) Get(ctx context.Context, workspaceSettingName string, ...) (WorkspaceSettingsClientGetResponse, error)
- func (client *WorkspaceSettingsClient) List(options *WorkspaceSettingsClientListOptions) *runtime.Pager[WorkspaceSettingsClientListResponse]
- func (client *WorkspaceSettingsClient) Update(ctx context.Context, workspaceSettingName string, ...) (WorkspaceSettingsClientUpdateResponse, error)
- type WorkspaceSettingsClientCreateOptions
- type WorkspaceSettingsClientCreateResponse
- type WorkspaceSettingsClientDeleteOptions
- type WorkspaceSettingsClientDeleteResponse
- type WorkspaceSettingsClientGetOptions
- type WorkspaceSettingsClientGetResponse
- type WorkspaceSettingsClientListOptions
- type WorkspaceSettingsClientListResponse
- type WorkspaceSettingsClientUpdateOptions
- type WorkspaceSettingsClientUpdateResponse
Examples ¶
- AccountConnectorsClient.CreateOrUpdate
- AccountConnectorsClient.Delete
- AccountConnectorsClient.Get
- AccountConnectorsClient.List
- AdaptiveApplicationControlsClient.Delete
- AdaptiveApplicationControlsClient.Get
- AdaptiveApplicationControlsClient.List
- AdaptiveApplicationControlsClient.Put
- AdaptiveNetworkHardeningsClient.BeginEnforce
- AdaptiveNetworkHardeningsClient.Get
- AdaptiveNetworkHardeningsClient.ListByExtendedResource
- AdvancedThreatProtectionClient.Create
- AdvancedThreatProtectionClient.Get
- AlertsClient.GetResourceGroupLevel
- AlertsClient.GetSubscriptionLevel
- AlertsClient.List
- AlertsClient.ListByResourceGroup
- AlertsClient.ListResourceGroupLevelByRegion
- AlertsClient.ListSubscriptionLevelByRegion
- AlertsClient.Simulate
- AlertsClient.UpdateResourceGroupLevelStateToActivate
- AlertsClient.UpdateResourceGroupLevelStateToDismiss
- AlertsClient.UpdateResourceGroupLevelStateToResolve
- AlertsClient.UpdateSubscriptionLevelStateToActivate
- AlertsClient.UpdateSubscriptionLevelStateToDismiss
- AlertsClient.UpdateSubscriptionLevelStateToResolve
- AlertsSuppressionRulesClient.Delete
- AlertsSuppressionRulesClient.Get
- AlertsSuppressionRulesClient.List
- AlertsSuppressionRulesClient.Update
- AllowedConnectionsClient.Get
- AllowedConnectionsClient.List
- AllowedConnectionsClient.ListByHomeRegion
- AssessmentsClient.CreateOrUpdate
- AssessmentsClient.Delete
- AssessmentsClient.Get
- AssessmentsClient.List
- AssessmentsMetadataClient.CreateInSubscription
- AssessmentsMetadataClient.DeleteInSubscription
- AssessmentsMetadataClient.Get
- AssessmentsMetadataClient.GetInSubscription
- AssessmentsMetadataClient.List
- AssessmentsMetadataClient.ListBySubscription
- AutoProvisioningSettingsClient.Create
- AutoProvisioningSettingsClient.Get
- AutoProvisioningSettingsClient.List
- AutomationsClient.CreateOrUpdate
- AutomationsClient.Delete
- AutomationsClient.Get
- AutomationsClient.List
- AutomationsClient.ListByResourceGroup
- AutomationsClient.Validate
- ComplianceResultsClient.Get
- ComplianceResultsClient.List
- CompliancesClient.Get
- CompliancesClient.List
- ConnectorsClient.CreateOrUpdate
- ConnectorsClient.Delete
- ConnectorsClient.Get
- ConnectorsClient.List
- ConnectorsClient.ListByResourceGroup
- ConnectorsClient.Update
- ContactsClient.Create
- ContactsClient.Delete
- ContactsClient.Get
- ContactsClient.List
- ContactsClient.Update
- CustomAssessmentAutomationsClient.Create
- CustomAssessmentAutomationsClient.Delete
- CustomAssessmentAutomationsClient.Get
- CustomAssessmentAutomationsClient.ListByResourceGroup
- CustomAssessmentAutomationsClient.ListBySubscription
- CustomEntityStoreAssignmentsClient.Create
- CustomEntityStoreAssignmentsClient.Delete
- CustomEntityStoreAssignmentsClient.Get
- CustomEntityStoreAssignmentsClient.ListByResourceGroup
- CustomEntityStoreAssignmentsClient.ListBySubscription
- DeviceSecurityGroupsClient.CreateOrUpdate
- DeviceSecurityGroupsClient.Delete
- DeviceSecurityGroupsClient.Get
- DeviceSecurityGroupsClient.List
- DiscoveredSecuritySolutionsClient.Get
- DiscoveredSecuritySolutionsClient.List
- DiscoveredSecuritySolutionsClient.ListByHomeRegion
- ExternalSecuritySolutionsClient.Get
- ExternalSecuritySolutionsClient.List
- ExternalSecuritySolutionsClient.ListByHomeRegion
- InformationProtectionPoliciesClient.CreateOrUpdate
- InformationProtectionPoliciesClient.Get
- InformationProtectionPoliciesClient.List
- IngestionSettingsClient.Create
- IngestionSettingsClient.Delete
- IngestionSettingsClient.Get
- IngestionSettingsClient.List
- IngestionSettingsClient.ListConnectionStrings
- IngestionSettingsClient.ListTokens
- IotSecuritySolutionAnalyticsClient.Get
- IotSecuritySolutionAnalyticsClient.List
- IotSecuritySolutionClient.CreateOrUpdate
- IotSecuritySolutionClient.Delete
- IotSecuritySolutionClient.Get
- IotSecuritySolutionClient.ListByResourceGroup
- IotSecuritySolutionClient.ListBySubscription
- IotSecuritySolutionClient.Update
- IotSecuritySolutionsAnalyticsAggregatedAlertClient.Dismiss
- IotSecuritySolutionsAnalyticsAggregatedAlertClient.Get
- IotSecuritySolutionsAnalyticsAggregatedAlertClient.List
- IotSecuritySolutionsAnalyticsRecommendationClient.Get
- IotSecuritySolutionsAnalyticsRecommendationClient.List
- JitNetworkAccessPoliciesClient.CreateOrUpdate
- JitNetworkAccessPoliciesClient.Delete
- JitNetworkAccessPoliciesClient.Get
- JitNetworkAccessPoliciesClient.Initiate
- JitNetworkAccessPoliciesClient.List
- JitNetworkAccessPoliciesClient.ListByRegion
- JitNetworkAccessPoliciesClient.ListByResourceGroup
- JitNetworkAccessPoliciesClient.ListByResourceGroupAndRegion
- LocationsClient.Get
- LocationsClient.List
- MdeOnboardingsClient.Get
- MdeOnboardingsClient.List
- PricingsClient.Get
- PricingsClient.List
- PricingsClient.Update
- RegulatoryComplianceAssessmentsClient.Get
- RegulatoryComplianceAssessmentsClient.List
- RegulatoryComplianceControlsClient.Get
- RegulatoryComplianceControlsClient.List
- RegulatoryComplianceStandardsClient.Get
- RegulatoryComplianceStandardsClient.List
- SQLVulnerabilityAssessmentBaselineRulesClient.Add
- SQLVulnerabilityAssessmentBaselineRulesClient.CreateOrUpdate
- SQLVulnerabilityAssessmentBaselineRulesClient.Delete
- SQLVulnerabilityAssessmentBaselineRulesClient.Get
- SQLVulnerabilityAssessmentBaselineRulesClient.List
- SQLVulnerabilityAssessmentScanResultsClient.Get
- SQLVulnerabilityAssessmentScanResultsClient.List
- SQLVulnerabilityAssessmentScansClient.Get
- SQLVulnerabilityAssessmentScansClient.List
- SecureScoreControlDefinitionsClient.List
- SecureScoreControlDefinitionsClient.ListBySubscription
- SecureScoreControlsClient.List
- SecureScoreControlsClient.ListBySecureScore
- SecureScoresClient.Get
- SecureScoresClient.List
- ServerVulnerabilityAssessmentClient.BeginDelete
- ServerVulnerabilityAssessmentClient.CreateOrUpdate
- ServerVulnerabilityAssessmentClient.Get
- ServerVulnerabilityAssessmentClient.ListByExtendedResource
- SettingsClient.Get
- SettingsClient.List
- SettingsClient.Update
- SoftwareInventoriesClient.Get
- SoftwareInventoriesClient.ListByExtendedResource
- SoftwareInventoriesClient.ListBySubscription
- SolutionsClient.Get
- SolutionsClient.List
- SolutionsReferenceDataClient.List
- SolutionsReferenceDataClient.ListByHomeRegion
- SubAssessmentsClient.Get
- SubAssessmentsClient.List
- SubAssessmentsClient.ListAll
- TasksClient.GetResourceGroupLevelTask
- TasksClient.GetSubscriptionLevelTask
- TasksClient.List
- TasksClient.ListByHomeRegion
- TasksClient.ListByResourceGroup
- TasksClient.UpdateResourceGroupLevelTaskState
- TasksClient.UpdateSubscriptionLevelTaskState
- TopologyClient.Get
- TopologyClient.List
- TopologyClient.ListByHomeRegion
- WorkspaceSettingsClient.Create
- WorkspaceSettingsClient.Delete
- WorkspaceSettingsClient.Get
- WorkspaceSettingsClient.List
- WorkspaceSettingsClient.Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AADConnectivityState ¶
type AADConnectivityState string
AADConnectivityState - The connectivity state of the external AAD solution
const ( AADConnectivityStateConnected AADConnectivityState = "Connected" AADConnectivityStateDiscovered AADConnectivityState = "Discovered" AADConnectivityStateNotLicensed AADConnectivityState = "NotLicensed" )
func PossibleAADConnectivityStateValues ¶
func PossibleAADConnectivityStateValues() []AADConnectivityState
PossibleAADConnectivityStateValues returns the possible values for the AADConnectivityState const type.
type AADConnectivityStateAutoGenerated ¶
type AADConnectivityStateAutoGenerated struct { // The connectivity state of the external AAD solution ConnectivityState *AADConnectivityState `json:"connectivityState,omitempty"` }
AADConnectivityStateAutoGenerated - Describes an Azure resource with kind
type AADExternalSecuritySolution ¶
type AADExternalSecuritySolution struct { // The kind of the external solution Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` // The external security solution properties for AAD solutions Properties *AADSolutionProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AADExternalSecuritySolution - Represents an AAD identity protection solution which sends logs to an OMS workspace.
func (AADExternalSecuritySolution) MarshalJSON ¶
func (a AADExternalSecuritySolution) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AADExternalSecuritySolution.
func (*AADExternalSecuritySolution) UnmarshalJSON ¶
func (a *AADExternalSecuritySolution) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AADExternalSecuritySolution.
type AADSolutionProperties ¶
type AADSolutionProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} // The connectivity state of the external AAD solution ConnectivityState *AADConnectivityState `json:"connectivityState,omitempty"` DeviceType *string `json:"deviceType,omitempty"` DeviceVendor *string `json:"deviceVendor,omitempty"` // Represents an OMS workspace to which the solution is connected Workspace *ConnectedWorkspace `json:"workspace,omitempty"` }
AADSolutionProperties - The external security solution properties for AAD solutions
func (AADSolutionProperties) MarshalJSON ¶ added in v0.3.0
func (a AADSolutionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AADSolutionProperties.
func (*AADSolutionProperties) UnmarshalJSON ¶ added in v0.3.0
func (a *AADSolutionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AADSolutionProperties.
type AccountConnectorsClient ¶ added in v0.3.0
type AccountConnectorsClient struct {
// contains filtered or unexported fields
}
AccountConnectorsClient contains the methods for the AccountConnectors group. Don't use this type directly, use NewAccountConnectorsClient() instead.
func NewAccountConnectorsClient ¶ added in v0.3.0
func NewAccountConnectorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AccountConnectorsClient, error)
NewAccountConnectorsClient creates a new instance of AccountConnectorsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AccountConnectorsClient) CreateOrUpdate ¶ added in v0.3.0
func (client *AccountConnectorsClient) CreateOrUpdate(ctx context.Context, connectorName string, connectorSetting ConnectorSetting, options *AccountConnectorsClientCreateOrUpdateOptions) (AccountConnectorsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS, use either account credentials or role-based authentication. For GCP, use account organization credentials. If the operation fails it returns an *azcore.ResponseError type. connectorName - Name of the cloud account connector connectorSetting - Settings for the cloud account connector options - AccountConnectorsClientCreateOrUpdateOptions contains the optional parameters for the AccountConnectorsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/CreateUpdateAwsAssumeRoleConnectorSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAccountConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<connector-name>", armsecurity.ConnectorSetting{ Properties: &armsecurity.ConnectorSettingProperties{ AuthenticationDetails: &armsecurity.AwAssumeRoleAuthenticationDetailsProperties{ AuthenticationType: to.Ptr(armsecurity.AuthenticationTypeAwsAssumeRole), AwsAssumeRoleArn: to.Ptr("<aws-assume-role-arn>"), AwsExternalID: to.Ptr("<aws-external-id>"), }, HybridComputeSettings: &armsecurity.HybridComputeSettingsProperties{ AutoProvision: to.Ptr(armsecurity.AutoProvisionOn), ProxyServer: &armsecurity.ProxyServerProperties{ IP: to.Ptr("<ip>"), Port: to.Ptr("<port>"), }, Region: to.Ptr("<region>"), ResourceGroupName: to.Ptr("<resource-group-name>"), ServicePrincipal: &armsecurity.ServicePrincipalProperties{ ApplicationID: to.Ptr("<application-id>"), Secret: to.Ptr("<secret>"), }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AccountConnectorsClient) Delete ¶ added in v0.3.0
func (client *AccountConnectorsClient) Delete(ctx context.Context, connectorName string, options *AccountConnectorsClientDeleteOptions) (AccountConnectorsClientDeleteResponse, error)
Delete - Delete a cloud account connector from a subscription If the operation fails it returns an *azcore.ResponseError type. connectorName - Name of the cloud account connector options - AccountConnectorsClientDeleteOptions contains the optional parameters for the AccountConnectorsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/DeleteConnectorSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAccountConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<connector-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AccountConnectorsClient) Get ¶ added in v0.3.0
func (client *AccountConnectorsClient) Get(ctx context.Context, connectorName string, options *AccountConnectorsClientGetOptions) (AccountConnectorsClientGetResponse, error)
Get - Details of a specific cloud account connector If the operation fails it returns an *azcore.ResponseError type. connectorName - Name of the cloud account connector options - AccountConnectorsClientGetOptions contains the optional parameters for the AccountConnectorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/GetConnectorSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAccountConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<connector-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AccountConnectorsClient) List ¶ added in v0.3.0
func (client *AccountConnectorsClient) List(options *AccountConnectorsClientListOptions) *runtime.Pager[AccountConnectorsClientListResponse]
List - Cloud accounts connectors of a subscription If the operation fails it returns an *azcore.ResponseError type. options - AccountConnectorsClientListOptions contains the optional parameters for the AccountConnectorsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/Connectors/GetListConnectorSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAccountConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AccountConnectorsClientCreateOrUpdateOptions ¶ added in v0.3.0
type AccountConnectorsClientCreateOrUpdateOptions struct { }
AccountConnectorsClientCreateOrUpdateOptions contains the optional parameters for the AccountConnectorsClient.CreateOrUpdate method.
type AccountConnectorsClientCreateOrUpdateResponse ¶ added in v0.3.0
type AccountConnectorsClientCreateOrUpdateResponse struct {
ConnectorSetting
}
AccountConnectorsClientCreateOrUpdateResponse contains the response from method AccountConnectorsClient.CreateOrUpdate.
type AccountConnectorsClientDeleteOptions ¶ added in v0.3.0
type AccountConnectorsClientDeleteOptions struct { }
AccountConnectorsClientDeleteOptions contains the optional parameters for the AccountConnectorsClient.Delete method.
type AccountConnectorsClientDeleteResponse ¶ added in v0.3.0
type AccountConnectorsClientDeleteResponse struct { }
AccountConnectorsClientDeleteResponse contains the response from method AccountConnectorsClient.Delete.
type AccountConnectorsClientGetOptions ¶ added in v0.3.0
type AccountConnectorsClientGetOptions struct { }
AccountConnectorsClientGetOptions contains the optional parameters for the AccountConnectorsClient.Get method.
type AccountConnectorsClientGetResponse ¶ added in v0.3.0
type AccountConnectorsClientGetResponse struct {
ConnectorSetting
}
AccountConnectorsClientGetResponse contains the response from method AccountConnectorsClient.Get.
type AccountConnectorsClientListOptions ¶ added in v0.3.0
type AccountConnectorsClientListOptions struct { }
AccountConnectorsClientListOptions contains the optional parameters for the AccountConnectorsClient.List method.
type AccountConnectorsClientListResponse ¶ added in v0.3.0
type AccountConnectorsClientListResponse struct {
ConnectorSettingList
}
AccountConnectorsClientListResponse contains the response from method AccountConnectorsClient.List.
type ActionType ¶
type ActionType string
ActionType - The type of the action that will be triggered by the Automation
const ( ActionTypeEventHub ActionType = "EventHub" ActionTypeLogicApp ActionType = "LogicApp" ActionTypeWorkspace ActionType = "Workspace" )
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type ActiveConnectionsNotInAllowedRange ¶
type ActiveConnectionsNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
ActiveConnectionsNotInAllowedRange - Number of active connections is not in allowed range.
func (*ActiveConnectionsNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (a *ActiveConnectionsNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ActiveConnectionsNotInAllowedRange.
func (*ActiveConnectionsNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (a *ActiveConnectionsNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type ActiveConnectionsNotInAllowedRange.
func (*ActiveConnectionsNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (a *ActiveConnectionsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type ActiveConnectionsNotInAllowedRange.
func (ActiveConnectionsNotInAllowedRange) MarshalJSON ¶
func (a ActiveConnectionsNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ActiveConnectionsNotInAllowedRange.
func (*ActiveConnectionsNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (a *ActiveConnectionsNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ActiveConnectionsNotInAllowedRange.
type AdaptiveApplicationControlGroup ¶
type AdaptiveApplicationControlGroup struct { // REQUIRED; Represents a machines group and set of rules to be allowed running on a machine Properties *AdaptiveApplicationControlGroupData `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
type AdaptiveApplicationControlGroupData ¶
type AdaptiveApplicationControlGroupData struct { // The application control policy enforcement/protection mode of the machine group EnforcementMode *EnforcementMode `json:"enforcementMode,omitempty"` PathRecommendations []*PathRecommendation `json:"pathRecommendations,omitempty"` // The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux. ProtectionMode *ProtectionMode `json:"protectionMode,omitempty"` VMRecommendations []*VMRecommendation `json:"vmRecommendations,omitempty"` // READ-ONLY; The configuration status of the machines group or machine or rule ConfigurationStatus *ConfigurationStatus `json:"configurationStatus,omitempty" azure:"ro"` // READ-ONLY Issues []*AdaptiveApplicationControlIssueSummary `json:"issues,omitempty" azure:"ro"` // READ-ONLY; The initial recommendation status of the machine group or machine RecommendationStatus *RecommendationStatus `json:"recommendationStatus,omitempty" azure:"ro"` // READ-ONLY; The source type of the machine group SourceSystem *SourceSystem `json:"sourceSystem,omitempty" azure:"ro"` }
AdaptiveApplicationControlGroupData - Represents a machines group and set of rules to be allowed running on a machine
func (AdaptiveApplicationControlGroupData) MarshalJSON ¶
func (a AdaptiveApplicationControlGroupData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdaptiveApplicationControlGroupData.
type AdaptiveApplicationControlGroups ¶
type AdaptiveApplicationControlGroups struct {
Value []*AdaptiveApplicationControlGroup `json:"value,omitempty"`
}
AdaptiveApplicationControlGroups - Represents a list of machine groups and set of rules that are recommended by Azure Security Center to be allowed
func (AdaptiveApplicationControlGroups) MarshalJSON ¶
func (a AdaptiveApplicationControlGroups) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdaptiveApplicationControlGroups.
type AdaptiveApplicationControlIssue ¶
type AdaptiveApplicationControlIssue string
AdaptiveApplicationControlIssue - An alert that machines within a group can have
const ( AdaptiveApplicationControlIssueExecutableViolationsAudited AdaptiveApplicationControlIssue = "ExecutableViolationsAudited" AdaptiveApplicationControlIssueMsiAndScriptViolationsAudited AdaptiveApplicationControlIssue = "MsiAndScriptViolationsAudited" AdaptiveApplicationControlIssueMsiAndScriptViolationsBlocked AdaptiveApplicationControlIssue = "MsiAndScriptViolationsBlocked" AdaptiveApplicationControlIssueRulesViolatedManually AdaptiveApplicationControlIssue = "RulesViolatedManually" AdaptiveApplicationControlIssueViolationsAudited AdaptiveApplicationControlIssue = "ViolationsAudited" AdaptiveApplicationControlIssueViolationsBlocked AdaptiveApplicationControlIssue = "ViolationsBlocked" )
func PossibleAdaptiveApplicationControlIssueValues ¶
func PossibleAdaptiveApplicationControlIssueValues() []AdaptiveApplicationControlIssue
PossibleAdaptiveApplicationControlIssueValues returns the possible values for the AdaptiveApplicationControlIssue const type.
type AdaptiveApplicationControlIssueSummary ¶
type AdaptiveApplicationControlIssueSummary struct { // An alert that machines within a group can have Issue *AdaptiveApplicationControlIssue `json:"issue,omitempty"` // The number of machines in the group that have this alert NumberOfVMs *float32 `json:"numberOfVms,omitempty"` }
AdaptiveApplicationControlIssueSummary - Represents a summary of the alerts of the machine group
type AdaptiveApplicationControlsClient ¶
type AdaptiveApplicationControlsClient struct {
// contains filtered or unexported fields
}
AdaptiveApplicationControlsClient contains the methods for the AdaptiveApplicationControls group. Don't use this type directly, use NewAdaptiveApplicationControlsClient() instead.
func NewAdaptiveApplicationControlsClient ¶
func NewAdaptiveApplicationControlsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AdaptiveApplicationControlsClient, error)
NewAdaptiveApplicationControlsClient creates a new instance of AdaptiveApplicationControlsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AdaptiveApplicationControlsClient) Delete ¶
func (client *AdaptiveApplicationControlsClient) Delete(ctx context.Context, ascLocation string, groupName string, options *AdaptiveApplicationControlsClientDeleteOptions) (AdaptiveApplicationControlsClientDeleteResponse, error)
Delete - Delete an application control machine group If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations groupName - Name of an application control machine group options - AdaptiveApplicationControlsClientDeleteOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAdaptiveApplicationControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<asc-location>", "<group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AdaptiveApplicationControlsClient) Get ¶
func (client *AdaptiveApplicationControlsClient) Get(ctx context.Context, ascLocation string, groupName string, options *AdaptiveApplicationControlsClientGetOptions) (AdaptiveApplicationControlsClientGetResponse, error)
Get - Gets an application control VM/server group. If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations groupName - Name of an application control machine group options - AdaptiveApplicationControlsClientGetOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAdaptiveApplicationControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<asc-location>", "<group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AdaptiveApplicationControlsClient) List ¶
func (client *AdaptiveApplicationControlsClient) List(ctx context.Context, options *AdaptiveApplicationControlsClientListOptions) (AdaptiveApplicationControlsClientListResponse, error)
List - Gets a list of application control machine groups for the subscription. If the operation fails it returns an *azcore.ResponseError type. options - AdaptiveApplicationControlsClientListOptions contains the optional parameters for the AdaptiveApplicationControlsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAdaptiveApplicationControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, &armsecurity.AdaptiveApplicationControlsClientListOptions{IncludePathRecommendations: to.Ptr(true), Summary: to.Ptr(false), }) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AdaptiveApplicationControlsClient) Put ¶
func (client *AdaptiveApplicationControlsClient) Put(ctx context.Context, ascLocation string, groupName string, body AdaptiveApplicationControlGroup, options *AdaptiveApplicationControlsClientPutOptions) (AdaptiveApplicationControlsClientPutResponse, error)
Put - Update an application control machine group If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations groupName - Name of an application control machine group options - AdaptiveApplicationControlsClientPutOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Put method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAdaptiveApplicationControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Put(ctx, "<asc-location>", "<group-name>", armsecurity.AdaptiveApplicationControlGroup{ Properties: &armsecurity.AdaptiveApplicationControlGroupData{ EnforcementMode: to.Ptr(armsecurity.EnforcementModeAudit), PathRecommendations: []*armsecurity.PathRecommendation{ { Type: to.Ptr(armsecurity.RecommendationType("PublisherSignature")), Path: to.Ptr("<path>"), Action: to.Ptr(armsecurity.RecommendationActionRecommended), Common: to.Ptr(true), ConfigurationStatus: to.Ptr(armsecurity.ConfigurationStatusConfigured), FileType: to.Ptr(armsecurity.FileTypeExe), PublisherInfo: &armsecurity.PublisherInfo{ BinaryName: to.Ptr("<binary-name>"), ProductName: to.Ptr("<product-name>"), PublisherName: to.Ptr("<publisher-name>"), Version: to.Ptr("<version>"), }, UserSids: []*string{ to.Ptr("S-1-1-0")}, Usernames: []*armsecurity.UserRecommendation{ { RecommendationAction: to.Ptr(armsecurity.RecommendationActionRecommended), Username: to.Ptr("<username>"), }}, }, { Type: to.Ptr(armsecurity.RecommendationType("ProductSignature")), Path: to.Ptr("<path>"), Action: to.Ptr(armsecurity.RecommendationActionRecommended), Common: to.Ptr(true), ConfigurationStatus: to.Ptr(armsecurity.ConfigurationStatusConfigured), FileType: to.Ptr(armsecurity.FileTypeExe), PublisherInfo: &armsecurity.PublisherInfo{ BinaryName: to.Ptr("<binary-name>"), ProductName: to.Ptr("<product-name>"), PublisherName: to.Ptr("<publisher-name>"), Version: to.Ptr("<version>"), }, UserSids: []*string{ to.Ptr("S-1-1-0")}, Usernames: []*armsecurity.UserRecommendation{ { RecommendationAction: to.Ptr(armsecurity.RecommendationActionRecommended), Username: to.Ptr("<username>"), }}, }, { Type: to.Ptr(armsecurity.RecommendationType("PublisherSignature")), Path: to.Ptr("<path>"), Action: to.Ptr(armsecurity.RecommendationActionRecommended), Common: to.Ptr(true), ConfigurationStatus: to.Ptr(armsecurity.ConfigurationStatusConfigured), FileType: to.Ptr(armsecurity.FileTypeExe), PublisherInfo: &armsecurity.PublisherInfo{ BinaryName: to.Ptr("<binary-name>"), ProductName: to.Ptr("<product-name>"), PublisherName: to.Ptr("<publisher-name>"), Version: to.Ptr("<version>"), }, UserSids: []*string{ to.Ptr("S-1-1-0")}, Usernames: []*armsecurity.UserRecommendation{ { RecommendationAction: to.Ptr(armsecurity.RecommendationActionRecommended), Username: to.Ptr("<username>"), }}, }, { Type: to.Ptr(armsecurity.RecommendationType("File")), Path: to.Ptr("<path>"), Action: to.Ptr(armsecurity.RecommendationActionAdd), Common: to.Ptr(true), }}, ProtectionMode: &armsecurity.ProtectionMode{ Exe: to.Ptr(armsecurity.EnforcementModeAudit), Msi: to.Ptr(armsecurity.EnforcementModeNone), Script: to.Ptr(armsecurity.EnforcementModeNone), }, VMRecommendations: []*armsecurity.VMRecommendation{ { ConfigurationStatus: to.Ptr(armsecurity.ConfigurationStatusConfigured), EnforcementSupport: to.Ptr(armsecurity.EnforcementSupportSupported), RecommendationAction: to.Ptr(armsecurity.RecommendationActionRecommended), ResourceID: to.Ptr("<resource-id>"), }, { ConfigurationStatus: to.Ptr(armsecurity.ConfigurationStatusConfigured), EnforcementSupport: to.Ptr(armsecurity.EnforcementSupportSupported), RecommendationAction: to.Ptr(armsecurity.RecommendationActionRecommended), ResourceID: to.Ptr("<resource-id>"), }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type AdaptiveApplicationControlsClientDeleteOptions ¶ added in v0.3.0
type AdaptiveApplicationControlsClientDeleteOptions struct { }
AdaptiveApplicationControlsClientDeleteOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Delete method.
type AdaptiveApplicationControlsClientDeleteResponse ¶ added in v0.3.0
type AdaptiveApplicationControlsClientDeleteResponse struct { }
AdaptiveApplicationControlsClientDeleteResponse contains the response from method AdaptiveApplicationControlsClient.Delete.
type AdaptiveApplicationControlsClientGetOptions ¶ added in v0.3.0
type AdaptiveApplicationControlsClientGetOptions struct { }
AdaptiveApplicationControlsClientGetOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Get method.
type AdaptiveApplicationControlsClientGetResponse ¶ added in v0.3.0
type AdaptiveApplicationControlsClientGetResponse struct {
AdaptiveApplicationControlGroup
}
AdaptiveApplicationControlsClientGetResponse contains the response from method AdaptiveApplicationControlsClient.Get.
type AdaptiveApplicationControlsClientListOptions ¶ added in v0.3.0
type AdaptiveApplicationControlsClientListOptions struct { // Include the policy rules IncludePathRecommendations *bool // Return output in a summarized form Summary *bool }
AdaptiveApplicationControlsClientListOptions contains the optional parameters for the AdaptiveApplicationControlsClient.List method.
type AdaptiveApplicationControlsClientListResponse ¶ added in v0.3.0
type AdaptiveApplicationControlsClientListResponse struct {
AdaptiveApplicationControlGroups
}
AdaptiveApplicationControlsClientListResponse contains the response from method AdaptiveApplicationControlsClient.List.
type AdaptiveApplicationControlsClientPutOptions ¶ added in v0.3.0
type AdaptiveApplicationControlsClientPutOptions struct { }
AdaptiveApplicationControlsClientPutOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Put method.
type AdaptiveApplicationControlsClientPutResponse ¶ added in v0.3.0
type AdaptiveApplicationControlsClientPutResponse struct {
AdaptiveApplicationControlGroup
}
AdaptiveApplicationControlsClientPutResponse contains the response from method AdaptiveApplicationControlsClient.Put.
type AdaptiveNetworkHardening ¶
type AdaptiveNetworkHardening struct { // Properties of the Adaptive Network Hardening resource Properties *AdaptiveNetworkHardeningProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AdaptiveNetworkHardening - The resource whose properties describes the Adaptive Network Hardening settings for some Azure resource
type AdaptiveNetworkHardeningEnforceRequest ¶
type AdaptiveNetworkHardeningEnforceRequest struct { // REQUIRED; 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"` // REQUIRED; The rules to enforce Rules []*Rule `json:"rules,omitempty"` }
func (AdaptiveNetworkHardeningEnforceRequest) MarshalJSON ¶
func (a AdaptiveNetworkHardeningEnforceRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdaptiveNetworkHardeningEnforceRequest.
type AdaptiveNetworkHardeningProperties ¶
type AdaptiveNetworkHardeningProperties struct { // The Network Security Groups effective on the network interfaces of the protected resource EffectiveNetworkSecurityGroups []*EffectiveNetworkSecurityGroups `json:"effectiveNetworkSecurityGroups,omitempty"` // The security rules which are recommended to be effective on the VM Rules []*Rule `json:"rules,omitempty"` // The UTC time on which the rules were calculated RulesCalculationTime *time.Time `json:"rulesCalculationTime,omitempty"` }
AdaptiveNetworkHardeningProperties - Adaptive Network Hardening resource properties
func (AdaptiveNetworkHardeningProperties) MarshalJSON ¶
func (a AdaptiveNetworkHardeningProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdaptiveNetworkHardeningProperties.
func (*AdaptiveNetworkHardeningProperties) UnmarshalJSON ¶
func (a *AdaptiveNetworkHardeningProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdaptiveNetworkHardeningProperties.
type AdaptiveNetworkHardeningsClient ¶
type AdaptiveNetworkHardeningsClient struct {
// contains filtered or unexported fields
}
AdaptiveNetworkHardeningsClient contains the methods for the AdaptiveNetworkHardenings group. Don't use this type directly, use NewAdaptiveNetworkHardeningsClient() instead.
func NewAdaptiveNetworkHardeningsClient ¶
func NewAdaptiveNetworkHardeningsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AdaptiveNetworkHardeningsClient, error)
NewAdaptiveNetworkHardeningsClient creates a new instance of AdaptiveNetworkHardeningsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AdaptiveNetworkHardeningsClient) BeginEnforce ¶
func (client *AdaptiveNetworkHardeningsClient) BeginEnforce(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string, body AdaptiveNetworkHardeningEnforceRequest, options *AdaptiveNetworkHardeningsClientBeginEnforceOptions) (*armruntime.Poller[AdaptiveNetworkHardeningsClientEnforceResponse], error)
BeginEnforce - Enforces the given rules on the NSG(s) listed in the request If the operation fails it returns an *azcore.ResponseError type. 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. options - AdaptiveNetworkHardeningsClientBeginEnforceOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.BeginEnforce method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAdaptiveNetworkHardeningsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginEnforce(ctx, "<resource-group-name>", "<resource-namespace>", "<resource-type>", "<resource-name>", "<adaptive-network-hardening-resource-name>", armsecurity.AdaptiveNetworkHardeningEnforceRequest{ NetworkSecurityGroups: []*string{ to.Ptr("/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1"), to.Ptr("/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg2")}, Rules: []*armsecurity.Rule{ { Name: to.Ptr("<name>"), DestinationPort: to.Ptr[int32](3389), Direction: to.Ptr(armsecurity.DirectionInbound), IPAddresses: []*string{ to.Ptr("100.10.1.1"), to.Ptr("200.20.2.2"), to.Ptr("81.199.3.0/24")}, Protocols: []*armsecurity.TransportProtocol{ to.Ptr(armsecurity.TransportProtocolTCP)}, }, { Name: to.Ptr("<name>"), DestinationPort: to.Ptr[int32](22), Direction: to.Ptr(armsecurity.DirectionInbound), IPAddresses: []*string{}, Protocols: []*armsecurity.TransportProtocol{ to.Ptr(armsecurity.TransportProtocolTCP)}, }}, }, &armsecurity.AdaptiveNetworkHardeningsClientBeginEnforceOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*AdaptiveNetworkHardeningsClient) Get ¶
func (client *AdaptiveNetworkHardeningsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, adaptiveNetworkHardeningResourceName string, options *AdaptiveNetworkHardeningsClientGetOptions) (AdaptiveNetworkHardeningsClientGetResponse, error)
Get - Gets a single Adaptive Network Hardening resource If the operation fails it returns an *azcore.ResponseError type. 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. options - AdaptiveNetworkHardeningsClientGetOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAdaptiveNetworkHardeningsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<resource-namespace>", "<resource-type>", "<resource-name>", "<adaptive-network-hardening-resource-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AdaptiveNetworkHardeningsClient) ListByExtendedResource ¶
func (client *AdaptiveNetworkHardeningsClient) ListByExtendedResource(resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, options *AdaptiveNetworkHardeningsClientListByExtendedResourceOptions) *runtime.Pager[AdaptiveNetworkHardeningsClientListByExtendedResourceResponse]
ListByExtendedResource - Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. If the operation fails it returns an *azcore.ResponseError type. 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. options - AdaptiveNetworkHardeningsClientListByExtendedResourceOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.ListByExtendedResource method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAdaptiveNetworkHardeningsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByExtendedResource("<resource-group-name>", "<resource-namespace>", "<resource-type>", "<resource-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AdaptiveNetworkHardeningsClientBeginEnforceOptions ¶ added in v0.3.0
type AdaptiveNetworkHardeningsClientBeginEnforceOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AdaptiveNetworkHardeningsClientBeginEnforceOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.BeginEnforce method.
type AdaptiveNetworkHardeningsClientEnforceResponse ¶ added in v0.3.0
type AdaptiveNetworkHardeningsClientEnforceResponse struct { }
AdaptiveNetworkHardeningsClientEnforceResponse contains the response from method AdaptiveNetworkHardeningsClient.Enforce.
type AdaptiveNetworkHardeningsClientGetOptions ¶ added in v0.3.0
type AdaptiveNetworkHardeningsClientGetOptions struct { }
AdaptiveNetworkHardeningsClientGetOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.Get method.
type AdaptiveNetworkHardeningsClientGetResponse ¶ added in v0.3.0
type AdaptiveNetworkHardeningsClientGetResponse struct {
AdaptiveNetworkHardening
}
AdaptiveNetworkHardeningsClientGetResponse contains the response from method AdaptiveNetworkHardeningsClient.Get.
type AdaptiveNetworkHardeningsClientListByExtendedResourceOptions ¶ added in v0.3.0
type AdaptiveNetworkHardeningsClientListByExtendedResourceOptions struct { }
AdaptiveNetworkHardeningsClientListByExtendedResourceOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.ListByExtendedResource method.
type AdaptiveNetworkHardeningsClientListByExtendedResourceResponse ¶ added in v0.3.0
type AdaptiveNetworkHardeningsClientListByExtendedResourceResponse struct {
AdaptiveNetworkHardeningsList
}
AdaptiveNetworkHardeningsClientListByExtendedResourceResponse contains the response from method AdaptiveNetworkHardeningsClient.ListByExtendedResource.
type AdaptiveNetworkHardeningsList ¶
type AdaptiveNetworkHardeningsList struct { // The URL to get the next set of results NextLink *string `json:"nextLink,omitempty"` // A list of Adaptive Network Hardenings resources Value []*AdaptiveNetworkHardening `json:"value,omitempty"` }
AdaptiveNetworkHardeningsList - Response for ListAdaptiveNetworkHardenings API service call
func (AdaptiveNetworkHardeningsList) MarshalJSON ¶
func (a AdaptiveNetworkHardeningsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdaptiveNetworkHardeningsList.
type AdditionalData ¶
type AdditionalData struct { // REQUIRED; Sub-assessment resource type AssessedResourceType *AssessedResourceType `json:"assessedResourceType,omitempty"` }
AdditionalData - Details of the sub-assessment
func (*AdditionalData) GetAdditionalData ¶
func (a *AdditionalData) GetAdditionalData() *AdditionalData
GetAdditionalData implements the AdditionalDataClassification interface for type AdditionalData.
type AdditionalDataClassification ¶
type AdditionalDataClassification interface { // GetAdditionalData returns the AdditionalData content of the underlying type. GetAdditionalData() *AdditionalData }
AdditionalDataClassification provides polymorphic access to related types. Call the interface's GetAdditionalData() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AdditionalData, *ContainerRegistryVulnerabilityProperties, *SQLServerVulnerabilityProperties, *ServerVulnerabilityProperties
type AdditionalWorkspaceDataType ¶
type AdditionalWorkspaceDataType string
AdditionalWorkspaceDataType - Data types sent to workspace.
const ( AdditionalWorkspaceDataTypeAlerts AdditionalWorkspaceDataType = "Alerts" AdditionalWorkspaceDataTypeRawEvents AdditionalWorkspaceDataType = "RawEvents" )
func PossibleAdditionalWorkspaceDataTypeValues ¶
func PossibleAdditionalWorkspaceDataTypeValues() []AdditionalWorkspaceDataType
PossibleAdditionalWorkspaceDataTypeValues returns the possible values for the AdditionalWorkspaceDataType const type.
type AdditionalWorkspaceType ¶
type AdditionalWorkspaceType string
AdditionalWorkspaceType - Workspace type.
const (
AdditionalWorkspaceTypeSentinel AdditionalWorkspaceType = "Sentinel"
)
func PossibleAdditionalWorkspaceTypeValues ¶
func PossibleAdditionalWorkspaceTypeValues() []AdditionalWorkspaceType
PossibleAdditionalWorkspaceTypeValues returns the possible values for the AdditionalWorkspaceType const type.
type AdditionalWorkspacesProperties ¶
type AdditionalWorkspacesProperties struct { // List of data types sent to workspace DataTypes []*AdditionalWorkspaceDataType `json:"dataTypes,omitempty"` // Workspace type. Type *AdditionalWorkspaceType `json:"type,omitempty"` // Workspace resource id Workspace *string `json:"workspace,omitempty"` }
AdditionalWorkspacesProperties - Properties of the additional workspaces.
func (AdditionalWorkspacesProperties) MarshalJSON ¶
func (a AdditionalWorkspacesProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdditionalWorkspacesProperties.
type AdvancedThreatProtectionClient ¶
type AdvancedThreatProtectionClient struct {
// contains filtered or unexported fields
}
AdvancedThreatProtectionClient contains the methods for the AdvancedThreatProtection group. Don't use this type directly, use NewAdvancedThreatProtectionClient() instead.
func NewAdvancedThreatProtectionClient ¶
func NewAdvancedThreatProtectionClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*AdvancedThreatProtectionClient, error)
NewAdvancedThreatProtectionClient creates a new instance of AdvancedThreatProtectionClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AdvancedThreatProtectionClient) Create ¶
func (client *AdvancedThreatProtectionClient) Create(ctx context.Context, resourceID string, advancedThreatProtectionSetting AdvancedThreatProtectionSetting, options *AdvancedThreatProtectionClientCreateOptions) (AdvancedThreatProtectionClientCreateResponse, error)
Create - Creates or updates the Advanced Threat Protection settings on a specified resource. If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. advancedThreatProtectionSetting - Advanced Threat Protection Settings options - AdvancedThreatProtectionClientCreateOptions contains the optional parameters for the AdvancedThreatProtectionClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/AdvancedThreatProtection/PutAdvancedThreatProtectionSettings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAdvancedThreatProtectionClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Create(ctx, "<resource-id>", armsecurity.AdvancedThreatProtectionSetting{ Name: to.Ptr("<name>"), Type: to.Ptr("<type>"), ID: to.Ptr("<id>"), Properties: &armsecurity.AdvancedThreatProtectionProperties{ IsEnabled: to.Ptr(true), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AdvancedThreatProtectionClient) Get ¶
func (client *AdvancedThreatProtectionClient) Get(ctx context.Context, resourceID string, options *AdvancedThreatProtectionClientGetOptions) (AdvancedThreatProtectionClientGetResponse, error)
Get - Gets the Advanced Threat Protection settings for the specified resource. If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. options - AdvancedThreatProtectionClientGetOptions contains the optional parameters for the AdvancedThreatProtectionClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/AdvancedThreatProtection/GetAdvancedThreatProtectionSettings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAdvancedThreatProtectionClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-id>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type AdvancedThreatProtectionClientCreateOptions ¶ added in v0.3.0
type AdvancedThreatProtectionClientCreateOptions struct { }
AdvancedThreatProtectionClientCreateOptions contains the optional parameters for the AdvancedThreatProtectionClient.Create method.
type AdvancedThreatProtectionClientCreateResponse ¶ added in v0.3.0
type AdvancedThreatProtectionClientCreateResponse struct {
AdvancedThreatProtectionSetting
}
AdvancedThreatProtectionClientCreateResponse contains the response from method AdvancedThreatProtectionClient.Create.
type AdvancedThreatProtectionClientGetOptions ¶ added in v0.3.0
type AdvancedThreatProtectionClientGetOptions struct { }
AdvancedThreatProtectionClientGetOptions contains the optional parameters for the AdvancedThreatProtectionClient.Get method.
type AdvancedThreatProtectionClientGetResponse ¶ added in v0.3.0
type AdvancedThreatProtectionClientGetResponse struct {
AdvancedThreatProtectionSetting
}
AdvancedThreatProtectionClientGetResponse contains the response from method AdvancedThreatProtectionClient.Get.
type AdvancedThreatProtectionProperties ¶
type AdvancedThreatProtectionProperties struct { // Indicates whether Advanced Threat Protection is enabled. IsEnabled *bool `json:"isEnabled,omitempty"` }
AdvancedThreatProtectionProperties - The Advanced Threat Protection settings.
type AdvancedThreatProtectionSetting ¶
type AdvancedThreatProtectionSetting struct { // The Advanced Threat Protection settings. Properties *AdvancedThreatProtectionProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AdvancedThreatProtectionSetting - The Advanced Threat Protection resource.
type Alert ¶
type Alert struct { // describes security alert properties. Properties *AlertProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Alert - Security alert
type AlertEntity ¶
type AlertEntity struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} // READ-ONLY; Type of entity Type *string `json:"type,omitempty" azure:"ro"` }
AlertEntity - Changing set of properties depending on the entity type.
func (AlertEntity) MarshalJSON ¶
func (a AlertEntity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AlertEntity.
func (*AlertEntity) UnmarshalJSON ¶
func (a *AlertEntity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AlertEntity.
type AlertList ¶
type AlertList struct { // describes security alert properties. Value []*Alert `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
AlertList - List of security alerts
func (AlertList) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type AlertList.
type AlertNotifications ¶
type AlertNotifications string
AlertNotifications - Whether to send security alerts notifications to the security contact
const ( // AlertNotificationsOff - Don't get notifications on new alerts AlertNotificationsOff AlertNotifications = "Off" // AlertNotificationsOn - Get notifications on new alerts AlertNotificationsOn AlertNotifications = "On" )
func PossibleAlertNotificationsValues ¶
func PossibleAlertNotificationsValues() []AlertNotifications
PossibleAlertNotificationsValues returns the possible values for the AlertNotifications const type.
type AlertProperties ¶
type AlertProperties struct { // Custom properties for the alert. ExtendedProperties map[string]*string `json:"extendedProperties,omitempty"` // READ-ONLY; The display name of the alert. AlertDisplayName *string `json:"alertDisplayName,omitempty" azure:"ro"` // READ-ONLY; Unique identifier for the detection logic (all alert instances from the same detection logic will have the same // alertType). AlertType *string `json:"alertType,omitempty" azure:"ro"` // READ-ONLY; A direct link to the alert page in Azure Portal. AlertURI *string `json:"alertUri,omitempty" azure:"ro"` // READ-ONLY; The display name of the resource most related to this alert. CompromisedEntity *string `json:"compromisedEntity,omitempty" azure:"ro"` // READ-ONLY; Key for corelating related alerts. Alerts with the same correlation key considered to be related. CorrelationKey *string `json:"correlationKey,omitempty" azure:"ro"` // READ-ONLY; Description of the suspicious activity that was detected. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The UTC time of the last event or activity included in the alert in ISO8601 format. EndTimeUTC *time.Time `json:"endTimeUtc,omitempty" azure:"ro"` // READ-ONLY; A list of entities related to the alert. Entities []*AlertEntity `json:"entities,omitempty" azure:"ro"` // READ-ONLY; Links related to the alert ExtendedLinks []map[string]*string `json:"extendedLinks,omitempty" azure:"ro"` // READ-ONLY; The kill chain related intent behind the alert. For list of supported values, and explanations of Azure Security // Center's supported kill chain intents. Intent *Intent `json:"intent,omitempty" azure:"ro"` // READ-ONLY; This field determines whether the alert is an incident (a compound grouping of several alerts) or a single alert. IsIncident *bool `json:"isIncident,omitempty" azure:"ro"` // READ-ONLY; The UTC processing end time of the alert in ISO8601 format. ProcessingEndTimeUTC *time.Time `json:"processingEndTimeUtc,omitempty" azure:"ro"` // READ-ONLY; The name of Azure Security Center pricing tier which powering this alert. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing ProductComponentName *string `json:"productComponentName,omitempty" azure:"ro"` // READ-ONLY; The name of the product which published this alert (Azure Security Center, Azure ATP, Microsoft Defender ATP, // O365 ATP, MCAS, and so on). ProductName *string `json:"productName,omitempty" azure:"ro"` // READ-ONLY; Manual action items to take to remediate the alert. RemediationSteps []*string `json:"remediationSteps,omitempty" azure:"ro"` // READ-ONLY; The resource identifiers that can be used to direct the alert to the right product exposure group (tenant, workspace, // subscription etc.). There can be multiple identifiers of different type per alert. ResourceIdentifiers []ResourceIdentifierClassification `json:"resourceIdentifiers,omitempty" azure:"ro"` // READ-ONLY; The risk level of the threat that was detected. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified. Severity *AlertSeverity `json:"severity,omitempty" azure:"ro"` // READ-ONLY; The UTC time of the first event or activity included in the alert in ISO8601 format. StartTimeUTC *time.Time `json:"startTimeUtc,omitempty" azure:"ro"` // READ-ONLY; The life cycle status of the alert. Status *AlertStatus `json:"status,omitempty" azure:"ro"` // READ-ONLY; Unique identifier for the alert. SystemAlertID *string `json:"systemAlertId,omitempty" azure:"ro"` // READ-ONLY; The UTC time the alert was generated in ISO8601 format. TimeGeneratedUTC *time.Time `json:"timeGeneratedUtc,omitempty" azure:"ro"` // READ-ONLY; The name of the vendor that raises the alert. VendorName *string `json:"vendorName,omitempty" azure:"ro"` }
AlertProperties - describes security alert properties.
func (AlertProperties) MarshalJSON ¶
func (a AlertProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AlertProperties.
func (*AlertProperties) UnmarshalJSON ¶
func (a *AlertProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AlertProperties.
type AlertSeverity ¶
type AlertSeverity string
AlertSeverity - The risk level of the threat that was detected. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified.
const ( // AlertSeverityHigh - High AlertSeverityHigh AlertSeverity = "High" // AlertSeverityInformational - Informational AlertSeverityInformational AlertSeverity = "Informational" // AlertSeverityLow - Low AlertSeverityLow AlertSeverity = "Low" // AlertSeverityMedium - Medium AlertSeverityMedium AlertSeverity = "Medium" )
func PossibleAlertSeverityValues ¶
func PossibleAlertSeverityValues() []AlertSeverity
PossibleAlertSeverityValues returns the possible values for the AlertSeverity const type.
type AlertSimulatorBundlesRequestProperties ¶
type AlertSimulatorBundlesRequestProperties struct { // REQUIRED; The kind of alert simulation. Kind *Kind `json:"kind,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} // Bundles list. Bundles []*BundleType `json:"bundles,omitempty"` }
AlertSimulatorBundlesRequestProperties - Simulate alerts according to this bundles.
func (*AlertSimulatorBundlesRequestProperties) GetAlertSimulatorRequestProperties ¶ added in v0.3.0
func (a *AlertSimulatorBundlesRequestProperties) GetAlertSimulatorRequestProperties() *AlertSimulatorRequestProperties
GetAlertSimulatorRequestProperties implements the AlertSimulatorRequestPropertiesClassification interface for type AlertSimulatorBundlesRequestProperties.
func (AlertSimulatorBundlesRequestProperties) MarshalJSON ¶
func (a AlertSimulatorBundlesRequestProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AlertSimulatorBundlesRequestProperties.
func (*AlertSimulatorBundlesRequestProperties) UnmarshalJSON ¶
func (a *AlertSimulatorBundlesRequestProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AlertSimulatorBundlesRequestProperties.
type AlertSimulatorRequestBody ¶
type AlertSimulatorRequestBody struct { // Alert Simulator request body data. Properties AlertSimulatorRequestPropertiesClassification `json:"properties,omitempty"` }
AlertSimulatorRequestBody - Alert Simulator request body.
func (AlertSimulatorRequestBody) MarshalJSON ¶
func (a AlertSimulatorRequestBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AlertSimulatorRequestBody.
func (*AlertSimulatorRequestBody) UnmarshalJSON ¶
func (a *AlertSimulatorRequestBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AlertSimulatorRequestBody.
type AlertSimulatorRequestProperties ¶
type AlertSimulatorRequestProperties struct { // REQUIRED; The kind of alert simulation. Kind *Kind `json:"kind,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} }
AlertSimulatorRequestProperties - Describes properties of an alert simulation request
func (*AlertSimulatorRequestProperties) GetAlertSimulatorRequestProperties ¶
func (a *AlertSimulatorRequestProperties) GetAlertSimulatorRequestProperties() *AlertSimulatorRequestProperties
GetAlertSimulatorRequestProperties implements the AlertSimulatorRequestPropertiesClassification interface for type AlertSimulatorRequestProperties.
func (AlertSimulatorRequestProperties) MarshalJSON ¶ added in v0.3.0
func (a AlertSimulatorRequestProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AlertSimulatorRequestProperties.
func (*AlertSimulatorRequestProperties) UnmarshalJSON ¶
func (a *AlertSimulatorRequestProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AlertSimulatorRequestProperties.
type AlertSimulatorRequestPropertiesClassification ¶
type AlertSimulatorRequestPropertiesClassification interface { // GetAlertSimulatorRequestProperties returns the AlertSimulatorRequestProperties content of the underlying type. GetAlertSimulatorRequestProperties() *AlertSimulatorRequestProperties }
AlertSimulatorRequestPropertiesClassification provides polymorphic access to related types. Call the interface's GetAlertSimulatorRequestProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AlertSimulatorBundlesRequestProperties, *AlertSimulatorRequestProperties
type AlertStatus ¶
type AlertStatus string
AlertStatus - The life cycle status of the alert.
const ( // AlertStatusActive - An alert which doesn't specify a value is assigned the status 'Active' AlertStatusActive AlertStatus = "Active" // AlertStatusDismissed - Alert dismissed as false positive AlertStatusDismissed AlertStatus = "Dismissed" // AlertStatusResolved - Alert closed after handling AlertStatusResolved AlertStatus = "Resolved" )
func PossibleAlertStatusValues ¶
func PossibleAlertStatusValues() []AlertStatus
PossibleAlertStatusValues returns the possible values for the AlertStatus const type.
type AlertSyncSettingProperties ¶
type AlertSyncSettingProperties struct { // REQUIRED; Is the alert sync setting enabled Enabled *bool `json:"enabled,omitempty"` }
AlertSyncSettingProperties - The alert sync setting properties
type AlertSyncSettings ¶
type AlertSyncSettings struct { // REQUIRED; the kind of the settings string Kind *SettingKind `json:"kind,omitempty"` // Alert sync setting data Properties *AlertSyncSettingProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AlertSyncSettings - Represents an alert sync setting
func (*AlertSyncSettings) GetSetting ¶ added in v0.3.0
func (a *AlertSyncSettings) GetSetting() *Setting
GetSetting implements the SettingClassification interface for type AlertSyncSettings.
func (AlertSyncSettings) MarshalJSON ¶
func (a AlertSyncSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AlertSyncSettings.
func (*AlertSyncSettings) UnmarshalJSON ¶
func (a *AlertSyncSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AlertSyncSettings.
type AlertsClient ¶
type AlertsClient struct {
// contains filtered or unexported fields
}
AlertsClient contains the methods for the Alerts group. Don't use this type directly, use NewAlertsClient() instead.
func NewAlertsClient ¶
func NewAlertsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AlertsClient, error)
NewAlertsClient creates a new instance of AlertsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AlertsClient) GetResourceGroupLevel ¶
func (client *AlertsClient) GetResourceGroupLevel(ctx context.Context, ascLocation string, alertName string, resourceGroupName string, options *AlertsClientGetResourceGroupLevelOptions) (AlertsClientGetResourceGroupLevelResponse, error)
GetResourceGroupLevel - Get an alert that is associated a resource group or a resource in a resource group If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations alertName - Name of the alert object resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - AlertsClientGetResourceGroupLevelOptions contains the optional parameters for the AlertsClient.GetResourceGroupLevel method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/GetAlertResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetResourceGroupLevel(ctx, "<asc-location>", "<alert-name>", "<resource-group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AlertsClient) GetSubscriptionLevel ¶
func (client *AlertsClient) GetSubscriptionLevel(ctx context.Context, ascLocation string, alertName string, options *AlertsClientGetSubscriptionLevelOptions) (AlertsClientGetSubscriptionLevelResponse, error)
GetSubscriptionLevel - Get an alert that is associated with a subscription If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations alertName - Name of the alert object options - AlertsClientGetSubscriptionLevelOptions contains the optional parameters for the AlertsClient.GetSubscriptionLevel method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/GetAlertSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetSubscriptionLevel(ctx, "<asc-location>", "<alert-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AlertsClient) List ¶
func (client *AlertsClient) List(options *AlertsClientListOptions) *runtime.Pager[AlertsClientListResponse]
List - List all the alerts that are associated with the subscription If the operation fails it returns an *azcore.ResponseError type. options - AlertsClientListOptions contains the optional parameters for the AlertsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/GetAlertsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AlertsClient) ListByResourceGroup ¶
func (client *AlertsClient) ListByResourceGroup(resourceGroupName string, options *AlertsClientListByResourceGroupOptions) *runtime.Pager[AlertsClientListByResourceGroupResponse]
ListByResourceGroup - List all the alerts that are associated with the resource group If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - AlertsClientListByResourceGroupOptions contains the optional parameters for the AlertsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/GetAlertsResourceGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AlertsClient) ListResourceGroupLevelByRegion ¶
func (client *AlertsClient) ListResourceGroupLevelByRegion(ascLocation string, resourceGroupName string, options *AlertsClientListResourceGroupLevelByRegionOptions) *runtime.Pager[AlertsClientListResourceGroupLevelByRegionResponse]
ListResourceGroupLevelByRegion - List all the alerts that are associated with the resource group that are stored in a specific location If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - AlertsClientListResourceGroupLevelByRegionOptions contains the optional parameters for the AlertsClient.ListResourceGroupLevelByRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/GetAlertsResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListResourceGroupLevelByRegion("<asc-location>", "<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AlertsClient) ListSubscriptionLevelByRegion ¶
func (client *AlertsClient) ListSubscriptionLevelByRegion(ascLocation string, options *AlertsClientListSubscriptionLevelByRegionOptions) *runtime.Pager[AlertsClientListSubscriptionLevelByRegionResponse]
ListSubscriptionLevelByRegion - List all the alerts that are associated with the subscription that are stored in a specific location If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - AlertsClientListSubscriptionLevelByRegionOptions contains the optional parameters for the AlertsClient.ListSubscriptionLevelByRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/GetAlertsSubscriptionsLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListSubscriptionLevelByRegion("<asc-location>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AlertsClient) Simulate ¶ added in v0.5.0
func (client *AlertsClient) Simulate(ctx context.Context, ascLocation string, alertSimulatorRequestBody AlertSimulatorRequestBody, options *AlertsClientSimulateOptions) (AlertsClientSimulateResponse, error)
Simulate - Simulate security alerts If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations alertSimulatorRequestBody - Alert Simulator Request Properties options - AlertsClientSimulateOptions contains the optional parameters for the AlertsClient.Simulate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/SimulateAlerts_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Simulate(ctx, "<asc-location>", armsecurity.AlertSimulatorRequestBody{ Properties: &armsecurity.AlertSimulatorBundlesRequestProperties{ Kind: to.Ptr(armsecurity.KindBundles), Bundles: []*armsecurity.BundleType{ to.Ptr(armsecurity.BundleTypeAppServices), to.Ptr(armsecurity.BundleTypeDNS), to.Ptr(armsecurity.BundleTypeKeyVaults), to.Ptr(armsecurity.BundleTypeKubernetesService), to.Ptr(armsecurity.BundleTypeResourceManager), to.Ptr(armsecurity.BundleTypeSQLServers), to.Ptr(armsecurity.BundleTypeStorageAccounts), to.Ptr(armsecurity.BundleTypeVirtualMachines)}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AlertsClient) UpdateResourceGroupLevelStateToActivate ¶
func (client *AlertsClient) UpdateResourceGroupLevelStateToActivate(ctx context.Context, ascLocation string, alertName string, resourceGroupName string, options *AlertsClientUpdateResourceGroupLevelStateToActivateOptions) (AlertsClientUpdateResourceGroupLevelStateToActivateResponse, error)
UpdateResourceGroupLevelStateToActivate - Update the alert's state If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations alertName - Name of the alert object resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - AlertsClientUpdateResourceGroupLevelStateToActivateOptions contains the optional parameters for the AlertsClient.UpdateResourceGroupLevelStateToActivate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/UpdateAlertResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.UpdateResourceGroupLevelStateToActivate(ctx, "<asc-location>", "<alert-name>", "<resource-group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AlertsClient) UpdateResourceGroupLevelStateToDismiss ¶
func (client *AlertsClient) UpdateResourceGroupLevelStateToDismiss(ctx context.Context, ascLocation string, alertName string, resourceGroupName string, options *AlertsClientUpdateResourceGroupLevelStateToDismissOptions) (AlertsClientUpdateResourceGroupLevelStateToDismissResponse, error)
UpdateResourceGroupLevelStateToDismiss - Update the alert's state If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations alertName - Name of the alert object resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - AlertsClientUpdateResourceGroupLevelStateToDismissOptions contains the optional parameters for the AlertsClient.UpdateResourceGroupLevelStateToDismiss method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/UpdateAlertResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.UpdateResourceGroupLevelStateToDismiss(ctx, "<asc-location>", "<alert-name>", "<resource-group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AlertsClient) UpdateResourceGroupLevelStateToResolve ¶
func (client *AlertsClient) UpdateResourceGroupLevelStateToResolve(ctx context.Context, ascLocation string, alertName string, resourceGroupName string, options *AlertsClientUpdateResourceGroupLevelStateToResolveOptions) (AlertsClientUpdateResourceGroupLevelStateToResolveResponse, error)
UpdateResourceGroupLevelStateToResolve - Update the alert's state If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations alertName - Name of the alert object resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - AlertsClientUpdateResourceGroupLevelStateToResolveOptions contains the optional parameters for the AlertsClient.UpdateResourceGroupLevelStateToResolve method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/UpdateAlertResourceGroupLocation_resolve_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.UpdateResourceGroupLevelStateToResolve(ctx, "<asc-location>", "<alert-name>", "<resource-group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AlertsClient) UpdateSubscriptionLevelStateToActivate ¶
func (client *AlertsClient) UpdateSubscriptionLevelStateToActivate(ctx context.Context, ascLocation string, alertName string, options *AlertsClientUpdateSubscriptionLevelStateToActivateOptions) (AlertsClientUpdateSubscriptionLevelStateToActivateResponse, error)
UpdateSubscriptionLevelStateToActivate - Update the alert's state If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations alertName - Name of the alert object options - AlertsClientUpdateSubscriptionLevelStateToActivateOptions contains the optional parameters for the AlertsClient.UpdateSubscriptionLevelStateToActivate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/UpdateAlertSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.UpdateSubscriptionLevelStateToActivate(ctx, "<asc-location>", "<alert-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AlertsClient) UpdateSubscriptionLevelStateToDismiss ¶
func (client *AlertsClient) UpdateSubscriptionLevelStateToDismiss(ctx context.Context, ascLocation string, alertName string, options *AlertsClientUpdateSubscriptionLevelStateToDismissOptions) (AlertsClientUpdateSubscriptionLevelStateToDismissResponse, error)
UpdateSubscriptionLevelStateToDismiss - Update the alert's state If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations alertName - Name of the alert object options - AlertsClientUpdateSubscriptionLevelStateToDismissOptions contains the optional parameters for the AlertsClient.UpdateSubscriptionLevelStateToDismiss method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/UpdateAlertSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.UpdateSubscriptionLevelStateToDismiss(ctx, "<asc-location>", "<alert-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AlertsClient) UpdateSubscriptionLevelStateToResolve ¶
func (client *AlertsClient) UpdateSubscriptionLevelStateToResolve(ctx context.Context, ascLocation string, alertName string, options *AlertsClientUpdateSubscriptionLevelStateToResolveOptions) (AlertsClientUpdateSubscriptionLevelStateToResolveResponse, error)
UpdateSubscriptionLevelStateToResolve - Update the alert's state If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations alertName - Name of the alert object options - AlertsClientUpdateSubscriptionLevelStateToResolveOptions contains the optional parameters for the AlertsClient.UpdateSubscriptionLevelStateToResolve method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-11-01/examples/Alerts/UpdateAlertSubscriptionLocation_resolve_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.UpdateSubscriptionLevelStateToResolve(ctx, "<asc-location>", "<alert-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
type AlertsClientGetResourceGroupLevelOptions ¶ added in v0.3.0
type AlertsClientGetResourceGroupLevelOptions struct { }
AlertsClientGetResourceGroupLevelOptions contains the optional parameters for the AlertsClient.GetResourceGroupLevel method.
type AlertsClientGetResourceGroupLevelResponse ¶ added in v0.3.0
type AlertsClientGetResourceGroupLevelResponse struct {
Alert
}
AlertsClientGetResourceGroupLevelResponse contains the response from method AlertsClient.GetResourceGroupLevel.
type AlertsClientGetSubscriptionLevelOptions ¶ added in v0.3.0
type AlertsClientGetSubscriptionLevelOptions struct { }
AlertsClientGetSubscriptionLevelOptions contains the optional parameters for the AlertsClient.GetSubscriptionLevel method.
type AlertsClientGetSubscriptionLevelResponse ¶ added in v0.3.0
type AlertsClientGetSubscriptionLevelResponse struct {
Alert
}
AlertsClientGetSubscriptionLevelResponse contains the response from method AlertsClient.GetSubscriptionLevel.
type AlertsClientListByResourceGroupOptions ¶ added in v0.3.0
type AlertsClientListByResourceGroupOptions struct { }
AlertsClientListByResourceGroupOptions contains the optional parameters for the AlertsClient.ListByResourceGroup method.
type AlertsClientListByResourceGroupResponse ¶ added in v0.3.0
type AlertsClientListByResourceGroupResponse struct {
AlertList
}
AlertsClientListByResourceGroupResponse contains the response from method AlertsClient.ListByResourceGroup.
type AlertsClientListOptions ¶ added in v0.3.0
type AlertsClientListOptions struct { }
AlertsClientListOptions contains the optional parameters for the AlertsClient.List method.
type AlertsClientListResourceGroupLevelByRegionOptions ¶ added in v0.3.0
type AlertsClientListResourceGroupLevelByRegionOptions struct { }
AlertsClientListResourceGroupLevelByRegionOptions contains the optional parameters for the AlertsClient.ListResourceGroupLevelByRegion method.
type AlertsClientListResourceGroupLevelByRegionResponse ¶ added in v0.3.0
type AlertsClientListResourceGroupLevelByRegionResponse struct {
AlertList
}
AlertsClientListResourceGroupLevelByRegionResponse contains the response from method AlertsClient.ListResourceGroupLevelByRegion.
type AlertsClientListResponse ¶ added in v0.3.0
type AlertsClientListResponse struct {
AlertList
}
AlertsClientListResponse contains the response from method AlertsClient.List.
type AlertsClientListSubscriptionLevelByRegionOptions ¶ added in v0.3.0
type AlertsClientListSubscriptionLevelByRegionOptions struct { }
AlertsClientListSubscriptionLevelByRegionOptions contains the optional parameters for the AlertsClient.ListSubscriptionLevelByRegion method.
type AlertsClientListSubscriptionLevelByRegionResponse ¶ added in v0.3.0
type AlertsClientListSubscriptionLevelByRegionResponse struct {
AlertList
}
AlertsClientListSubscriptionLevelByRegionResponse contains the response from method AlertsClient.ListSubscriptionLevelByRegion.
type AlertsClientSimulateOptions ¶ added in v0.5.0
type AlertsClientSimulateOptions struct { }
AlertsClientSimulateOptions contains the optional parameters for the AlertsClient.Simulate method.
type AlertsClientSimulateResponse ¶ added in v0.3.0
type AlertsClientSimulateResponse struct { }
AlertsClientSimulateResponse contains the response from method AlertsClient.Simulate.
type AlertsClientUpdateResourceGroupLevelStateToActivateOptions ¶ added in v0.3.0
type AlertsClientUpdateResourceGroupLevelStateToActivateOptions struct { }
AlertsClientUpdateResourceGroupLevelStateToActivateOptions contains the optional parameters for the AlertsClient.UpdateResourceGroupLevelStateToActivate method.
type AlertsClientUpdateResourceGroupLevelStateToActivateResponse ¶ added in v0.3.0
type AlertsClientUpdateResourceGroupLevelStateToActivateResponse struct { }
AlertsClientUpdateResourceGroupLevelStateToActivateResponse contains the response from method AlertsClient.UpdateResourceGroupLevelStateToActivate.
type AlertsClientUpdateResourceGroupLevelStateToDismissOptions ¶ added in v0.3.0
type AlertsClientUpdateResourceGroupLevelStateToDismissOptions struct { }
AlertsClientUpdateResourceGroupLevelStateToDismissOptions contains the optional parameters for the AlertsClient.UpdateResourceGroupLevelStateToDismiss method.
type AlertsClientUpdateResourceGroupLevelStateToDismissResponse ¶ added in v0.3.0
type AlertsClientUpdateResourceGroupLevelStateToDismissResponse struct { }
AlertsClientUpdateResourceGroupLevelStateToDismissResponse contains the response from method AlertsClient.UpdateResourceGroupLevelStateToDismiss.
type AlertsClientUpdateResourceGroupLevelStateToResolveOptions ¶ added in v0.3.0
type AlertsClientUpdateResourceGroupLevelStateToResolveOptions struct { }
AlertsClientUpdateResourceGroupLevelStateToResolveOptions contains the optional parameters for the AlertsClient.UpdateResourceGroupLevelStateToResolve method.
type AlertsClientUpdateResourceGroupLevelStateToResolveResponse ¶ added in v0.3.0
type AlertsClientUpdateResourceGroupLevelStateToResolveResponse struct { }
AlertsClientUpdateResourceGroupLevelStateToResolveResponse contains the response from method AlertsClient.UpdateResourceGroupLevelStateToResolve.
type AlertsClientUpdateSubscriptionLevelStateToActivateOptions ¶ added in v0.3.0
type AlertsClientUpdateSubscriptionLevelStateToActivateOptions struct { }
AlertsClientUpdateSubscriptionLevelStateToActivateOptions contains the optional parameters for the AlertsClient.UpdateSubscriptionLevelStateToActivate method.
type AlertsClientUpdateSubscriptionLevelStateToActivateResponse ¶ added in v0.3.0
type AlertsClientUpdateSubscriptionLevelStateToActivateResponse struct { }
AlertsClientUpdateSubscriptionLevelStateToActivateResponse contains the response from method AlertsClient.UpdateSubscriptionLevelStateToActivate.
type AlertsClientUpdateSubscriptionLevelStateToDismissOptions ¶ added in v0.3.0
type AlertsClientUpdateSubscriptionLevelStateToDismissOptions struct { }
AlertsClientUpdateSubscriptionLevelStateToDismissOptions contains the optional parameters for the AlertsClient.UpdateSubscriptionLevelStateToDismiss method.
type AlertsClientUpdateSubscriptionLevelStateToDismissResponse ¶ added in v0.3.0
type AlertsClientUpdateSubscriptionLevelStateToDismissResponse struct { }
AlertsClientUpdateSubscriptionLevelStateToDismissResponse contains the response from method AlertsClient.UpdateSubscriptionLevelStateToDismiss.
type AlertsClientUpdateSubscriptionLevelStateToResolveOptions ¶ added in v0.3.0
type AlertsClientUpdateSubscriptionLevelStateToResolveOptions struct { }
AlertsClientUpdateSubscriptionLevelStateToResolveOptions contains the optional parameters for the AlertsClient.UpdateSubscriptionLevelStateToResolve method.
type AlertsClientUpdateSubscriptionLevelStateToResolveResponse ¶ added in v0.3.0
type AlertsClientUpdateSubscriptionLevelStateToResolveResponse struct { }
AlertsClientUpdateSubscriptionLevelStateToResolveResponse contains the response from method AlertsClient.UpdateSubscriptionLevelStateToResolve.
type AlertsSuppressionRule ¶
type AlertsSuppressionRule struct { // describes AlertsSuppressionRule properties Properties *AlertsSuppressionRuleProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AlertsSuppressionRule - Describes the suppression rule
type AlertsSuppressionRuleProperties ¶
type AlertsSuppressionRuleProperties struct { // REQUIRED; Type of the alert to automatically suppress. For all alert types, use '*' AlertType *string `json:"alertType,omitempty"` // REQUIRED; The reason for dismissing the alert Reason *string `json:"reason,omitempty"` // REQUIRED; Possible states of the rule State *RuleState `json:"state,omitempty"` // Any comment regarding the rule Comment *string `json:"comment,omitempty"` // 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 *time.Time `json:"expirationDateUtc,omitempty"` // The suppression conditions SuppressionAlertsScope *SuppressionAlertsScope `json:"suppressionAlertsScope,omitempty"` // READ-ONLY; The last time this rule was modified LastModifiedUTC *time.Time `json:"lastModifiedUtc,omitempty" azure:"ro"` }
AlertsSuppressionRuleProperties - describes AlertsSuppressionRule properties
func (AlertsSuppressionRuleProperties) MarshalJSON ¶
func (a AlertsSuppressionRuleProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AlertsSuppressionRuleProperties.
func (*AlertsSuppressionRuleProperties) UnmarshalJSON ¶
func (a *AlertsSuppressionRuleProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AlertsSuppressionRuleProperties.
type AlertsSuppressionRulesClient ¶
type AlertsSuppressionRulesClient struct {
// contains filtered or unexported fields
}
AlertsSuppressionRulesClient contains the methods for the AlertsSuppressionRules group. Don't use this type directly, use NewAlertsSuppressionRulesClient() instead.
func NewAlertsSuppressionRulesClient ¶
func NewAlertsSuppressionRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AlertsSuppressionRulesClient, error)
NewAlertsSuppressionRulesClient creates a new instance of AlertsSuppressionRulesClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AlertsSuppressionRulesClient) Delete ¶
func (client *AlertsSuppressionRulesClient) Delete(ctx context.Context, alertsSuppressionRuleName string, options *AlertsSuppressionRulesClientDeleteOptions) (AlertsSuppressionRulesClientDeleteResponse, error)
Delete - Delete dismiss alert rule for this subscription. If the operation fails it returns an *azcore.ResponseError type. alertsSuppressionRuleName - The unique name of the suppression alert rule options - AlertsSuppressionRulesClientDeleteOptions contains the optional parameters for the AlertsSuppressionRulesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/DeleteAlertsSuppressionRule_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsSuppressionRulesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<alerts-suppression-rule-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AlertsSuppressionRulesClient) Get ¶
func (client *AlertsSuppressionRulesClient) Get(ctx context.Context, alertsSuppressionRuleName string, options *AlertsSuppressionRulesClientGetOptions) (AlertsSuppressionRulesClientGetResponse, error)
Get - Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription If the operation fails it returns an *azcore.ResponseError type. alertsSuppressionRuleName - The unique name of the suppression alert rule options - AlertsSuppressionRulesClientGetOptions contains the optional parameters for the AlertsSuppressionRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRule_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsSuppressionRulesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<alerts-suppression-rule-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AlertsSuppressionRulesClient) List ¶
func (client *AlertsSuppressionRulesClient) List(options *AlertsSuppressionRulesClientListOptions) *runtime.Pager[AlertsSuppressionRulesClientListResponse]
List - List of all the dismiss rules for the given subscription If the operation fails it returns an *azcore.ResponseError type. options - AlertsSuppressionRulesClientListOptions contains the optional parameters for the AlertsSuppressionRulesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRulesWithAlertType_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsSuppressionRulesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(&armsecurity.AlertsSuppressionRulesClientListOptions{AlertType: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AlertsSuppressionRulesClient) Update ¶
func (client *AlertsSuppressionRulesClient) Update(ctx context.Context, alertsSuppressionRuleName string, alertsSuppressionRule AlertsSuppressionRule, options *AlertsSuppressionRulesClientUpdateOptions) (AlertsSuppressionRulesClientUpdateResponse, error)
Update - Update existing rule or create new rule if it doesn't exist If the operation fails it returns an *azcore.ResponseError type. alertsSuppressionRuleName - The unique name of the suppression alert rule alertsSuppressionRule - Suppression rule object options - AlertsSuppressionRulesClientUpdateOptions contains the optional parameters for the AlertsSuppressionRulesClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/PutAlertsSuppressionRule_example.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAlertsSuppressionRulesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<alerts-suppression-rule-name>", armsecurity.AlertsSuppressionRule{ Properties: &armsecurity.AlertsSuppressionRuleProperties{ AlertType: to.Ptr("<alert-type>"), Comment: to.Ptr("<comment>"), ExpirationDateUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-12-01T19:50:47.083633Z"); return t }()), Reason: to.Ptr("<reason>"), State: to.Ptr(armsecurity.RuleStateEnabled), SuppressionAlertsScope: &armsecurity.SuppressionAlertsScope{ AllOf: []*armsecurity.ScopeElement{ { AdditionalProperties: map[string]interface{}{ "in": []interface{}{ "104.215.95.187", "52.164.206.56", }, }, Field: to.Ptr("<field>"), }, { AdditionalProperties: map[string]interface{}{ "contains": "POWERSHELL.EXE", }, Field: to.Ptr("<field>"), }}, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type AlertsSuppressionRulesClientDeleteOptions ¶ added in v0.3.0
type AlertsSuppressionRulesClientDeleteOptions struct { }
AlertsSuppressionRulesClientDeleteOptions contains the optional parameters for the AlertsSuppressionRulesClient.Delete method.
type AlertsSuppressionRulesClientDeleteResponse ¶ added in v0.3.0
type AlertsSuppressionRulesClientDeleteResponse struct { }
AlertsSuppressionRulesClientDeleteResponse contains the response from method AlertsSuppressionRulesClient.Delete.
type AlertsSuppressionRulesClientGetOptions ¶ added in v0.3.0
type AlertsSuppressionRulesClientGetOptions struct { }
AlertsSuppressionRulesClientGetOptions contains the optional parameters for the AlertsSuppressionRulesClient.Get method.
type AlertsSuppressionRulesClientGetResponse ¶ added in v0.3.0
type AlertsSuppressionRulesClientGetResponse struct {
AlertsSuppressionRule
}
AlertsSuppressionRulesClientGetResponse contains the response from method AlertsSuppressionRulesClient.Get.
type AlertsSuppressionRulesClientListOptions ¶ added in v0.3.0
type AlertsSuppressionRulesClientListOptions struct { // Type of the alert to get rules for AlertType *string }
AlertsSuppressionRulesClientListOptions contains the optional parameters for the AlertsSuppressionRulesClient.List method.
type AlertsSuppressionRulesClientListResponse ¶ added in v0.3.0
type AlertsSuppressionRulesClientListResponse struct {
AlertsSuppressionRulesList
}
AlertsSuppressionRulesClientListResponse contains the response from method AlertsSuppressionRulesClient.List.
type AlertsSuppressionRulesClientUpdateOptions ¶ added in v0.3.0
type AlertsSuppressionRulesClientUpdateOptions struct { }
AlertsSuppressionRulesClientUpdateOptions contains the optional parameters for the AlertsSuppressionRulesClient.Update method.
type AlertsSuppressionRulesClientUpdateResponse ¶ added in v0.3.0
type AlertsSuppressionRulesClientUpdateResponse struct {
AlertsSuppressionRule
}
AlertsSuppressionRulesClientUpdateResponse contains the response from method AlertsSuppressionRulesClient.Update.
type AlertsSuppressionRulesList ¶
type AlertsSuppressionRulesList struct { // REQUIRED Value []*AlertsSuppressionRule `json:"value,omitempty"` // READ-ONLY; URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
AlertsSuppressionRulesList - Suppression rules list for subscription.
func (AlertsSuppressionRulesList) MarshalJSON ¶
func (a AlertsSuppressionRulesList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AlertsSuppressionRulesList.
type AlertsToAdmins ¶
type AlertsToAdmins string
AlertsToAdmins - Whether to send security alerts notifications to subscription admins
const ( // AlertsToAdminsOff - Don't send notification on new alerts to the subscription's admins AlertsToAdminsOff AlertsToAdmins = "Off" // AlertsToAdminsOn - Send notification on new alerts to the subscription's admins AlertsToAdminsOn AlertsToAdmins = "On" )
func PossibleAlertsToAdminsValues ¶
func PossibleAlertsToAdminsValues() []AlertsToAdmins
PossibleAlertsToAdminsValues returns the possible values for the AlertsToAdmins const type.
type AllowedConnectionsClient ¶
type AllowedConnectionsClient struct {
// contains filtered or unexported fields
}
AllowedConnectionsClient contains the methods for the AllowedConnections group. Don't use this type directly, use NewAllowedConnectionsClient() instead.
func NewAllowedConnectionsClient ¶
func NewAllowedConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AllowedConnectionsClient, error)
NewAllowedConnectionsClient creates a new instance of AllowedConnectionsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AllowedConnectionsClient) Get ¶
func (client *AllowedConnectionsClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, connectionType ConnectionType, options *AllowedConnectionsClientGetOptions) (AllowedConnectionsClientGetResponse, error)
Get - Gets the list of all possible traffic between resources for the subscription and location, based on connection type. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations connectionType - The type of allowed connections (Internal, External) options - AllowedConnectionsClientGetOptions contains the optional parameters for the AllowedConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AllowedConnections/GetAllowedConnections_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAllowedConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<asc-location>", armsecurity.ConnectionTypeInternal, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AllowedConnectionsClient) List ¶
func (client *AllowedConnectionsClient) List(options *AllowedConnectionsClientListOptions) *runtime.Pager[AllowedConnectionsClientListResponse]
List - Gets the list of all possible traffic between resources for the subscription If the operation fails it returns an *azcore.ResponseError type. options - AllowedConnectionsClientListOptions contains the optional parameters for the AllowedConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAllowedConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AllowedConnectionsClient) ListByHomeRegion ¶
func (client *AllowedConnectionsClient) ListByHomeRegion(ascLocation string, options *AllowedConnectionsClientListByHomeRegionOptions) *runtime.Pager[AllowedConnectionsClientListByHomeRegionResponse]
ListByHomeRegion - Gets the list of all possible traffic between resources for the subscription and location. If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - AllowedConnectionsClientListByHomeRegionOptions contains the optional parameters for the AllowedConnectionsClient.ListByHomeRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAllowedConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByHomeRegion("<asc-location>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AllowedConnectionsClientGetOptions ¶ added in v0.3.0
type AllowedConnectionsClientGetOptions struct { }
AllowedConnectionsClientGetOptions contains the optional parameters for the AllowedConnectionsClient.Get method.
type AllowedConnectionsClientGetResponse ¶ added in v0.3.0
type AllowedConnectionsClientGetResponse struct {
AllowedConnectionsResource
}
AllowedConnectionsClientGetResponse contains the response from method AllowedConnectionsClient.Get.
type AllowedConnectionsClientListByHomeRegionOptions ¶ added in v0.3.0
type AllowedConnectionsClientListByHomeRegionOptions struct { }
AllowedConnectionsClientListByHomeRegionOptions contains the optional parameters for the AllowedConnectionsClient.ListByHomeRegion method.
type AllowedConnectionsClientListByHomeRegionResponse ¶ added in v0.3.0
type AllowedConnectionsClientListByHomeRegionResponse struct {
AllowedConnectionsList
}
AllowedConnectionsClientListByHomeRegionResponse contains the response from method AllowedConnectionsClient.ListByHomeRegion.
type AllowedConnectionsClientListOptions ¶ added in v0.3.0
type AllowedConnectionsClientListOptions struct { }
AllowedConnectionsClientListOptions contains the optional parameters for the AllowedConnectionsClient.List method.
type AllowedConnectionsClientListResponse ¶ added in v0.3.0
type AllowedConnectionsClientListResponse struct {
AllowedConnectionsList
}
AllowedConnectionsClientListResponse contains the response from method AllowedConnectionsClient.List.
type AllowedConnectionsList ¶
type AllowedConnectionsList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY Value []*AllowedConnectionsResource `json:"value,omitempty" azure:"ro"` }
AllowedConnectionsList - List of all possible traffic between Azure resources
func (AllowedConnectionsList) MarshalJSON ¶
func (a AllowedConnectionsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AllowedConnectionsList.
type AllowedConnectionsResource ¶
type AllowedConnectionsResource struct { // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Describes the allowed traffic between Azure resources Properties *AllowedConnectionsResourceProperties `json:"properties,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AllowedConnectionsResource - The resource whose properties describes the allowed traffic between Azure resources
type AllowedConnectionsResourceProperties ¶
type AllowedConnectionsResourceProperties struct { // READ-ONLY; The UTC time on which the allowed connections resource was calculated CalculatedDateTime *time.Time `json:"calculatedDateTime,omitempty" azure:"ro"` // READ-ONLY; List of connectable resources ConnectableResources []*ConnectableResource `json:"connectableResources,omitempty" azure:"ro"` }
AllowedConnectionsResourceProperties - Describes the allowed traffic between Azure resources
func (AllowedConnectionsResourceProperties) MarshalJSON ¶
func (a AllowedConnectionsResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AllowedConnectionsResourceProperties.
func (*AllowedConnectionsResourceProperties) UnmarshalJSON ¶
func (a *AllowedConnectionsResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AllowedConnectionsResourceProperties.
type AllowlistCustomAlertRule ¶
type AllowlistCustomAlertRule struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. AllowlistValues []*string `json:"allowlistValues,omitempty"` // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The value type of the items in the list. ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` }
AllowlistCustomAlertRule - A custom alert rule that checks if a value (depends on the custom alert type) is allowed.
func (*AllowlistCustomAlertRule) GetAllowlistCustomAlertRule ¶
func (a *AllowlistCustomAlertRule) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type AllowlistCustomAlertRule.
func (*AllowlistCustomAlertRule) GetCustomAlertRule ¶ added in v0.3.0
func (a *AllowlistCustomAlertRule) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AllowlistCustomAlertRule.
func (*AllowlistCustomAlertRule) GetListCustomAlertRule ¶ added in v0.3.0
func (a *AllowlistCustomAlertRule) GetListCustomAlertRule() *ListCustomAlertRule
GetListCustomAlertRule implements the ListCustomAlertRuleClassification interface for type AllowlistCustomAlertRule.
func (AllowlistCustomAlertRule) MarshalJSON ¶
func (a AllowlistCustomAlertRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AllowlistCustomAlertRule.
func (*AllowlistCustomAlertRule) UnmarshalJSON ¶
func (a *AllowlistCustomAlertRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AllowlistCustomAlertRule.
type AllowlistCustomAlertRuleClassification ¶
type AllowlistCustomAlertRuleClassification interface { ListCustomAlertRuleClassification // GetAllowlistCustomAlertRule returns the AllowlistCustomAlertRule content of the underlying type. GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule }
AllowlistCustomAlertRuleClassification provides polymorphic access to related types. Call the interface's GetAllowlistCustomAlertRule() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AllowlistCustomAlertRule, *ConnectionFromIPNotAllowed, *ConnectionToIPNotAllowed, *LocalUserNotAllowed, *ProcessNotAllowed
type AmqpC2DMessagesNotInAllowedRange ¶
type AmqpC2DMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
AmqpC2DMessagesNotInAllowedRange - Number of cloud to device messages (AMQP protocol) is not in allowed range.
func (*AmqpC2DMessagesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (a *AmqpC2DMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AmqpC2DMessagesNotInAllowedRange.
func (*AmqpC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (a *AmqpC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type AmqpC2DMessagesNotInAllowedRange.
func (*AmqpC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (a *AmqpC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type AmqpC2DMessagesNotInAllowedRange.
func (AmqpC2DMessagesNotInAllowedRange) MarshalJSON ¶
func (a AmqpC2DMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AmqpC2DMessagesNotInAllowedRange.
func (*AmqpC2DMessagesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (a *AmqpC2DMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AmqpC2DMessagesNotInAllowedRange.
type AmqpC2DRejectedMessagesNotInAllowedRange ¶
type AmqpC2DRejectedMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
AmqpC2DRejectedMessagesNotInAllowedRange - Number of rejected cloud to device messages (AMQP protocol) is not in allowed range.
func (*AmqpC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AmqpC2DRejectedMessagesNotInAllowedRange.
func (*AmqpC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type AmqpC2DRejectedMessagesNotInAllowedRange.
func (*AmqpC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type AmqpC2DRejectedMessagesNotInAllowedRange.
func (AmqpC2DRejectedMessagesNotInAllowedRange) MarshalJSON ¶
func (a AmqpC2DRejectedMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AmqpC2DRejectedMessagesNotInAllowedRange.
func (*AmqpC2DRejectedMessagesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (a *AmqpC2DRejectedMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AmqpC2DRejectedMessagesNotInAllowedRange.
type AmqpD2CMessagesNotInAllowedRange ¶
type AmqpD2CMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
AmqpD2CMessagesNotInAllowedRange - Number of device to cloud messages (AMQP protocol) is not in allowed range.
func (*AmqpD2CMessagesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (a *AmqpD2CMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AmqpD2CMessagesNotInAllowedRange.
func (*AmqpD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (a *AmqpD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type AmqpD2CMessagesNotInAllowedRange.
func (*AmqpD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (a *AmqpD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type AmqpD2CMessagesNotInAllowedRange.
func (AmqpD2CMessagesNotInAllowedRange) MarshalJSON ¶
func (a AmqpD2CMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AmqpD2CMessagesNotInAllowedRange.
func (*AmqpD2CMessagesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (a *AmqpD2CMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AmqpD2CMessagesNotInAllowedRange.
type AscLocation ¶
type AscLocation struct { // An empty set of properties Properties interface{} `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AscLocation - The ASC location of the subscription is in the "name" field
type AscLocationList ¶
type AscLocationList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY Value []*AscLocation `json:"value,omitempty" azure:"ro"` }
AscLocationList - List of locations where ASC saves your data
func (AscLocationList) MarshalJSON ¶
func (a AscLocationList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AscLocationList.
type AssessedResourceType ¶
type AssessedResourceType string
AssessedResourceType - Sub-assessment resource type
const ( AssessedResourceTypeContainerRegistryVulnerability AssessedResourceType = "ContainerRegistryVulnerability" AssessedResourceTypeSQLServerVulnerability AssessedResourceType = "SqlServerVulnerability" AssessedResourceTypeServerVulnerability AssessedResourceType = "ServerVulnerability" )
func PossibleAssessedResourceTypeValues ¶
func PossibleAssessedResourceTypeValues() []AssessedResourceType
PossibleAssessedResourceTypeValues returns the possible values for the AssessedResourceType const type.
type Assessment ¶ added in v0.3.0
type Assessment struct { // Describes properties of an assessment. Properties *AssessmentProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Assessment - Security assessment on a resource
type AssessmentLinks ¶
type AssessmentLinks struct { // READ-ONLY; Link to assessment in Azure Portal AzurePortalURI *string `json:"azurePortalUri,omitempty" azure:"ro"` }
AssessmentLinks - Links relevant to the assessment
type AssessmentList ¶ added in v0.3.0
type AssessmentList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Collection of security assessments in this page Value []*AssessmentResponse `json:"value,omitempty" azure:"ro"` }
AssessmentList - Page of a security assessments list
func (AssessmentList) MarshalJSON ¶ added in v0.3.0
func (a AssessmentList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentList.
type AssessmentMetadata ¶ added in v0.3.0
type AssessmentMetadata struct { // Describes properties of an assessment metadata. Properties *AssessmentMetadataProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AssessmentMetadata - Security assessment metadata
type AssessmentMetadataPartnerData ¶ added in v0.3.0
type AssessmentMetadataPartnerData struct { // REQUIRED; Name of the company of the partner PartnerName *string `json:"partnerName,omitempty"` // REQUIRED; Secret to authenticate the partner and verify it created the assessment - write only Secret *string `json:"secret,omitempty"` // Name of the product of the partner that created the assessment ProductName *string `json:"productName,omitempty"` }
AssessmentMetadataPartnerData - Describes the partner that created the assessment
type AssessmentMetadataProperties ¶ added in v0.3.0
type AssessmentMetadataProperties struct { // REQUIRED; BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom // Azure Policy definition AssessmentType *AssessmentType `json:"assessmentType,omitempty"` // REQUIRED; User friendly display name of the assessment DisplayName *string `json:"displayName,omitempty"` // REQUIRED; The severity level of the assessment Severity *Severity `json:"severity,omitempty"` Categories []*Categories `json:"categories,omitempty"` // Human readable description of the assessment Description *string `json:"description,omitempty"` // The implementation effort required to remediate this assessment ImplementationEffort *ImplementationEffort `json:"implementationEffort,omitempty"` // Describes the partner that created the assessment PartnerData *AssessmentMetadataPartnerData `json:"partnerData,omitempty"` // True if this assessment is in preview release status Preview *bool `json:"preview,omitempty"` // Human readable description of what you should do to mitigate this security issue RemediationDescription *string `json:"remediationDescription,omitempty"` Threats []*Threats `json:"threats,omitempty"` // The user impact of the assessment UserImpact *UserImpact `json:"userImpact,omitempty"` // READ-ONLY; Azure resource ID of the policy definition that turns this assessment calculation on PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" azure:"ro"` }
AssessmentMetadataProperties - Describes properties of an assessment metadata.
func (AssessmentMetadataProperties) MarshalJSON ¶ added in v0.3.0
func (a AssessmentMetadataProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentMetadataProperties.
type AssessmentMetadataPropertiesResponse ¶ added in v0.3.0
type AssessmentMetadataPropertiesResponse struct { // REQUIRED; BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom // Azure Policy definition AssessmentType *AssessmentType `json:"assessmentType,omitempty"` // REQUIRED; User friendly display name of the assessment DisplayName *string `json:"displayName,omitempty"` // REQUIRED; The severity level of the assessment Severity *Severity `json:"severity,omitempty"` Categories []*Categories `json:"categories,omitempty"` // Human readable description of the assessment Description *string `json:"description,omitempty"` // The implementation effort required to remediate this assessment ImplementationEffort *ImplementationEffort `json:"implementationEffort,omitempty"` // Describes the partner that created the assessment PartnerData *AssessmentMetadataPartnerData `json:"partnerData,omitempty"` PlannedDeprecationDate *string `json:"plannedDeprecationDate,omitempty"` // True if this assessment is in preview release status Preview *bool `json:"preview,omitempty"` PublishDates *AssessmentMetadataPropertiesResponsePublishDates `json:"publishDates,omitempty"` // Human readable description of what you should do to mitigate this security issue RemediationDescription *string `json:"remediationDescription,omitempty"` Tactics []*Tactics `json:"tactics,omitempty"` Techniques []*Techniques `json:"techniques,omitempty"` Threats []*Threats `json:"threats,omitempty"` // The user impact of the assessment UserImpact *UserImpact `json:"userImpact,omitempty"` // READ-ONLY; Azure resource ID of the policy definition that turns this assessment calculation on PolicyDefinitionID *string `json:"policyDefinitionId,omitempty" azure:"ro"` }
AssessmentMetadataPropertiesResponse - Describes properties of an assessment metadata response.
func (AssessmentMetadataPropertiesResponse) MarshalJSON ¶ added in v0.3.0
func (a AssessmentMetadataPropertiesResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentMetadataPropertiesResponse.
type AssessmentMetadataPropertiesResponsePublishDates ¶ added in v0.3.0
type AssessmentMetadataResponse ¶ added in v0.3.0
type AssessmentMetadataResponse struct { // Describes properties of an assessment metadata response. Properties *AssessmentMetadataPropertiesResponse `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AssessmentMetadataResponse - Security assessment metadata response
type AssessmentMetadataResponseList ¶ added in v0.3.0
type AssessmentMetadataResponseList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY Value []*AssessmentMetadataResponse `json:"value,omitempty" azure:"ro"` }
AssessmentMetadataResponseList - List of security assessment metadata
func (AssessmentMetadataResponseList) MarshalJSON ¶ added in v0.3.0
func (a AssessmentMetadataResponseList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentMetadataResponseList.
type AssessmentPartnerData ¶ added in v0.3.0
type AssessmentPartnerData struct { // REQUIRED; Name of the company of the partner PartnerName *string `json:"partnerName,omitempty"` // REQUIRED; secret to authenticate the partner - write only Secret *string `json:"secret,omitempty"` }
AssessmentPartnerData - Data regarding 3rd party partner integration
type AssessmentProperties ¶ added in v0.3.0
type AssessmentProperties struct { // REQUIRED; Details of the resource that was assessed ResourceDetails ResourceDetailsClassification `json:"resourceDetails,omitempty"` // REQUIRED; The result of the assessment Status *AssessmentStatus `json:"status,omitempty"` // Additional data regarding the assessment AdditionalData map[string]*string `json:"additionalData,omitempty"` // Describes properties of an assessment metadata. Metadata *AssessmentMetadataProperties `json:"metadata,omitempty"` // Data regarding 3rd party partner integration PartnersData *AssessmentPartnerData `json:"partnersData,omitempty"` // READ-ONLY; User friendly display name of the assessment DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; Links relevant to the assessment Links *AssessmentLinks `json:"links,omitempty" azure:"ro"` }
AssessmentProperties - Describes properties of an assessment.
func (AssessmentProperties) MarshalJSON ¶ added in v0.3.0
func (a AssessmentProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentProperties.
func (*AssessmentProperties) UnmarshalJSON ¶ added in v0.3.0
func (a *AssessmentProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessmentProperties.
type AssessmentPropertiesBase ¶ added in v0.3.0
type AssessmentPropertiesBase struct { // REQUIRED; Details of the resource that was assessed ResourceDetails ResourceDetailsClassification `json:"resourceDetails,omitempty"` // Additional data regarding the assessment AdditionalData map[string]*string `json:"additionalData,omitempty"` // Describes properties of an assessment metadata. Metadata *AssessmentMetadataProperties `json:"metadata,omitempty"` // Data regarding 3rd party partner integration PartnersData *AssessmentPartnerData `json:"partnersData,omitempty"` // READ-ONLY; User friendly display name of the assessment DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; Links relevant to the assessment Links *AssessmentLinks `json:"links,omitempty" azure:"ro"` }
AssessmentPropertiesBase - Describes properties of an assessment.
func (AssessmentPropertiesBase) MarshalJSON ¶ added in v0.3.0
func (a AssessmentPropertiesBase) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentPropertiesBase.
func (*AssessmentPropertiesBase) UnmarshalJSON ¶ added in v0.3.0
func (a *AssessmentPropertiesBase) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessmentPropertiesBase.
type AssessmentPropertiesResponse ¶ added in v0.3.0
type AssessmentPropertiesResponse struct { // REQUIRED; Details of the resource that was assessed ResourceDetails ResourceDetailsClassification `json:"resourceDetails,omitempty"` // REQUIRED; The result of the assessment Status *AssessmentStatusResponse `json:"status,omitempty"` // Additional data regarding the assessment AdditionalData map[string]*string `json:"additionalData,omitempty"` // Describes properties of an assessment metadata. Metadata *AssessmentMetadataProperties `json:"metadata,omitempty"` // Data regarding 3rd party partner integration PartnersData *AssessmentPartnerData `json:"partnersData,omitempty"` // READ-ONLY; User friendly display name of the assessment DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; Links relevant to the assessment Links *AssessmentLinks `json:"links,omitempty" azure:"ro"` }
AssessmentPropertiesResponse - Describes properties of an assessment.
func (AssessmentPropertiesResponse) MarshalJSON ¶ added in v0.3.0
func (a AssessmentPropertiesResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentPropertiesResponse.
func (*AssessmentPropertiesResponse) UnmarshalJSON ¶ added in v0.3.0
func (a *AssessmentPropertiesResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessmentPropertiesResponse.
type AssessmentResponse ¶ added in v0.3.0
type AssessmentResponse struct { // Describes properties of an assessment. Properties *AssessmentPropertiesResponse `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AssessmentResponse - Security assessment on a resource - response format
type AssessmentStatus ¶
type AssessmentStatus struct { // REQUIRED; Programmatic code for the status of the assessment Code *AssessmentStatusCode `json:"code,omitempty"` // Programmatic code for the cause of the assessment status Cause *string `json:"cause,omitempty"` // Human readable description of the assessment status Description *string `json:"description,omitempty"` }
AssessmentStatus - The result of the assessment
type AssessmentStatusCode ¶
type AssessmentStatusCode string
AssessmentStatusCode - Programmatic code for the status of the assessment
const ( // AssessmentStatusCodeHealthy - The resource is healthy AssessmentStatusCodeHealthy AssessmentStatusCode = "Healthy" // AssessmentStatusCodeNotApplicable - Assessment for this resource did not happen AssessmentStatusCodeNotApplicable AssessmentStatusCode = "NotApplicable" // AssessmentStatusCodeUnhealthy - The resource has a security issue that needs to be addressed AssessmentStatusCodeUnhealthy AssessmentStatusCode = "Unhealthy" )
func PossibleAssessmentStatusCodeValues ¶
func PossibleAssessmentStatusCodeValues() []AssessmentStatusCode
PossibleAssessmentStatusCodeValues returns the possible values for the AssessmentStatusCode const type.
type AssessmentStatusResponse ¶
type AssessmentStatusResponse struct { // REQUIRED; Programmatic code for the status of the assessment Code *AssessmentStatusCode `json:"code,omitempty"` // Programmatic code for the cause of the assessment status Cause *string `json:"cause,omitempty"` // Human readable description of the assessment status Description *string `json:"description,omitempty"` // READ-ONLY; The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format FirstEvaluationDate *time.Time `json:"firstEvaluationDate,omitempty" azure:"ro"` // READ-ONLY; The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format StatusChangeDate *time.Time `json:"statusChangeDate,omitempty" azure:"ro"` }
AssessmentStatusResponse - The result of the assessment
func (AssessmentStatusResponse) MarshalJSON ¶
func (a AssessmentStatusResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssessmentStatusResponse.
func (*AssessmentStatusResponse) UnmarshalJSON ¶
func (a *AssessmentStatusResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssessmentStatusResponse.
type AssessmentType ¶
type AssessmentType string
AssessmentType - BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
const ( // AssessmentTypeBuiltIn - Azure Security Center managed assessments AssessmentTypeBuiltIn AssessmentType = "BuiltIn" // AssessmentTypeCustomPolicy - User defined policies that are automatically ingested from Azure Policy to Azure Security // Center AssessmentTypeCustomPolicy AssessmentType = "CustomPolicy" // AssessmentTypeCustomerManaged - User assessments pushed directly by the user or other third party to Azure Security Center AssessmentTypeCustomerManaged AssessmentType = "CustomerManaged" // AssessmentTypeVerifiedPartner - An assessment that was created by a verified 3rd party if the user connected it to ASC AssessmentTypeVerifiedPartner AssessmentType = "VerifiedPartner" )
func PossibleAssessmentTypeValues ¶
func PossibleAssessmentTypeValues() []AssessmentType
PossibleAssessmentTypeValues returns the possible values for the AssessmentType const type.
type AssessmentsClient ¶
type AssessmentsClient struct {
// contains filtered or unexported fields
}
AssessmentsClient contains the methods for the Assessments group. Don't use this type directly, use NewAssessmentsClient() instead.
func NewAssessmentsClient ¶
func NewAssessmentsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*AssessmentsClient, error)
NewAssessmentsClient creates a new instance of AssessmentsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AssessmentsClient) CreateOrUpdate ¶
func (client *AssessmentsClient) CreateOrUpdate(ctx context.Context, resourceID string, assessmentName string, assessment Assessment, options *AssessmentsClientCreateOrUpdateOptions) (AssessmentsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. assessmentName - The Assessment Key - Unique key for the assessment type assessment - Calculated assessment on a pre-defined assessment metadata options - AssessmentsClientCreateOrUpdateOptions contains the optional parameters for the AssessmentsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/PutAssessment_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-id>", "<assessment-name>", armsecurity.Assessment{ Properties: &armsecurity.AssessmentProperties{ ResourceDetails: &armsecurity.AzureResourceDetails{ Source: to.Ptr(armsecurity.SourceAzure), }, Status: &armsecurity.AssessmentStatus{ Code: to.Ptr(armsecurity.AssessmentStatusCodeHealthy), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AssessmentsClient) Delete ¶
func (client *AssessmentsClient) Delete(ctx context.Context, resourceID string, assessmentName string, options *AssessmentsClientDeleteOptions) (AssessmentsClientDeleteResponse, error)
Delete - Delete a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. assessmentName - The Assessment Key - Unique key for the assessment type options - AssessmentsClientDeleteOptions contains the optional parameters for the AssessmentsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/DeleteAssessment_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-id>", "<assessment-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AssessmentsClient) Get ¶
func (client *AssessmentsClient) Get(ctx context.Context, resourceID string, assessmentName string, options *AssessmentsClientGetOptions) (AssessmentsClientGetResponse, error)
Get - Get a security assessment on your scanned resource If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. assessmentName - The Assessment Key - Unique key for the assessment type options - AssessmentsClientGetOptions contains the optional parameters for the AssessmentsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/GetAssessment_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-id>", "<assessment-name>", &armsecurity.AssessmentsClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AssessmentsClient) List ¶
func (client *AssessmentsClient) List(scope string, options *AssessmentsClientListOptions) *runtime.Pager[AssessmentsClientListResponse]
List - Get security assessments on all your scanned resources inside a scope If the operation fails it returns an *azcore.ResponseError type. scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). options - AssessmentsClientListOptions contains the optional parameters for the AssessmentsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/Assessments/ListAssessments_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<scope>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AssessmentsClientCreateOrUpdateOptions ¶ added in v0.3.0
type AssessmentsClientCreateOrUpdateOptions struct { }
AssessmentsClientCreateOrUpdateOptions contains the optional parameters for the AssessmentsClient.CreateOrUpdate method.
type AssessmentsClientCreateOrUpdateResponse ¶ added in v0.3.0
type AssessmentsClientCreateOrUpdateResponse struct {
AssessmentResponse
}
AssessmentsClientCreateOrUpdateResponse contains the response from method AssessmentsClient.CreateOrUpdate.
type AssessmentsClientDeleteOptions ¶ added in v0.3.0
type AssessmentsClientDeleteOptions struct { }
AssessmentsClientDeleteOptions contains the optional parameters for the AssessmentsClient.Delete method.
type AssessmentsClientDeleteResponse ¶ added in v0.3.0
type AssessmentsClientDeleteResponse struct { }
AssessmentsClientDeleteResponse contains the response from method AssessmentsClient.Delete.
type AssessmentsClientGetOptions ¶ added in v0.3.0
type AssessmentsClientGetOptions struct { // OData expand. Optional. Expand *ExpandEnum }
AssessmentsClientGetOptions contains the optional parameters for the AssessmentsClient.Get method.
type AssessmentsClientGetResponse ¶ added in v0.3.0
type AssessmentsClientGetResponse struct {
AssessmentResponse
}
AssessmentsClientGetResponse contains the response from method AssessmentsClient.Get.
type AssessmentsClientListOptions ¶ added in v0.3.0
type AssessmentsClientListOptions struct { }
AssessmentsClientListOptions contains the optional parameters for the AssessmentsClient.List method.
type AssessmentsClientListResponse ¶ added in v0.3.0
type AssessmentsClientListResponse struct {
AssessmentList
}
AssessmentsClientListResponse contains the response from method AssessmentsClient.List.
type AssessmentsMetadataClient ¶
type AssessmentsMetadataClient struct {
// contains filtered or unexported fields
}
AssessmentsMetadataClient contains the methods for the AssessmentsMetadata group. Don't use this type directly, use NewAssessmentsMetadataClient() instead.
func NewAssessmentsMetadataClient ¶
func NewAssessmentsMetadataClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AssessmentsMetadataClient, error)
NewAssessmentsMetadataClient creates a new instance of AssessmentsMetadataClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AssessmentsMetadataClient) CreateInSubscription ¶
func (client *AssessmentsMetadataClient) CreateInSubscription(ctx context.Context, assessmentMetadataName string, assessmentMetadata AssessmentMetadataResponse, options *AssessmentsMetadataClientCreateInSubscriptionOptions) (AssessmentsMetadataClientCreateInSubscriptionResponse, error)
CreateInSubscription - Create metadata information on an assessment type in a specific subscription If the operation fails it returns an *azcore.ResponseError type. assessmentMetadataName - The Assessment Key - Unique key for the assessment type assessmentMetadata - AssessmentMetadata object options - AssessmentsMetadataClientCreateInSubscriptionOptions contains the optional parameters for the AssessmentsMetadataClient.CreateInSubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsMetadataClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateInSubscription(ctx, "<assessment-metadata-name>", armsecurity.AssessmentMetadataResponse{ Properties: &armsecurity.AssessmentMetadataPropertiesResponse{ Description: to.Ptr("<description>"), AssessmentType: to.Ptr(armsecurity.AssessmentTypeCustomerManaged), Categories: []*armsecurity.Categories{ to.Ptr(armsecurity.CategoriesCompute)}, DisplayName: to.Ptr("<display-name>"), ImplementationEffort: to.Ptr(armsecurity.ImplementationEffortLow), RemediationDescription: to.Ptr("<remediation-description>"), Severity: to.Ptr(armsecurity.SeverityMedium), Threats: []*armsecurity.Threats{ to.Ptr(armsecurity.ThreatsDataExfiltration), to.Ptr(armsecurity.ThreatsDataSpillage), to.Ptr(armsecurity.ThreatsMaliciousInsider)}, UserImpact: to.Ptr(armsecurity.UserImpactLow), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AssessmentsMetadataClient) DeleteInSubscription ¶
func (client *AssessmentsMetadataClient) DeleteInSubscription(ctx context.Context, assessmentMetadataName string, options *AssessmentsMetadataClientDeleteInSubscriptionOptions) (AssessmentsMetadataClientDeleteInSubscriptionResponse, error)
DeleteInSubscription - Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the assessments of that type in that subscription If the operation fails it returns an *azcore.ResponseError type. assessmentMetadataName - The Assessment Key - Unique key for the assessment type options - AssessmentsMetadataClientDeleteInSubscriptionOptions contains the optional parameters for the AssessmentsMetadataClient.DeleteInSubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsMetadataClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.DeleteInSubscription(ctx, "<assessment-metadata-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AssessmentsMetadataClient) Get ¶
func (client *AssessmentsMetadataClient) Get(ctx context.Context, assessmentMetadataName string, options *AssessmentsMetadataClientGetOptions) (AssessmentsMetadataClientGetResponse, error)
Get - Get metadata information on an assessment type If the operation fails it returns an *azcore.ResponseError type. assessmentMetadataName - The Assessment Key - Unique key for the assessment type options - AssessmentsMetadataClientGetOptions contains the optional parameters for the AssessmentsMetadataClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsMetadataClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<assessment-metadata-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AssessmentsMetadataClient) GetInSubscription ¶
func (client *AssessmentsMetadataClient) GetInSubscription(ctx context.Context, assessmentMetadataName string, options *AssessmentsMetadataClientGetInSubscriptionOptions) (AssessmentsMetadataClientGetInSubscriptionResponse, error)
GetInSubscription - Get metadata information on an assessment type in a specific subscription If the operation fails it returns an *azcore.ResponseError type. assessmentMetadataName - The Assessment Key - Unique key for the assessment type options - AssessmentsMetadataClientGetInSubscriptionOptions contains the optional parameters for the AssessmentsMetadataClient.GetInSubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsMetadataClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetInSubscription(ctx, "<assessment-metadata-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AssessmentsMetadataClient) List ¶
func (client *AssessmentsMetadataClient) List(options *AssessmentsMetadataClientListOptions) *runtime.Pager[AssessmentsMetadataClientListResponse]
List - Get metadata information on all assessment types If the operation fails it returns an *azcore.ResponseError type. options - AssessmentsMetadataClientListOptions contains the optional parameters for the AssessmentsMetadataClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsMetadataClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AssessmentsMetadataClient) ListBySubscription ¶
func (client *AssessmentsMetadataClient) ListBySubscription(options *AssessmentsMetadataClientListBySubscriptionOptions) *runtime.Pager[AssessmentsMetadataClientListBySubscriptionResponse]
ListBySubscription - Get metadata information on all assessment types in a specific subscription If the operation fails it returns an *azcore.ResponseError type. options - AssessmentsMetadataClientListBySubscriptionOptions contains the optional parameters for the AssessmentsMetadataClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAssessmentsMetadataClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySubscription(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AssessmentsMetadataClientCreateInSubscriptionOptions ¶ added in v0.3.0
type AssessmentsMetadataClientCreateInSubscriptionOptions struct { }
AssessmentsMetadataClientCreateInSubscriptionOptions contains the optional parameters for the AssessmentsMetadataClient.CreateInSubscription method.
type AssessmentsMetadataClientCreateInSubscriptionResponse ¶ added in v0.3.0
type AssessmentsMetadataClientCreateInSubscriptionResponse struct {
AssessmentMetadataResponse
}
AssessmentsMetadataClientCreateInSubscriptionResponse contains the response from method AssessmentsMetadataClient.CreateInSubscription.
type AssessmentsMetadataClientDeleteInSubscriptionOptions ¶ added in v0.3.0
type AssessmentsMetadataClientDeleteInSubscriptionOptions struct { }
AssessmentsMetadataClientDeleteInSubscriptionOptions contains the optional parameters for the AssessmentsMetadataClient.DeleteInSubscription method.
type AssessmentsMetadataClientDeleteInSubscriptionResponse ¶ added in v0.3.0
type AssessmentsMetadataClientDeleteInSubscriptionResponse struct { }
AssessmentsMetadataClientDeleteInSubscriptionResponse contains the response from method AssessmentsMetadataClient.DeleteInSubscription.
type AssessmentsMetadataClientGetInSubscriptionOptions ¶ added in v0.3.0
type AssessmentsMetadataClientGetInSubscriptionOptions struct { }
AssessmentsMetadataClientGetInSubscriptionOptions contains the optional parameters for the AssessmentsMetadataClient.GetInSubscription method.
type AssessmentsMetadataClientGetInSubscriptionResponse ¶ added in v0.3.0
type AssessmentsMetadataClientGetInSubscriptionResponse struct {
AssessmentMetadataResponse
}
AssessmentsMetadataClientGetInSubscriptionResponse contains the response from method AssessmentsMetadataClient.GetInSubscription.
type AssessmentsMetadataClientGetOptions ¶ added in v0.3.0
type AssessmentsMetadataClientGetOptions struct { }
AssessmentsMetadataClientGetOptions contains the optional parameters for the AssessmentsMetadataClient.Get method.
type AssessmentsMetadataClientGetResponse ¶ added in v0.3.0
type AssessmentsMetadataClientGetResponse struct {
AssessmentMetadataResponse
}
AssessmentsMetadataClientGetResponse contains the response from method AssessmentsMetadataClient.Get.
type AssessmentsMetadataClientListBySubscriptionOptions ¶ added in v0.3.0
type AssessmentsMetadataClientListBySubscriptionOptions struct { }
AssessmentsMetadataClientListBySubscriptionOptions contains the optional parameters for the AssessmentsMetadataClient.ListBySubscription method.
type AssessmentsMetadataClientListBySubscriptionResponse ¶ added in v0.3.0
type AssessmentsMetadataClientListBySubscriptionResponse struct {
AssessmentMetadataResponseList
}
AssessmentsMetadataClientListBySubscriptionResponse contains the response from method AssessmentsMetadataClient.ListBySubscription.
type AssessmentsMetadataClientListOptions ¶ added in v0.3.0
type AssessmentsMetadataClientListOptions struct { }
AssessmentsMetadataClientListOptions contains the optional parameters for the AssessmentsMetadataClient.List method.
type AssessmentsMetadataClientListResponse ¶ added in v0.3.0
type AssessmentsMetadataClientListResponse struct {
AssessmentMetadataResponseList
}
AssessmentsMetadataClientListResponse contains the response from method AssessmentsMetadataClient.List.
type AtaExternalSecuritySolution ¶
type AtaExternalSecuritySolution struct { // The kind of the external solution Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` // The external security solution properties for ATA solutions Properties *AtaSolutionProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AtaExternalSecuritySolution - Represents an ATA security solution which sends logs to an OMS workspace
func (AtaExternalSecuritySolution) MarshalJSON ¶
func (a AtaExternalSecuritySolution) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AtaExternalSecuritySolution.
func (*AtaExternalSecuritySolution) UnmarshalJSON ¶
func (a *AtaExternalSecuritySolution) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AtaExternalSecuritySolution.
type AtaSolutionProperties ¶
type AtaSolutionProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} DeviceType *string `json:"deviceType,omitempty"` DeviceVendor *string `json:"deviceVendor,omitempty"` LastEventReceived *string `json:"lastEventReceived,omitempty"` // Represents an OMS workspace to which the solution is connected Workspace *ConnectedWorkspace `json:"workspace,omitempty"` }
AtaSolutionProperties - The external security solution properties for ATA solutions
func (AtaSolutionProperties) MarshalJSON ¶
func (a AtaSolutionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AtaSolutionProperties.
func (*AtaSolutionProperties) UnmarshalJSON ¶
func (a *AtaSolutionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AtaSolutionProperties.
type AuthenticationDetailsProperties ¶
type AuthenticationDetailsProperties struct { // REQUIRED; Connect to your cloud account, for AWS use either account credentials or role-based authentication. For GCP use // account organization credentials. AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` // READ-ONLY; State of the multi-cloud connector AuthenticationProvisioningState *AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty" azure:"ro"` // READ-ONLY; The permissions detected in the cloud account. GrantedPermissions []*PermissionProperty `json:"grantedPermissions,omitempty" azure:"ro"` }
AuthenticationDetailsProperties - Settings for cloud authentication management
func (*AuthenticationDetailsProperties) GetAuthenticationDetailsProperties ¶
func (a *AuthenticationDetailsProperties) GetAuthenticationDetailsProperties() *AuthenticationDetailsProperties
GetAuthenticationDetailsProperties implements the AuthenticationDetailsPropertiesClassification interface for type AuthenticationDetailsProperties.
func (AuthenticationDetailsProperties) MarshalJSON ¶ added in v0.3.0
func (a AuthenticationDetailsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AuthenticationDetailsProperties.
type AuthenticationDetailsPropertiesClassification ¶
type AuthenticationDetailsPropertiesClassification interface { // GetAuthenticationDetailsProperties returns the AuthenticationDetailsProperties content of the underlying type. GetAuthenticationDetailsProperties() *AuthenticationDetailsProperties }
AuthenticationDetailsPropertiesClassification provides polymorphic access to related types. Call the interface's GetAuthenticationDetailsProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AuthenticationDetailsProperties, *AwAssumeRoleAuthenticationDetailsProperties, *AwsCredsAuthenticationDetailsProperties, - *GcpCredentialsDetailsProperties
type AuthenticationProvisioningState ¶
type AuthenticationProvisioningState string
AuthenticationProvisioningState - State of the multi-cloud connector
const ( // AuthenticationProvisioningStateExpired - the connection has expired AuthenticationProvisioningStateExpired AuthenticationProvisioningState = "Expired" // AuthenticationProvisioningStateIncorrectPolicy - Incorrect policy of the connector AuthenticationProvisioningStateIncorrectPolicy AuthenticationProvisioningState = "IncorrectPolicy" // AuthenticationProvisioningStateInvalid - Invalid connector AuthenticationProvisioningStateInvalid AuthenticationProvisioningState = "Invalid" // AuthenticationProvisioningStateValid - Valid connector AuthenticationProvisioningStateValid AuthenticationProvisioningState = "Valid" )
func PossibleAuthenticationProvisioningStateValues ¶
func PossibleAuthenticationProvisioningStateValues() []AuthenticationProvisioningState
PossibleAuthenticationProvisioningStateValues returns the possible values for the AuthenticationProvisioningState const type.
type AuthenticationType ¶
type AuthenticationType string
AuthenticationType - Connect to your cloud account, for AWS use either account credentials or role-based authentication. For GCP use account organization credentials.
const ( // AuthenticationTypeAwsAssumeRole - AWS account connector assume role authentication AuthenticationTypeAwsAssumeRole AuthenticationType = "awsAssumeRole" // AuthenticationTypeAwsCreds - AWS cloud account connector user credentials authentication AuthenticationTypeAwsCreds AuthenticationType = "awsCreds" // AuthenticationTypeGcpCredentials - GCP account connector service to service authentication AuthenticationTypeGcpCredentials AuthenticationType = "gcpCredentials" )
func PossibleAuthenticationTypeValues ¶
func PossibleAuthenticationTypeValues() []AuthenticationType
PossibleAuthenticationTypeValues returns the possible values for the AuthenticationType const type.
type AutoProvision ¶
type AutoProvision string
AutoProvision - Describes what kind of security agent provisioning action to take
const ( // AutoProvisionOff - Do not install security agent on the VMs automatically AutoProvisionOff AutoProvision = "Off" // AutoProvisionOn - Install missing security agent on VMs automatically AutoProvisionOn AutoProvision = "On" )
func PossibleAutoProvisionValues ¶
func PossibleAutoProvisionValues() []AutoProvision
PossibleAutoProvisionValues returns the possible values for the AutoProvision const type.
type AutoProvisioningSetting ¶
type AutoProvisioningSetting struct { // Auto provisioning setting data Properties *AutoProvisioningSettingProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AutoProvisioningSetting - Auto provisioning setting
type AutoProvisioningSettingList ¶
type AutoProvisioningSettingList struct { // List of all the auto provisioning settings Value []*AutoProvisioningSetting `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
AutoProvisioningSettingList - List of all the auto provisioning settings response
func (AutoProvisioningSettingList) MarshalJSON ¶
func (a AutoProvisioningSettingList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AutoProvisioningSettingList.
type AutoProvisioningSettingProperties ¶
type AutoProvisioningSettingProperties struct { // REQUIRED; Describes what kind of security agent provisioning action to take AutoProvision *AutoProvision `json:"autoProvision,omitempty"` }
AutoProvisioningSettingProperties - describes properties of an auto provisioning setting
type AutoProvisioningSettingsClient ¶
type AutoProvisioningSettingsClient struct {
// contains filtered or unexported fields
}
AutoProvisioningSettingsClient contains the methods for the AutoProvisioningSettings group. Don't use this type directly, use NewAutoProvisioningSettingsClient() instead.
func NewAutoProvisioningSettingsClient ¶
func NewAutoProvisioningSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AutoProvisioningSettingsClient, error)
NewAutoProvisioningSettingsClient creates a new instance of AutoProvisioningSettingsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AutoProvisioningSettingsClient) Create ¶
func (client *AutoProvisioningSettingsClient) Create(ctx context.Context, settingName string, setting AutoProvisioningSetting, options *AutoProvisioningSettingsClientCreateOptions) (AutoProvisioningSettingsClientCreateResponse, error)
Create - Details of a specific setting If the operation fails it returns an *azcore.ResponseError type. settingName - Auto provisioning setting key setting - Auto provisioning setting key options - AutoProvisioningSettingsClientCreateOptions contains the optional parameters for the AutoProvisioningSettingsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/AutoProvisioningSettings/CreateAutoProvisioningSettingsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAutoProvisioningSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Create(ctx, "<setting-name>", armsecurity.AutoProvisioningSetting{ Name: to.Ptr("<name>"), Type: to.Ptr("<type>"), ID: to.Ptr("<id>"), Properties: &armsecurity.AutoProvisioningSettingProperties{ AutoProvision: to.Ptr(armsecurity.AutoProvisionOn), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AutoProvisioningSettingsClient) Get ¶
func (client *AutoProvisioningSettingsClient) Get(ctx context.Context, settingName string, options *AutoProvisioningSettingsClientGetOptions) (AutoProvisioningSettingsClientGetResponse, error)
Get - Details of a specific setting If the operation fails it returns an *azcore.ResponseError type. settingName - Auto provisioning setting key options - AutoProvisioningSettingsClientGetOptions contains the optional parameters for the AutoProvisioningSettingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/AutoProvisioningSettings/GetAutoProvisioningSettingSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAutoProvisioningSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<setting-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AutoProvisioningSettingsClient) List ¶
func (client *AutoProvisioningSettingsClient) List(options *AutoProvisioningSettingsClientListOptions) *runtime.Pager[AutoProvisioningSettingsClientListResponse]
List - Exposes the auto provisioning settings of the subscriptions If the operation fails it returns an *azcore.ResponseError type. options - AutoProvisioningSettingsClientListOptions contains the optional parameters for the AutoProvisioningSettingsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/AutoProvisioningSettings/GetAutoProvisioningSettingsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAutoProvisioningSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AutoProvisioningSettingsClientCreateOptions ¶ added in v0.3.0
type AutoProvisioningSettingsClientCreateOptions struct { }
AutoProvisioningSettingsClientCreateOptions contains the optional parameters for the AutoProvisioningSettingsClient.Create method.
type AutoProvisioningSettingsClientCreateResponse ¶ added in v0.3.0
type AutoProvisioningSettingsClientCreateResponse struct {
AutoProvisioningSetting
}
AutoProvisioningSettingsClientCreateResponse contains the response from method AutoProvisioningSettingsClient.Create.
type AutoProvisioningSettingsClientGetOptions ¶ added in v0.3.0
type AutoProvisioningSettingsClientGetOptions struct { }
AutoProvisioningSettingsClientGetOptions contains the optional parameters for the AutoProvisioningSettingsClient.Get method.
type AutoProvisioningSettingsClientGetResponse ¶ added in v0.3.0
type AutoProvisioningSettingsClientGetResponse struct {
AutoProvisioningSetting
}
AutoProvisioningSettingsClientGetResponse contains the response from method AutoProvisioningSettingsClient.Get.
type AutoProvisioningSettingsClientListOptions ¶ added in v0.3.0
type AutoProvisioningSettingsClientListOptions struct { }
AutoProvisioningSettingsClientListOptions contains the optional parameters for the AutoProvisioningSettingsClient.List method.
type AutoProvisioningSettingsClientListResponse ¶ added in v0.3.0
type AutoProvisioningSettingsClientListResponse struct {
AutoProvisioningSettingList
}
AutoProvisioningSettingsClientListResponse contains the response from method AutoProvisioningSettingsClient.List.
type Automation ¶
type Automation struct { // Entity tag is used for comparing two or more entities from the same requested resource. Etag *string `json:"etag,omitempty"` // Kind of the resource Kind *string `json:"kind,omitempty"` // Location where the resource is stored Location *string `json:"location,omitempty"` // Security automation data Properties *AutomationProperties `json:"properties,omitempty"` // A list of key value pairs that describe the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Automation - The security automation resource.
func (Automation) MarshalJSON ¶
func (a Automation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Automation.
type AutomationAction ¶
type AutomationAction struct { // REQUIRED; The type of the action that will be triggered by the Automation ActionType *ActionType `json:"actionType,omitempty"` }
AutomationAction - The action that should be triggered.
func (*AutomationAction) GetAutomationAction ¶
func (a *AutomationAction) GetAutomationAction() *AutomationAction
GetAutomationAction implements the AutomationActionClassification interface for type AutomationAction.
type AutomationActionClassification ¶
type AutomationActionClassification interface { // GetAutomationAction returns the AutomationAction content of the underlying type. GetAutomationAction() *AutomationAction }
AutomationActionClassification provides polymorphic access to related types. Call the interface's GetAutomationAction() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AutomationAction, *AutomationActionEventHub, *AutomationActionLogicApp, *AutomationActionWorkspace
type AutomationActionEventHub ¶
type AutomationActionEventHub struct { // REQUIRED; The type of the action that will be triggered by the Automation ActionType *ActionType `json:"actionType,omitempty"` // The target Event Hub connection string (it will not be included in any response). ConnectionString *string `json:"connectionString,omitempty"` // The target Event Hub Azure Resource ID. EventHubResourceID *string `json:"eventHubResourceId,omitempty"` // READ-ONLY; The target Event Hub SAS policy name. SasPolicyName *string `json:"sasPolicyName,omitempty" azure:"ro"` }
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) GetAutomationAction ¶ added in v0.3.0
func (a *AutomationActionEventHub) GetAutomationAction() *AutomationAction
GetAutomationAction implements the AutomationActionClassification interface for type AutomationActionEventHub.
func (AutomationActionEventHub) MarshalJSON ¶
func (a AutomationActionEventHub) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AutomationActionEventHub.
func (*AutomationActionEventHub) UnmarshalJSON ¶
func (a *AutomationActionEventHub) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AutomationActionEventHub.
type AutomationActionLogicApp ¶
type AutomationActionLogicApp struct { // REQUIRED; The type of the action that will be triggered by the Automation ActionType *ActionType `json:"actionType,omitempty"` // 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"` // The Logic App trigger URI endpoint (it will not be included in any response). URI *string `json:"uri,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) GetAutomationAction ¶ added in v0.3.0
func (a *AutomationActionLogicApp) GetAutomationAction() *AutomationAction
GetAutomationAction implements the AutomationActionClassification interface for type AutomationActionLogicApp.
func (AutomationActionLogicApp) MarshalJSON ¶
func (a AutomationActionLogicApp) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AutomationActionLogicApp.
func (*AutomationActionLogicApp) UnmarshalJSON ¶
func (a *AutomationActionLogicApp) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AutomationActionLogicApp.
type AutomationActionWorkspace ¶
type AutomationActionWorkspace struct { // REQUIRED; The type of the action that will be triggered by the Automation ActionType *ActionType `json:"actionType,omitempty"` // The fully qualified Log Analytics Workspace Azure Resource ID. WorkspaceResourceID *string `json:"workspaceResourceId,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) GetAutomationAction ¶ added in v0.3.0
func (a *AutomationActionWorkspace) GetAutomationAction() *AutomationAction
GetAutomationAction implements the AutomationActionClassification interface for type AutomationActionWorkspace.
func (AutomationActionWorkspace) MarshalJSON ¶
func (a AutomationActionWorkspace) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AutomationActionWorkspace.
func (*AutomationActionWorkspace) UnmarshalJSON ¶
func (a *AutomationActionWorkspace) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AutomationActionWorkspace.
type AutomationList ¶
type AutomationList struct { // REQUIRED; The list of security automations under the given scope. Value []*Automation `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
AutomationList - List of security automations response.
func (AutomationList) MarshalJSON ¶
func (a AutomationList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AutomationList.
type AutomationProperties ¶
type AutomationProperties struct { // A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, // are true. Actions []AutomationActionClassification `json:"actions,omitempty"` // The security automation description. Description *string `json:"description,omitempty"` // Indicates whether the security automation is enabled. IsEnabled *bool `json:"isEnabled,omitempty"` // 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"` // A collection of the source event types which evaluate the security automation set of rules. Sources []*AutomationSource `json:"sources,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) MarshalJSON ¶
func (a AutomationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AutomationProperties.
func (*AutomationProperties) UnmarshalJSON ¶
func (a *AutomationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AutomationProperties.
type AutomationRuleSet ¶
type AutomationRuleSet struct {
Rules []*AutomationTriggeringRule `json:"rules,omitempty"`
}
AutomationRuleSet - A rule set which evaluates all its rules upon an event interception. Only when all the included rules in the rule set will be evaluated as 'true', will the event trigger the defined actions.
func (AutomationRuleSet) MarshalJSON ¶
func (a AutomationRuleSet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AutomationRuleSet.
type AutomationScope ¶
type AutomationScope struct { // The resources scope description. Description *string `json:"description,omitempty"` // The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that // subscription (fully qualified Azure resource IDs). ScopePath *string `json:"scopePath,omitempty"` }
AutomationScope - A single automation scope.
type AutomationSource ¶
type AutomationSource struct { // A valid event source type. EventSource *EventSource `json:"eventSource,omitempty"` // 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.
func (AutomationSource) MarshalJSON ¶
func (a AutomationSource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AutomationSource.
type AutomationTriggeringRule ¶
type AutomationTriggeringRule struct { // The expected value. ExpectedValue *string `json:"expectedValue,omitempty"` // A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType. Operator *Operator `json:"operator,omitempty"` // The JPath of the entity model property that should be checked. PropertyJPath *string `json:"propertyJPath,omitempty"` // The data type of the compared operands (string, integer, floating point number or a boolean [true/false]] PropertyType *PropertyType `json:"propertyType,omitempty"` }
AutomationTriggeringRule - A rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set.
type AutomationValidationStatus ¶
type AutomationValidationStatus struct { // Indicates whether the model is valid or not. IsValid *bool `json:"isValid,omitempty"` // The validation message. Message *string `json:"message,omitempty"` }
AutomationValidationStatus - The security automation model state property bag.
type AutomationsClient ¶
type AutomationsClient struct {
// contains filtered or unexported fields
}
AutomationsClient contains the methods for the Automations group. Don't use this type directly, use NewAutomationsClient() instead.
func NewAutomationsClient ¶
func NewAutomationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AutomationsClient, error)
NewAutomationsClient creates a new instance of AutomationsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AutomationsClient) CreateOrUpdate ¶
func (client *AutomationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationName string, automation Automation, options *AutomationsClientCreateOrUpdateOptions) (AutomationsClientCreateOrUpdateResponse, 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. If the operation fails it returns an *azcore.ResponseError type. 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 options - AutomationsClientCreateOrUpdateOptions contains the optional parameters for the AutomationsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/PutAutomationAllAssessments_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-group-name>", "<automation-name>", armsecurity.Automation{ Location: to.Ptr("<location>"), Etag: to.Ptr("<etag>"), Tags: map[string]*string{}, Properties: &armsecurity.AutomationProperties{ Description: to.Ptr("<description>"), Actions: []armsecurity.AutomationActionClassification{ &armsecurity.AutomationActionLogicApp{ ActionType: to.Ptr(armsecurity.ActionTypeLogicApp), LogicAppResourceID: to.Ptr("<logic-app-resource-id>"), URI: to.Ptr("<uri>"), }}, IsEnabled: to.Ptr(true), Scopes: []*armsecurity.AutomationScope{ { Description: to.Ptr("<description>"), ScopePath: to.Ptr("<scope-path>"), }}, Sources: []*armsecurity.AutomationSource{ { EventSource: to.Ptr(armsecurity.EventSourceAssessments), }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AutomationsClient) Delete ¶
func (client *AutomationsClient) Delete(ctx context.Context, resourceGroupName string, automationName string, options *AutomationsClientDeleteOptions) (AutomationsClientDeleteResponse, error)
Delete - Deletes a security automation. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. automationName - The security automation name. options - AutomationsClientDeleteOptions contains the optional parameters for the AutomationsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/DeleteAutomation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<automation-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*AutomationsClient) Get ¶
func (client *AutomationsClient) Get(ctx context.Context, resourceGroupName string, automationName string, options *AutomationsClientGetOptions) (AutomationsClientGetResponse, error)
Get - Retrieves information about the model of a security automation. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. automationName - The security automation name. options - AutomationsClientGetOptions contains the optional parameters for the AutomationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/GetAutomationResourceGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<automation-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*AutomationsClient) List ¶
func (client *AutomationsClient) List(options *AutomationsClientListOptions) *runtime.Pager[AutomationsClientListResponse]
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. If the operation fails it returns an *azcore.ResponseError type. options - AutomationsClientListOptions contains the optional parameters for the AutomationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/GetAutomationsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AutomationsClient) ListByResourceGroup ¶
func (client *AutomationsClient) ListByResourceGroup(resourceGroupName string, options *AutomationsClientListByResourceGroupOptions) *runtime.Pager[AutomationsClientListByResourceGroupResponse]
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. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - AutomationsClientListByResourceGroupOptions contains the optional parameters for the AutomationsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/GetAutomationsResourceGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AutomationsClient) Validate ¶
func (client *AutomationsClient) Validate(ctx context.Context, resourceGroupName string, automationName string, automation Automation, options *AutomationsClientValidateOptions) (AutomationsClientValidateResponse, error)
Validate - Validates the security automation model before create or update. Any validation errors are returned to the client. If the operation fails it returns an *azcore.ResponseError type. 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 options - AutomationsClientValidateOptions contains the optional parameters for the AutomationsClient.Validate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/ValidateAutomation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Validate(ctx, "<resource-group-name>", "<automation-name>", armsecurity.Automation{ Location: to.Ptr("<location>"), Tags: map[string]*string{}, Properties: &armsecurity.AutomationProperties{ Description: to.Ptr("<description>"), Actions: []armsecurity.AutomationActionClassification{ &armsecurity.AutomationActionLogicApp{ ActionType: to.Ptr(armsecurity.ActionTypeLogicApp), LogicAppResourceID: to.Ptr("<logic-app-resource-id>"), URI: to.Ptr("<uri>"), }}, IsEnabled: to.Ptr(true), Scopes: []*armsecurity.AutomationScope{ { Description: to.Ptr("<description>"), ScopePath: to.Ptr("<scope-path>"), }}, Sources: []*armsecurity.AutomationSource{ { EventSource: to.Ptr(armsecurity.EventSourceAssessments), RuleSets: []*armsecurity.AutomationRuleSet{ { Rules: []*armsecurity.AutomationTriggeringRule{ { ExpectedValue: to.Ptr("<expected-value>"), Operator: to.Ptr(armsecurity.OperatorEquals), PropertyJPath: to.Ptr("<property-jpath>"), PropertyType: to.Ptr(armsecurity.PropertyTypeString), }}, }}, }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type AutomationsClientCreateOrUpdateOptions ¶ added in v0.3.0
type AutomationsClientCreateOrUpdateOptions struct { }
AutomationsClientCreateOrUpdateOptions contains the optional parameters for the AutomationsClient.CreateOrUpdate method.
type AutomationsClientCreateOrUpdateResponse ¶ added in v0.3.0
type AutomationsClientCreateOrUpdateResponse struct {
Automation
}
AutomationsClientCreateOrUpdateResponse contains the response from method AutomationsClient.CreateOrUpdate.
type AutomationsClientDeleteOptions ¶ added in v0.3.0
type AutomationsClientDeleteOptions struct { }
AutomationsClientDeleteOptions contains the optional parameters for the AutomationsClient.Delete method.
type AutomationsClientDeleteResponse ¶ added in v0.3.0
type AutomationsClientDeleteResponse struct { }
AutomationsClientDeleteResponse contains the response from method AutomationsClient.Delete.
type AutomationsClientGetOptions ¶ added in v0.3.0
type AutomationsClientGetOptions struct { }
AutomationsClientGetOptions contains the optional parameters for the AutomationsClient.Get method.
type AutomationsClientGetResponse ¶ added in v0.3.0
type AutomationsClientGetResponse struct {
Automation
}
AutomationsClientGetResponse contains the response from method AutomationsClient.Get.
type AutomationsClientListByResourceGroupOptions ¶ added in v0.3.0
type AutomationsClientListByResourceGroupOptions struct { }
AutomationsClientListByResourceGroupOptions contains the optional parameters for the AutomationsClient.ListByResourceGroup method.
type AutomationsClientListByResourceGroupResponse ¶ added in v0.3.0
type AutomationsClientListByResourceGroupResponse struct {
AutomationList
}
AutomationsClientListByResourceGroupResponse contains the response from method AutomationsClient.ListByResourceGroup.
type AutomationsClientListOptions ¶ added in v0.3.0
type AutomationsClientListOptions struct { }
AutomationsClientListOptions contains the optional parameters for the AutomationsClient.List method.
type AutomationsClientListResponse ¶ added in v0.3.0
type AutomationsClientListResponse struct {
AutomationList
}
AutomationsClientListResponse contains the response from method AutomationsClient.List.
type AutomationsClientValidateOptions ¶ added in v0.3.0
type AutomationsClientValidateOptions struct { }
AutomationsClientValidateOptions contains the optional parameters for the AutomationsClient.Validate method.
type AutomationsClientValidateResponse ¶ added in v0.3.0
type AutomationsClientValidateResponse struct {
AutomationValidationStatus
}
AutomationsClientValidateResponse contains the response from method AutomationsClient.Validate.
type AwAssumeRoleAuthenticationDetailsProperties ¶
type AwAssumeRoleAuthenticationDetailsProperties struct { // REQUIRED; Connect to your cloud account, for AWS use either account credentials or role-based authentication. For GCP use // account organization credentials. AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; Assumed role ID is an identifier that you can use to create temporary security credentials. AwsAssumeRoleArn *string `json:"awsAssumeRoleArn,omitempty"` // REQUIRED; A unique identifier that is required when you assume a role in another account. AwsExternalID *string `json:"awsExternalId,omitempty"` // READ-ONLY; The ID of the cloud account AccountID *string `json:"accountId,omitempty" azure:"ro"` // READ-ONLY; State of the multi-cloud connector AuthenticationProvisioningState *AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty" azure:"ro"` // READ-ONLY; The permissions detected in the cloud account. GrantedPermissions []*PermissionProperty `json:"grantedPermissions,omitempty" azure:"ro"` }
AwAssumeRoleAuthenticationDetailsProperties - AWS cloud account connector based assume role, the role enables delegating access to your AWS resources. The role is composed of role Amazon Resource Name (ARN) and external ID. For more details, refer to Creating a Role to Delegate Permissions to an IAM User (write only) [https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user.html]
func (*AwAssumeRoleAuthenticationDetailsProperties) GetAuthenticationDetailsProperties ¶ added in v0.3.0
func (a *AwAssumeRoleAuthenticationDetailsProperties) GetAuthenticationDetailsProperties() *AuthenticationDetailsProperties
GetAuthenticationDetailsProperties implements the AuthenticationDetailsPropertiesClassification interface for type AwAssumeRoleAuthenticationDetailsProperties.
func (AwAssumeRoleAuthenticationDetailsProperties) MarshalJSON ¶
func (a AwAssumeRoleAuthenticationDetailsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AwAssumeRoleAuthenticationDetailsProperties.
func (*AwAssumeRoleAuthenticationDetailsProperties) UnmarshalJSON ¶
func (a *AwAssumeRoleAuthenticationDetailsProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AwAssumeRoleAuthenticationDetailsProperties.
type AwsCredsAuthenticationDetailsProperties ¶
type AwsCredsAuthenticationDetailsProperties struct { // REQUIRED; Connect to your cloud account, for AWS use either account credentials or role-based authentication. For GCP use // account organization credentials. AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; Public key element of the AWS credential object (write only) AwsAccessKeyID *string `json:"awsAccessKeyId,omitempty"` // REQUIRED; Secret key element of the AWS credential object (write only) AwsSecretAccessKey *string `json:"awsSecretAccessKey,omitempty"` // READ-ONLY; The ID of the cloud account AccountID *string `json:"accountId,omitempty" azure:"ro"` // READ-ONLY; State of the multi-cloud connector AuthenticationProvisioningState *AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty" azure:"ro"` // READ-ONLY; The permissions detected in the cloud account. GrantedPermissions []*PermissionProperty `json:"grantedPermissions,omitempty" azure:"ro"` }
AwsCredsAuthenticationDetailsProperties - AWS cloud account connector based credentials, the credentials is composed of access key ID and secret key, for more details, refer to Creating an IAM User in Your AWS Account (write only) [https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html]
func (*AwsCredsAuthenticationDetailsProperties) GetAuthenticationDetailsProperties ¶ added in v0.3.0
func (a *AwsCredsAuthenticationDetailsProperties) GetAuthenticationDetailsProperties() *AuthenticationDetailsProperties
GetAuthenticationDetailsProperties implements the AuthenticationDetailsPropertiesClassification interface for type AwsCredsAuthenticationDetailsProperties.
func (AwsCredsAuthenticationDetailsProperties) MarshalJSON ¶
func (a AwsCredsAuthenticationDetailsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AwsCredsAuthenticationDetailsProperties.
func (*AwsCredsAuthenticationDetailsProperties) UnmarshalJSON ¶
func (a *AwsCredsAuthenticationDetailsProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AwsCredsAuthenticationDetailsProperties.
type AzureResourceDetails ¶ added in v0.3.0
type AzureResourceDetails struct { // REQUIRED; The platform where the assessed resource resides Source *Source `json:"source,omitempty"` // READ-ONLY; Azure resource Id of the assessed resource ID *string `json:"id,omitempty" azure:"ro"` }
AzureResourceDetails - Details of the Azure resource that was assessed
func (*AzureResourceDetails) GetResourceDetails ¶ added in v0.3.0
func (a *AzureResourceDetails) GetResourceDetails() *ResourceDetails
GetResourceDetails implements the ResourceDetailsClassification interface for type AzureResourceDetails.
func (AzureResourceDetails) MarshalJSON ¶ added in v0.3.0
func (a AzureResourceDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureResourceDetails.
func (*AzureResourceDetails) UnmarshalJSON ¶ added in v0.3.0
func (a *AzureResourceDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureResourceDetails.
type AzureResourceIdentifier ¶
type AzureResourceIdentifier struct { // REQUIRED; There can be multiple identifiers of different type per alert, this field specify the identifier type. Type *ResourceIdentifierType `json:"type,omitempty"` // READ-ONLY; ARM resource identifier for the cloud resource being alerted on AzureResourceID *string `json:"azureResourceId,omitempty" azure:"ro"` }
AzureResourceIdentifier - Azure resource identifier.
func (*AzureResourceIdentifier) GetResourceIdentifier ¶ added in v0.3.0
func (a *AzureResourceIdentifier) GetResourceIdentifier() *ResourceIdentifier
GetResourceIdentifier implements the ResourceIdentifierClassification interface for type AzureResourceIdentifier.
func (AzureResourceIdentifier) MarshalJSON ¶
func (a AzureResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureResourceIdentifier.
func (*AzureResourceIdentifier) UnmarshalJSON ¶
func (a *AzureResourceIdentifier) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureResourceIdentifier.
type AzureResourceLink ¶
type AzureResourceLink struct { // READ-ONLY; Azure resource Id ID *string `json:"id,omitempty" azure:"ro"` }
AzureResourceLink - Describes an Azure resource with kind
type AzureTrackedResourceLocation ¶
type AzureTrackedResourceLocation struct { // Location where the resource is stored Location *string `json:"location,omitempty"` }
AzureTrackedResourceLocation - Describes an Azure resource with location
type Baseline ¶
type Baseline struct { // Expected results. ExpectedResults [][]*string `json:"expectedResults,omitempty"` // Baseline update time (UTC). UpdatedTime *time.Time `json:"updatedTime,omitempty"` }
Baseline details.
func (Baseline) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Baseline.
func (*Baseline) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Baseline.
type BaselineAdjustedResult ¶
type BaselineAdjustedResult struct { // Baseline details. Baseline *Baseline `json:"baseline,omitempty"` // Results the are not in baseline. ResultsNotInBaseline [][]*string `json:"resultsNotInBaseline,omitempty"` // Results the are in baseline. ResultsOnlyInBaseline [][]*string `json:"resultsOnlyInBaseline,omitempty"` // The rule result status. Status *RuleStatus `json:"status,omitempty"` }
BaselineAdjustedResult - The rule result adjusted with baseline.
func (BaselineAdjustedResult) MarshalJSON ¶
func (b BaselineAdjustedResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BaselineAdjustedResult.
type BenchmarkReference ¶
type BenchmarkReference struct { // The benchmark name. Benchmark *string `json:"benchmark,omitempty"` // The benchmark reference. Reference *string `json:"reference,omitempty"` }
BenchmarkReference - The benchmark references.
type BundleType ¶
type BundleType string
BundleType - Alert Simulator supported bundles.
const ( BundleTypeAppServices BundleType = "AppServices" BundleTypeDNS BundleType = "DNS" BundleTypeKeyVaults BundleType = "KeyVaults" BundleTypeKubernetesService BundleType = "KubernetesService" BundleTypeResourceManager BundleType = "ResourceManager" BundleTypeSQLServers BundleType = "SqlServers" BundleTypeStorageAccounts BundleType = "StorageAccounts" BundleTypeVirtualMachines BundleType = "VirtualMachines" )
func PossibleBundleTypeValues ¶
func PossibleBundleTypeValues() []BundleType
PossibleBundleTypeValues returns the possible values for the BundleType const type.
type CVE ¶
type CVE struct { // READ-ONLY; Link url Link *string `json:"link,omitempty" azure:"ro"` // READ-ONLY; CVE title Title *string `json:"title,omitempty" azure:"ro"` }
CVE details
type CVSS ¶
type CVSS struct { // READ-ONLY; CVSS base Base *float32 `json:"base,omitempty" azure:"ro"` }
CVSS details
type Categories ¶
type Categories string
Categories - The categories of resource that is at risk when the assessment is unhealthy
const ( CategoriesCompute Categories = "Compute" CategoriesData Categories = "Data" CategoriesIdentityAndAccess Categories = "IdentityAndAccess" CategoriesIoT Categories = "IoT" CategoriesNetworking Categories = "Networking" )
func PossibleCategoriesValues ¶
func PossibleCategoriesValues() []Categories
PossibleCategoriesValues returns the possible values for the Categories const type.
type CefExternalSecuritySolution ¶
type CefExternalSecuritySolution struct { // The kind of the external solution Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` // The external security solution properties for CEF solutions Properties *CefSolutionProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
CefExternalSecuritySolution - Represents a security solution which sends CEF logs to an OMS workspace
func (CefExternalSecuritySolution) MarshalJSON ¶
func (c CefExternalSecuritySolution) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CefExternalSecuritySolution.
func (*CefExternalSecuritySolution) UnmarshalJSON ¶
func (c *CefExternalSecuritySolution) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CefExternalSecuritySolution.
type CefSolutionProperties ¶
type CefSolutionProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} Agent *string `json:"agent,omitempty"` DeviceType *string `json:"deviceType,omitempty"` DeviceVendor *string `json:"deviceVendor,omitempty"` Hostname *string `json:"hostname,omitempty"` LastEventReceived *string `json:"lastEventReceived,omitempty"` // Represents an OMS workspace to which the solution is connected Workspace *ConnectedWorkspace `json:"workspace,omitempty"` }
CefSolutionProperties - The external security solution properties for CEF solutions
func (CefSolutionProperties) MarshalJSON ¶
func (c CefSolutionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CefSolutionProperties.
func (*CefSolutionProperties) UnmarshalJSON ¶
func (c *CefSolutionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CefSolutionProperties.
type CloudError ¶
type CloudError struct { // The error object. Error *CloudErrorBody `json:"error,omitempty"` }
CloudError - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type CloudErrorBody ¶
type CloudErrorBody struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; The error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; The error details. Details []*CloudErrorBody `json:"details,omitempty" azure:"ro"` // READ-ONLY; The error message. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The error target. Target *string `json:"target,omitempty" azure:"ro"` }
CloudErrorBody - The error detail.
func (CloudErrorBody) MarshalJSON ¶
func (c CloudErrorBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CloudErrorBody.
type CloudName ¶ added in v0.2.0
type CloudName string
CloudName - The multi cloud resource's cloud name.
func PossibleCloudNameValues ¶ added in v0.2.0
func PossibleCloudNameValues() []CloudName
PossibleCloudNameValues returns the possible values for the CloudName const type.
type CloudOffering ¶ added in v0.2.0
type CloudOffering struct { // REQUIRED; The type of the security offering. OfferingType *OfferingType `json:"offeringType,omitempty"` // READ-ONLY; The offering description. Description *string `json:"description,omitempty" azure:"ro"` }
CloudOffering - The security offering details
func (*CloudOffering) GetCloudOffering ¶ added in v0.2.0
func (c *CloudOffering) GetCloudOffering() *CloudOffering
GetCloudOffering implements the CloudOfferingClassification interface for type CloudOffering.
type CloudOfferingClassification ¶ added in v0.2.0
type CloudOfferingClassification interface { // GetCloudOffering returns the CloudOffering content of the underlying type. GetCloudOffering() *CloudOffering }
CloudOfferingClassification provides polymorphic access to related types. Call the interface's GetCloudOffering() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *CloudOffering, *CspmMonitorAwsOffering, *DefenderForContainersAwsOffering, *DefenderForServersAwsOffering, *InformationProtectionAwsOffering
type Compliance ¶
type Compliance struct { // Compliance data Properties *ComplianceProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Compliance of a scope
type ComplianceList ¶
type ComplianceList struct { // List of Compliance objects Value []*Compliance `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ComplianceList - List of Compliance objects response
func (ComplianceList) MarshalJSON ¶
func (c ComplianceList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ComplianceList.
type ComplianceProperties ¶
type ComplianceProperties struct { // READ-ONLY; An array of segment, which is the actually the compliance assessment. AssessmentResult []*ComplianceSegment `json:"assessmentResult,omitempty" azure:"ro"` // READ-ONLY; The timestamp when the Compliance calculation was conducted. AssessmentTimestampUTCDate *time.Time `json:"assessmentTimestampUtcDate,omitempty" azure:"ro"` // 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" azure:"ro"` }
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.
func (ComplianceProperties) MarshalJSON ¶
func (c ComplianceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ComplianceProperties.
func (*ComplianceProperties) UnmarshalJSON ¶
func (c *ComplianceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ComplianceProperties.
type ComplianceResult ¶
type ComplianceResult struct { // Compliance result data Properties *ComplianceResultProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
ComplianceResult - a compliance result
type ComplianceResultList ¶
type ComplianceResultList struct { // REQUIRED; List of compliance results Value []*ComplianceResult `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ComplianceResultList - List of compliance results response
func (ComplianceResultList) MarshalJSON ¶
func (c ComplianceResultList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ComplianceResultList.
type ComplianceResultProperties ¶
type ComplianceResultProperties struct { // READ-ONLY; The status of the resource regarding a single assessment ResourceStatus *ResourceStatus `json:"resourceStatus,omitempty" azure:"ro"` }
ComplianceResultProperties - Compliance result data
type ComplianceResultsClient ¶
type ComplianceResultsClient struct {
// contains filtered or unexported fields
}
ComplianceResultsClient contains the methods for the ComplianceResults group. Don't use this type directly, use NewComplianceResultsClient() instead.
func NewComplianceResultsClient ¶
func NewComplianceResultsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ComplianceResultsClient, error)
NewComplianceResultsClient creates a new instance of ComplianceResultsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ComplianceResultsClient) Get ¶
func (client *ComplianceResultsClient) Get(ctx context.Context, resourceID string, complianceResultName string, options *ComplianceResultsClientGetOptions) (ComplianceResultsClientGetResponse, error)
Get - Security Compliance Result If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. complianceResultName - name of the desired assessment compliance result options - ComplianceResultsClientGetOptions contains the optional parameters for the ComplianceResultsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/GetComplianceResults_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewComplianceResultsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-id>", "<compliance-result-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ComplianceResultsClient) List ¶
func (client *ComplianceResultsClient) List(scope string, options *ComplianceResultsClientListOptions) *runtime.Pager[ComplianceResultsClientListResponse]
List - Security compliance results in the subscription If the operation fails it returns an *azcore.ResponseError type. scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). options - ComplianceResultsClientListOptions contains the optional parameters for the ComplianceResultsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2017-08-01/examples/ComplianceResults/ListComplianceResults_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewComplianceResultsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<scope>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ComplianceResultsClientGetOptions ¶ added in v0.3.0
type ComplianceResultsClientGetOptions struct { }
ComplianceResultsClientGetOptions contains the optional parameters for the ComplianceResultsClient.Get method.
type ComplianceResultsClientGetResponse ¶ added in v0.3.0
type ComplianceResultsClientGetResponse struct {
ComplianceResult
}
ComplianceResultsClientGetResponse contains the response from method ComplianceResultsClient.Get.
type ComplianceResultsClientListOptions ¶ added in v0.3.0
type ComplianceResultsClientListOptions struct { }
ComplianceResultsClientListOptions contains the optional parameters for the ComplianceResultsClient.List method.
type ComplianceResultsClientListResponse ¶ added in v0.3.0
type ComplianceResultsClientListResponse struct {
ComplianceResultList
}
ComplianceResultsClientListResponse contains the response from method ComplianceResultsClient.List.
type ComplianceSegment ¶
type ComplianceSegment struct { // READ-ONLY; The size (%) of the segment. Percentage *float64 `json:"percentage,omitempty" azure:"ro"` // READ-ONLY; The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. SegmentType *string `json:"segmentType,omitempty" azure:"ro"` }
ComplianceSegment - A segment of a compliance assessment.
type CompliancesClient ¶
type CompliancesClient struct {
// contains filtered or unexported fields
}
CompliancesClient contains the methods for the Compliances group. Don't use this type directly, use NewCompliancesClient() instead.
func NewCompliancesClient ¶
func NewCompliancesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*CompliancesClient, error)
NewCompliancesClient creates a new instance of CompliancesClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*CompliancesClient) Get ¶
func (client *CompliancesClient) Get(ctx context.Context, scope string, complianceName string, options *CompliancesClientGetOptions) (CompliancesClientGetResponse, error)
Get - Details of a specific Compliance. If the operation fails it returns an *azcore.ResponseError type. 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 options - CompliancesClientGetOptions contains the optional parameters for the CompliancesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/Compliances/GetCompliance_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCompliancesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<scope>", "<compliance-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*CompliancesClient) List ¶
func (client *CompliancesClient) List(scope string, options *CompliancesClientListOptions) *runtime.Pager[CompliancesClientListResponse]
List - The Compliance scores of the specific management group. If the operation fails it returns an *azcore.ResponseError type. scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). options - CompliancesClientListOptions contains the optional parameters for the CompliancesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/Compliances/GetCompliances_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCompliancesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<scope>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type CompliancesClientGetOptions ¶ added in v0.3.0
type CompliancesClientGetOptions struct { }
CompliancesClientGetOptions contains the optional parameters for the CompliancesClient.Get method.
type CompliancesClientGetResponse ¶ added in v0.3.0
type CompliancesClientGetResponse struct {
Compliance
}
CompliancesClientGetResponse contains the response from method CompliancesClient.Get.
type CompliancesClientListOptions ¶ added in v0.3.0
type CompliancesClientListOptions struct { }
CompliancesClientListOptions contains the optional parameters for the CompliancesClient.List method.
type CompliancesClientListResponse ¶ added in v0.3.0
type CompliancesClientListResponse struct {
ComplianceList
}
CompliancesClientListResponse contains the response from method CompliancesClient.List.
type ConfigurationStatus ¶
type ConfigurationStatus string
ConfigurationStatus - The configuration status of the machines group or machine or rule
const ( ConfigurationStatusConfigured ConfigurationStatus = "Configured" ConfigurationStatusFailed ConfigurationStatus = "Failed" ConfigurationStatusInProgress ConfigurationStatus = "InProgress" ConfigurationStatusNoStatus ConfigurationStatus = "NoStatus" ConfigurationStatusNotConfigured ConfigurationStatus = "NotConfigured" )
func PossibleConfigurationStatusValues ¶
func PossibleConfigurationStatusValues() []ConfigurationStatus
PossibleConfigurationStatusValues returns the possible values for the ConfigurationStatus const type.
type ConnectableResource ¶
type ConnectableResource struct { // READ-ONLY; The Azure resource id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The list of Azure resources that the resource has inbound allowed connection from InboundConnectedResources []*ConnectedResource `json:"inboundConnectedResources,omitempty" azure:"ro"` // READ-ONLY; The list of Azure resources that the resource has outbound allowed connection to OutboundConnectedResources []*ConnectedResource `json:"outboundConnectedResources,omitempty" azure:"ro"` }
ConnectableResource - Describes the allowed inbound and outbound traffic of an Azure resource
func (ConnectableResource) MarshalJSON ¶
func (c ConnectableResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectableResource.
type ConnectedResource ¶
type ConnectedResource struct { // READ-ONLY; The Azure resource id of the connected resource ConnectedResourceID *string `json:"connectedResourceId,omitempty" azure:"ro"` // READ-ONLY; The allowed tcp ports TCPPorts *string `json:"tcpPorts,omitempty" azure:"ro"` // READ-ONLY; The allowed udp ports UDPPorts *string `json:"udpPorts,omitempty" azure:"ro"` }
ConnectedResource - Describes properties of a connected resource
type ConnectedWorkspace ¶
type ConnectedWorkspace struct { // Azure resource ID of the connected OMS workspace ID *string `json:"id,omitempty"` }
ConnectedWorkspace - Represents an OMS workspace to which the solution is connected
type ConnectionFromIPNotAllowed ¶
type ConnectionFromIPNotAllowed struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. AllowlistValues []*string `json:"allowlistValues,omitempty"` // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The value type of the items in the list. ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` }
ConnectionFromIPNotAllowed - Inbound connection from an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation.
func (*ConnectionFromIPNotAllowed) GetAllowlistCustomAlertRule ¶ added in v0.3.0
func (c *ConnectionFromIPNotAllowed) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type ConnectionFromIPNotAllowed.
func (*ConnectionFromIPNotAllowed) GetCustomAlertRule ¶ added in v0.3.0
func (c *ConnectionFromIPNotAllowed) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ConnectionFromIPNotAllowed.
func (*ConnectionFromIPNotAllowed) GetListCustomAlertRule ¶ added in v0.3.0
func (c *ConnectionFromIPNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule
GetListCustomAlertRule implements the ListCustomAlertRuleClassification interface for type ConnectionFromIPNotAllowed.
func (ConnectionFromIPNotAllowed) MarshalJSON ¶
func (c ConnectionFromIPNotAllowed) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionFromIPNotAllowed.
func (*ConnectionFromIPNotAllowed) UnmarshalJSON ¶ added in v0.3.0
func (c *ConnectionFromIPNotAllowed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionFromIPNotAllowed.
type ConnectionStrings ¶
type ConnectionStrings struct { // REQUIRED; Connection strings Value []*IngestionConnectionString `json:"value,omitempty"` }
ConnectionStrings - Connection string for ingesting security data and logs
func (ConnectionStrings) MarshalJSON ¶
func (c ConnectionStrings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionStrings.
type ConnectionToIPNotAllowed ¶
type ConnectionToIPNotAllowed struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. AllowlistValues []*string `json:"allowlistValues,omitempty"` // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The value type of the items in the list. ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` }
ConnectionToIPNotAllowed - Outbound connection to an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation.
func (*ConnectionToIPNotAllowed) GetAllowlistCustomAlertRule ¶ added in v0.3.0
func (c *ConnectionToIPNotAllowed) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type ConnectionToIPNotAllowed.
func (*ConnectionToIPNotAllowed) GetCustomAlertRule ¶ added in v0.3.0
func (c *ConnectionToIPNotAllowed) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ConnectionToIPNotAllowed.
func (*ConnectionToIPNotAllowed) GetListCustomAlertRule ¶ added in v0.3.0
func (c *ConnectionToIPNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule
GetListCustomAlertRule implements the ListCustomAlertRuleClassification interface for type ConnectionToIPNotAllowed.
func (ConnectionToIPNotAllowed) MarshalJSON ¶
func (c ConnectionToIPNotAllowed) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionToIPNotAllowed.
func (*ConnectionToIPNotAllowed) UnmarshalJSON ¶ added in v0.3.0
func (c *ConnectionToIPNotAllowed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionToIPNotAllowed.
type ConnectionType ¶
type ConnectionType string
const ( ConnectionTypeExternal ConnectionType = "External" ConnectionTypeInternal ConnectionType = "Internal" )
func PossibleConnectionTypeValues ¶
func PossibleConnectionTypeValues() []ConnectionType
PossibleConnectionTypeValues returns the possible values for the ConnectionType const type.
type Connector ¶ added in v0.3.0
type Connector struct { // Entity tag is used for comparing two or more entities from the same requested resource. Etag *string `json:"etag,omitempty"` // Kind of the resource Kind *string `json:"kind,omitempty"` // Location where the resource is stored Location *string `json:"location,omitempty"` // Security connector data Properties *ConnectorProperties `json:"properties,omitempty"` // A list of key value pairs that describe the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Connector - The security connector resource.
func (Connector) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements the json.Marshaller interface for type Connector.
type ConnectorProperties ¶ added in v0.3.0
type ConnectorProperties struct { // The multi cloud resource's cloud name. CloudName *CloudName `json:"cloudName,omitempty"` // The multi cloud resource identifier (account id in case of AWS connector). HierarchyIdentifier *string `json:"hierarchyIdentifier,omitempty"` // A collection of offerings for the security connector. Offerings []CloudOfferingClassification `json:"offerings,omitempty"` // The multi cloud account's organizational data OrganizationalData *ConnectorPropertiesOrganizationalData `json:"organizationalData,omitempty"` }
ConnectorProperties - A set of properties that defines the security connector configuration.
func (ConnectorProperties) MarshalJSON ¶ added in v0.3.0
func (c ConnectorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectorProperties.
func (*ConnectorProperties) UnmarshalJSON ¶ added in v0.3.0
func (c *ConnectorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConnectorProperties.
type ConnectorPropertiesOrganizationalData ¶ added in v0.3.0
type ConnectorPropertiesOrganizationalData struct { // If the multi cloud account is of membership type organization, list of accounts excluded from offering ExcludedAccountIDs []*string `json:"excludedAccountIds,omitempty"` // The multi cloud account's membership type in the organization OrganizationMembershipType *OrganizationMembershipType `json:"organizationMembershipType,omitempty"` // If the multi cloud account is not of membership type organization, this will be the ID of the account's parent ParentHierarchyID *string `json:"parentHierarchyId,omitempty"` // If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset StacksetName *string `json:"stacksetName,omitempty"` }
ConnectorPropertiesOrganizationalData - The multi cloud account's organizational data
func (ConnectorPropertiesOrganizationalData) MarshalJSON ¶ added in v0.3.0
func (c ConnectorPropertiesOrganizationalData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectorPropertiesOrganizationalData.
type ConnectorSetting ¶
type ConnectorSetting struct { // Connector setting data Properties *ConnectorSettingProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
ConnectorSetting - The connector setting
type ConnectorSettingList ¶
type ConnectorSettingList struct { // List of all the cloud account connector settings Value []*ConnectorSetting `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ConnectorSettingList - For a subscription, list of all cloud account connectors and their settings
func (ConnectorSettingList) MarshalJSON ¶
func (c ConnectorSettingList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectorSettingList.
type ConnectorSettingProperties ¶
type ConnectorSettingProperties struct { // Settings for authentication management, these settings are relevant only for the cloud connector. AuthenticationDetails AuthenticationDetailsPropertiesClassification `json:"authenticationDetails,omitempty"` // Settings for hybrid compute management. These settings are relevant only for Arc autoProvision (Hybrid Compute). HybridComputeSettings *HybridComputeSettingsProperties `json:"hybridComputeSettings,omitempty"` }
ConnectorSettingProperties - Describes properties of a connector setting
func (ConnectorSettingProperties) MarshalJSON ¶
func (c ConnectorSettingProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectorSettingProperties.
func (*ConnectorSettingProperties) UnmarshalJSON ¶
func (c *ConnectorSettingProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConnectorSettingProperties.
type ConnectorsClient ¶
type ConnectorsClient struct {
// contains filtered or unexported fields
}
ConnectorsClient contains the methods for the SecurityConnectors group. Don't use this type directly, use NewConnectorsClient() instead.
func NewConnectorsClient ¶
func NewConnectorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConnectorsClient, error)
NewConnectorsClient creates a new instance of ConnectorsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ConnectorsClient) CreateOrUpdate ¶
func (client *ConnectorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, securityConnectorName string, securityConnector Connector, options *ConnectorsClientCreateOrUpdateOptions) (ConnectorsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates a security connector. If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. securityConnectorName - The security connector name. securityConnector - The security connector resource options - ConnectorsClientCreateOrUpdateOptions contains the optional parameters for the ConnectorsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/PutSecurityConnector_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-group-name>", "<security-connector-name>", armsecurity.Connector{ Location: to.Ptr("<location>"), Etag: to.Ptr("<etag>"), Tags: map[string]*string{}, Properties: &armsecurity.ConnectorProperties{ CloudName: to.Ptr(armsecurity.CloudNameAWS), HierarchyIdentifier: to.Ptr("<hierarchy-identifier>"), Offerings: []armsecurity.CloudOfferingClassification{ &armsecurity.CspmMonitorAwsOffering{ OfferingType: to.Ptr(armsecurity.OfferingTypeCspmMonitorAws), NativeCloudConnection: &armsecurity.CspmMonitorAwsOfferingNativeCloudConnection{ CloudRoleArn: to.Ptr("<cloud-role-arn>"), }, }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ConnectorsClient) Delete ¶
func (client *ConnectorsClient) Delete(ctx context.Context, resourceGroupName string, securityConnectorName string, options *ConnectorsClientDeleteOptions) (ConnectorsClientDeleteResponse, error)
Delete - Deletes a security connector. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. securityConnectorName - The security connector name. options - ConnectorsClientDeleteOptions contains the optional parameters for the ConnectorsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<security-connector-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*ConnectorsClient) Get ¶
func (client *ConnectorsClient) Get(ctx context.Context, resourceGroupName string, securityConnectorName string, options *ConnectorsClientGetOptions) (ConnectorsClientGetResponse, error)
Get - Retrieves details of a specific security connector If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. securityConnectorName - The security connector name. options - ConnectorsClientGetOptions contains the optional parameters for the ConnectorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<security-connector-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ConnectorsClient) List ¶
func (client *ConnectorsClient) List(options *ConnectorsClientListOptions) *runtime.Pager[ConnectorsClientListResponse]
List - Lists all the security connectors in the specified subscription. Use the 'nextLink' property in the response to get the next page of security connectors for the specified subscription. If the operation fails it returns an *azcore.ResponseError type. options - ConnectorsClientListOptions contains the optional parameters for the ConnectorsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ConnectorsClient) ListByResourceGroup ¶ added in v0.3.0
func (client *ConnectorsClient) ListByResourceGroup(resourceGroupName string, options *ConnectorsClientListByResourceGroupOptions) *runtime.Pager[ConnectorsClientListByResourceGroupResponse]
ListByResourceGroup - Lists all the security connectors in the specified resource group. Use the 'nextLink' property in the response to get the next page of security connectors for the specified resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - ConnectorsClientListByResourceGroupOptions contains the optional parameters for the ConnectorsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ConnectorsClient) Update ¶ added in v0.3.0
func (client *ConnectorsClient) Update(ctx context.Context, resourceGroupName string, securityConnectorName string, securityConnector Connector, options *ConnectorsClientUpdateOptions) (ConnectorsClientUpdateResponse, error)
Update - Updates a security connector If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. securityConnectorName - The security connector name. securityConnector - The security connector resource options - ConnectorsClientUpdateOptions contains the optional parameters for the ConnectorsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewConnectorsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<resource-group-name>", "<security-connector-name>", armsecurity.Connector{ Location: to.Ptr("<location>"), Etag: to.Ptr("<etag>"), Tags: map[string]*string{}, Properties: &armsecurity.ConnectorProperties{ CloudName: to.Ptr(armsecurity.CloudNameAWS), HierarchyIdentifier: to.Ptr("<hierarchy-identifier>"), Offerings: []armsecurity.CloudOfferingClassification{ &armsecurity.CspmMonitorAwsOffering{ OfferingType: to.Ptr(armsecurity.OfferingTypeCspmMonitorAws), NativeCloudConnection: &armsecurity.CspmMonitorAwsOfferingNativeCloudConnection{ CloudRoleArn: to.Ptr("<cloud-role-arn>"), }, }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type ConnectorsClientCreateOrUpdateOptions ¶ added in v0.3.0
type ConnectorsClientCreateOrUpdateOptions struct { }
ConnectorsClientCreateOrUpdateOptions contains the optional parameters for the ConnectorsClient.CreateOrUpdate method.
type ConnectorsClientCreateOrUpdateResponse ¶ added in v0.3.0
type ConnectorsClientCreateOrUpdateResponse struct {
Connector
}
ConnectorsClientCreateOrUpdateResponse contains the response from method ConnectorsClient.CreateOrUpdate.
type ConnectorsClientDeleteOptions ¶ added in v0.3.0
type ConnectorsClientDeleteOptions struct { }
ConnectorsClientDeleteOptions contains the optional parameters for the ConnectorsClient.Delete method.
type ConnectorsClientDeleteResponse ¶ added in v0.3.0
type ConnectorsClientDeleteResponse struct { }
ConnectorsClientDeleteResponse contains the response from method ConnectorsClient.Delete.
type ConnectorsClientGetOptions ¶ added in v0.3.0
type ConnectorsClientGetOptions struct { }
ConnectorsClientGetOptions contains the optional parameters for the ConnectorsClient.Get method.
type ConnectorsClientGetResponse ¶ added in v0.3.0
type ConnectorsClientGetResponse struct {
Connector
}
ConnectorsClientGetResponse contains the response from method ConnectorsClient.Get.
type ConnectorsClientListByResourceGroupOptions ¶ added in v0.3.0
type ConnectorsClientListByResourceGroupOptions struct { }
ConnectorsClientListByResourceGroupOptions contains the optional parameters for the ConnectorsClient.ListByResourceGroup method.
type ConnectorsClientListByResourceGroupResponse ¶ added in v0.3.0
type ConnectorsClientListByResourceGroupResponse struct {
ConnectorsList
}
ConnectorsClientListByResourceGroupResponse contains the response from method ConnectorsClient.ListByResourceGroup.
type ConnectorsClientListOptions ¶ added in v0.3.0
type ConnectorsClientListOptions struct { }
ConnectorsClientListOptions contains the optional parameters for the ConnectorsClient.List method.
type ConnectorsClientListResponse ¶ added in v0.3.0
type ConnectorsClientListResponse struct {
ConnectorsList
}
ConnectorsClientListResponse contains the response from method ConnectorsClient.List.
type ConnectorsClientUpdateOptions ¶ added in v0.3.0
type ConnectorsClientUpdateOptions struct { }
ConnectorsClientUpdateOptions contains the optional parameters for the ConnectorsClient.Update method.
type ConnectorsClientUpdateResponse ¶ added in v0.3.0
type ConnectorsClientUpdateResponse struct {
Connector
}
ConnectorsClientUpdateResponse contains the response from method ConnectorsClient.Update.
type ConnectorsList ¶ added in v0.3.0
type ConnectorsList struct { // REQUIRED; The list of security connectors under the given scope. Value []*Connector `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ConnectorsList - List of security connectors response.
func (ConnectorsList) MarshalJSON ¶ added in v0.3.0
func (c ConnectorsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectorsList.
type Contact ¶ added in v0.3.0
type Contact struct { // Security contact data Properties *ContactProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Contact details for security issues
func (Contact) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements the json.Marshaller interface for type Contact.
type ContactList ¶ added in v0.3.0
type ContactList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of security contacts Value []*Contact `json:"value,omitempty" azure:"ro"` }
ContactList - List of security contacts response
func (ContactList) MarshalJSON ¶ added in v0.3.0
func (c ContactList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContactList.
type ContactProperties ¶ added in v0.3.0
type ContactProperties struct { // REQUIRED; Whether to send security alerts notifications to the security contact AlertNotifications *AlertNotifications `json:"alertNotifications,omitempty"` // REQUIRED; Whether to send security alerts notifications to subscription admins AlertsToAdmins *AlertsToAdmins `json:"alertsToAdmins,omitempty"` // REQUIRED; The email of this security contact Email *string `json:"email,omitempty"` // The phone number of this security contact Phone *string `json:"phone,omitempty"` }
ContactProperties - describes security contact properties
type ContactsClient ¶ added in v0.3.0
type ContactsClient struct {
// contains filtered or unexported fields
}
ContactsClient contains the methods for the SecurityContacts group. Don't use this type directly, use NewContactsClient() instead.
func NewContactsClient ¶ added in v0.3.0
func NewContactsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContactsClient, error)
NewContactsClient creates a new instance of ContactsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ContactsClient) Create ¶ added in v0.3.0
func (client *ContactsClient) Create(ctx context.Context, securityContactName string, securityContact Contact, options *ContactsClientCreateOptions) (ContactsClientCreateResponse, error)
Create - Security contact configurations for the subscription If the operation fails it returns an *azcore.ResponseError type. securityContactName - Name of the security contact object securityContact - Security contact object options - ContactsClientCreateOptions contains the optional parameters for the ContactsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/CreateSecurityContact_full_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewContactsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Create(ctx, "<security-contact-name>", armsecurity.Contact{ Name: to.Ptr("<name>"), Type: to.Ptr("<type>"), ID: to.Ptr("<id>"), Properties: &armsecurity.ContactProperties{ AlertNotifications: to.Ptr(armsecurity.AlertNotificationsOn), AlertsToAdmins: to.Ptr(armsecurity.AlertsToAdminsOn), Email: to.Ptr("<email>"), Phone: to.Ptr("<phone>"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContactsClient) Delete ¶ added in v0.3.0
func (client *ContactsClient) Delete(ctx context.Context, securityContactName string, options *ContactsClientDeleteOptions) (ContactsClientDeleteResponse, error)
Delete - Security contact configurations for the subscription If the operation fails it returns an *azcore.ResponseError type. securityContactName - Name of the security contact object options - ContactsClientDeleteOptions contains the optional parameters for the ContactsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/DeleteSecurityContact_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewContactsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<security-contact-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*ContactsClient) Get ¶ added in v0.3.0
func (client *ContactsClient) Get(ctx context.Context, securityContactName string, options *ContactsClientGetOptions) (ContactsClientGetResponse, error)
Get - Security contact configurations for the subscription If the operation fails it returns an *azcore.ResponseError type. securityContactName - Name of the security contact object options - ContactsClientGetOptions contains the optional parameters for the ContactsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/GetSecurityContact_full_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewContactsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<security-contact-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ContactsClient) List ¶ added in v0.3.0
func (client *ContactsClient) List(options *ContactsClientListOptions) *runtime.Pager[ContactsClientListResponse]
List - Security contact configurations for the subscription If the operation fails it returns an *azcore.ResponseError type. options - ContactsClientListOptions contains the optional parameters for the ContactsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/GetSecurityContactsSubscription_full_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewContactsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ContactsClient) Update ¶ added in v0.3.0
func (client *ContactsClient) Update(ctx context.Context, securityContactName string, securityContact Contact, options *ContactsClientUpdateOptions) (ContactsClientUpdateResponse, error)
Update - Security contact configurations for the subscription If the operation fails it returns an *azcore.ResponseError type. securityContactName - Name of the security contact object securityContact - Security contact object options - ContactsClientUpdateOptions contains the optional parameters for the ContactsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/SecurityContacts/UpdateSecurityContact_full_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewContactsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<security-contact-name>", armsecurity.Contact{ Name: to.Ptr("<name>"), Type: to.Ptr("<type>"), ID: to.Ptr("<id>"), Properties: &armsecurity.ContactProperties{ AlertNotifications: to.Ptr(armsecurity.AlertNotificationsOn), Phone: to.Ptr("<phone>"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type ContactsClientCreateOptions ¶ added in v0.3.0
type ContactsClientCreateOptions struct { }
ContactsClientCreateOptions contains the optional parameters for the ContactsClient.Create method.
type ContactsClientCreateResponse ¶ added in v0.3.0
type ContactsClientCreateResponse struct {
Contact
}
ContactsClientCreateResponse contains the response from method ContactsClient.Create.
type ContactsClientDeleteOptions ¶ added in v0.3.0
type ContactsClientDeleteOptions struct { }
ContactsClientDeleteOptions contains the optional parameters for the ContactsClient.Delete method.
type ContactsClientDeleteResponse ¶ added in v0.3.0
type ContactsClientDeleteResponse struct { }
ContactsClientDeleteResponse contains the response from method ContactsClient.Delete.
type ContactsClientGetOptions ¶ added in v0.3.0
type ContactsClientGetOptions struct { }
ContactsClientGetOptions contains the optional parameters for the ContactsClient.Get method.
type ContactsClientGetResponse ¶ added in v0.3.0
type ContactsClientGetResponse struct {
Contact
}
ContactsClientGetResponse contains the response from method ContactsClient.Get.
type ContactsClientListOptions ¶ added in v0.3.0
type ContactsClientListOptions struct { }
ContactsClientListOptions contains the optional parameters for the ContactsClient.List method.
type ContactsClientListResponse ¶ added in v0.3.0
type ContactsClientListResponse struct {
ContactList
}
ContactsClientListResponse contains the response from method ContactsClient.List.
type ContactsClientUpdateOptions ¶ added in v0.3.0
type ContactsClientUpdateOptions struct { }
ContactsClientUpdateOptions contains the optional parameters for the ContactsClient.Update method.
type ContactsClientUpdateResponse ¶ added in v0.3.0
type ContactsClientUpdateResponse struct {
Contact
}
ContactsClientUpdateResponse contains the response from method ContactsClient.Update.
type ContainerRegistryVulnerabilityProperties ¶
type ContainerRegistryVulnerabilityProperties struct { // REQUIRED; Sub-assessment resource type AssessedResourceType *AssessedResourceType `json:"assessedResourceType,omitempty"` // READ-ONLY; List of CVEs Cve []*CVE `json:"cve,omitempty" azure:"ro"` // READ-ONLY; Dictionary from cvss version to cvss details object Cvss map[string]*CVSS `json:"cvss,omitempty" azure:"ro"` // READ-ONLY; Digest of the vulnerable image ImageDigest *string `json:"imageDigest,omitempty" azure:"ro"` // READ-ONLY; Indicates whether a patch is available or not Patchable *bool `json:"patchable,omitempty" azure:"ro"` // READ-ONLY; Published time PublishedTime *time.Time `json:"publishedTime,omitempty" azure:"ro"` // READ-ONLY; Name of the repository which the vulnerable image belongs to RepositoryName *string `json:"repositoryName,omitempty" azure:"ro"` // READ-ONLY; Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability Type *string `json:"type,omitempty" azure:"ro"` // READ-ONLY VendorReferences []*VendorReference `json:"vendorReferences,omitempty" azure:"ro"` }
ContainerRegistryVulnerabilityProperties - Additional context fields for container registry Vulnerability assessment
func (*ContainerRegistryVulnerabilityProperties) GetAdditionalData ¶ added in v0.3.0
func (c *ContainerRegistryVulnerabilityProperties) GetAdditionalData() *AdditionalData
GetAdditionalData implements the AdditionalDataClassification interface for type ContainerRegistryVulnerabilityProperties.
func (ContainerRegistryVulnerabilityProperties) MarshalJSON ¶
func (c ContainerRegistryVulnerabilityProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ContainerRegistryVulnerabilityProperties.
func (*ContainerRegistryVulnerabilityProperties) UnmarshalJSON ¶
func (c *ContainerRegistryVulnerabilityProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ContainerRegistryVulnerabilityProperties.
type ControlType ¶
type ControlType string
ControlType - The type of security control (for example, BuiltIn)
const ( // ControlTypeBuiltIn - Azure Security Center managed assessments ControlTypeBuiltIn ControlType = "BuiltIn" // ControlTypeCustom - Non Azure Security Center managed assessments ControlTypeCustom ControlType = "Custom" )
func PossibleControlTypeValues ¶
func PossibleControlTypeValues() []ControlType
PossibleControlTypeValues returns the possible values for the ControlType const type.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type CspmMonitorAwsOffering ¶ added in v0.2.0
type CspmMonitorAwsOffering struct { // REQUIRED; The type of the security offering. OfferingType *OfferingType `json:"offeringType,omitempty"` // The native cloud connection configuration NativeCloudConnection *CspmMonitorAwsOfferingNativeCloudConnection `json:"nativeCloudConnection,omitempty"` // READ-ONLY; The offering description. Description *string `json:"description,omitempty" azure:"ro"` }
CspmMonitorAwsOffering - The CSPM monitoring for AWS offering configurations
func (*CspmMonitorAwsOffering) GetCloudOffering ¶ added in v0.3.0
func (c *CspmMonitorAwsOffering) GetCloudOffering() *CloudOffering
GetCloudOffering implements the CloudOfferingClassification interface for type CspmMonitorAwsOffering.
func (CspmMonitorAwsOffering) MarshalJSON ¶ added in v0.2.0
func (c CspmMonitorAwsOffering) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CspmMonitorAwsOffering.
func (*CspmMonitorAwsOffering) UnmarshalJSON ¶ added in v0.2.0
func (c *CspmMonitorAwsOffering) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CspmMonitorAwsOffering.
type CspmMonitorAwsOfferingNativeCloudConnection ¶ added in v0.2.0
type CspmMonitorAwsOfferingNativeCloudConnection struct { // The cloud role ARN in AWS for this feature CloudRoleArn *string `json:"cloudRoleArn,omitempty"` }
CspmMonitorAwsOfferingNativeCloudConnection - The native cloud connection configuration
type CustomAlertRule ¶
type CustomAlertRule struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
CustomAlertRule - A custom alert rule.
func (*CustomAlertRule) GetCustomAlertRule ¶
func (c *CustomAlertRule) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type CustomAlertRule.
type CustomAlertRuleClassification ¶
type CustomAlertRuleClassification interface { // GetCustomAlertRule returns the CustomAlertRule content of the underlying type. GetCustomAlertRule() *CustomAlertRule }
CustomAlertRuleClassification provides polymorphic access to related types. Call the interface's GetCustomAlertRule() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ActiveConnectionsNotInAllowedRange, *AllowlistCustomAlertRule, *AmqpC2DMessagesNotInAllowedRange, *AmqpC2DRejectedMessagesNotInAllowedRange, - *AmqpD2CMessagesNotInAllowedRange, *ConnectionFromIPNotAllowed, *ConnectionToIPNotAllowed, *CustomAlertRule, *DenylistCustomAlertRule, - *DirectMethodInvokesNotInAllowedRange, *FailedLocalLoginsNotInAllowedRange, *FileUploadsNotInAllowedRange, *HTTPC2DMessagesNotInAllowedRange, - *HTTPC2DRejectedMessagesNotInAllowedRange, *HTTPD2CMessagesNotInAllowedRange, *ListCustomAlertRule, *LocalUserNotAllowed, - *MqttC2DMessagesNotInAllowedRange, *MqttC2DRejectedMessagesNotInAllowedRange, *MqttD2CMessagesNotInAllowedRange, *ProcessNotAllowed, - *QueuePurgesNotInAllowedRange, *ThresholdCustomAlertRule, *TimeWindowCustomAlertRule, *TwinUpdatesNotInAllowedRange, - *UnauthorizedOperationsNotInAllowedRange
type CustomAssessmentAutomation ¶
type CustomAssessmentAutomation struct { // describes Custom Assessment Automation properties. Properties *CustomAssessmentAutomationProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
CustomAssessmentAutomation - Custom Assessment Automation
type CustomAssessmentAutomationProperties ¶
type CustomAssessmentAutomationProperties struct { // The assessment metadata key used when an assessment is generated for this assessment automation. AssessmentKey *string `json:"assessmentKey,omitempty"` // GZip encoded KQL query representing the assessment automation results required. CompressedQuery *string `json:"compressedQuery,omitempty"` // The description to relate to the assessments generated by this assessment automation. Description *string `json:"description,omitempty"` // The display name of the assessments generated by this assessment automation. DisplayName *string `json:"displayName,omitempty"` // The remediation description to relate to the assessments generated by this assessment automation. RemediationDescription *string `json:"remediationDescription,omitempty"` // The severity to relate to the assessments generated by this assessment automation. Severity *SeverityEnum `json:"severity,omitempty"` // Relevant cloud for the custom assessment automation. SupportedCloud *SupportedCloudEnum `json:"supportedCloud,omitempty"` }
CustomAssessmentAutomationProperties - describes the Custom Assessment Automation properties
type CustomAssessmentAutomationRequest ¶ added in v0.2.0
type CustomAssessmentAutomationRequest struct { // describes Custom Assessment Automation request properties. Properties *CustomAssessmentAutomationRequestProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
CustomAssessmentAutomationRequest - Custom Assessment Automation request
type CustomAssessmentAutomationRequestProperties ¶ added in v0.2.0
type CustomAssessmentAutomationRequestProperties struct { // Base 64 encoded KQL query representing the assessment automation results required. CompressedQuery *string `json:"compressedQuery,omitempty"` // The description to relate to the assessments generated by this assessment automation. Description *string `json:"description,omitempty"` // The display name of the assessments generated by this assessment automation. DisplayName *string `json:"displayName,omitempty"` // The remediation description to relate to the assessments generated by this assessment automation. RemediationDescription *string `json:"remediationDescription,omitempty"` // The severity to relate to the assessments generated by this assessment automation. Severity *SeverityEnum `json:"severity,omitempty"` // Relevant cloud for the custom assessment automation. SupportedCloud *SupportedCloudEnum `json:"supportedCloud,omitempty"` }
CustomAssessmentAutomationRequestProperties - describes the Custom Assessment Automation properties
type CustomAssessmentAutomationsClient ¶
type CustomAssessmentAutomationsClient struct {
// contains filtered or unexported fields
}
CustomAssessmentAutomationsClient contains the methods for the CustomAssessmentAutomations group. Don't use this type directly, use NewCustomAssessmentAutomationsClient() instead.
func NewCustomAssessmentAutomationsClient ¶
func NewCustomAssessmentAutomationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CustomAssessmentAutomationsClient, error)
NewCustomAssessmentAutomationsClient creates a new instance of CustomAssessmentAutomationsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*CustomAssessmentAutomationsClient) Create ¶
func (client *CustomAssessmentAutomationsClient) Create(ctx context.Context, resourceGroupName string, customAssessmentAutomationName string, customAssessmentAutomationBody CustomAssessmentAutomationRequest, options *CustomAssessmentAutomationsClientCreateOptions) (CustomAssessmentAutomationsClientCreateResponse, error)
Create - Creates or updates a custom assessment automation for the provided subscription. Please note that providing an existing custom assessment automation will replace the existing record. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. customAssessmentAutomationName - Name of the Custom Assessment Automation. customAssessmentAutomationBody - Custom Assessment Automation body options - CustomAssessmentAutomationsClientCreateOptions contains the optional parameters for the CustomAssessmentAutomationsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomAssessmentAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Create(ctx, "<resource-group-name>", "<custom-assessment-automation-name>", armsecurity.CustomAssessmentAutomationRequest{ Properties: &armsecurity.CustomAssessmentAutomationRequestProperties{ Description: to.Ptr("<description>"), CompressedQuery: to.Ptr("<compressed-query>"), DisplayName: to.Ptr("<display-name>"), RemediationDescription: to.Ptr("<remediation-description>"), Severity: to.Ptr(armsecurity.SeverityEnumMedium), SupportedCloud: to.Ptr(armsecurity.SupportedCloudEnumAWS), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*CustomAssessmentAutomationsClient) Delete ¶
func (client *CustomAssessmentAutomationsClient) Delete(ctx context.Context, resourceGroupName string, customAssessmentAutomationName string, options *CustomAssessmentAutomationsClientDeleteOptions) (CustomAssessmentAutomationsClientDeleteResponse, error)
Delete - Deletes a custom assessment automation by name for a provided subscription If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. customAssessmentAutomationName - Name of the Custom Assessment Automation. options - CustomAssessmentAutomationsClientDeleteOptions contains the optional parameters for the CustomAssessmentAutomationsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomAssessmentAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<custom-assessment-automation-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*CustomAssessmentAutomationsClient) Get ¶
func (client *CustomAssessmentAutomationsClient) Get(ctx context.Context, resourceGroupName string, customAssessmentAutomationName string, options *CustomAssessmentAutomationsClientGetOptions) (CustomAssessmentAutomationsClientGetResponse, error)
Get - Gets a single custom assessment automation by name for the provided subscription and resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. customAssessmentAutomationName - Name of the Custom Assessment Automation. options - CustomAssessmentAutomationsClientGetOptions contains the optional parameters for the CustomAssessmentAutomationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomAssessmentAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<custom-assessment-automation-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*CustomAssessmentAutomationsClient) ListByResourceGroup ¶
func (client *CustomAssessmentAutomationsClient) ListByResourceGroup(resourceGroupName string, options *CustomAssessmentAutomationsClientListByResourceGroupOptions) *runtime.Pager[CustomAssessmentAutomationsClientListByResourceGroupResponse]
ListByResourceGroup - List custom assessment automations by provided subscription and resource group If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - CustomAssessmentAutomationsClientListByResourceGroupOptions contains the optional parameters for the CustomAssessmentAutomationsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomAssessmentAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*CustomAssessmentAutomationsClient) ListBySubscription ¶
func (client *CustomAssessmentAutomationsClient) ListBySubscription(options *CustomAssessmentAutomationsClientListBySubscriptionOptions) *runtime.Pager[CustomAssessmentAutomationsClientListBySubscriptionResponse]
ListBySubscription - List custom assessment automations by provided subscription If the operation fails it returns an *azcore.ResponseError type. options - CustomAssessmentAutomationsClientListBySubscriptionOptions contains the optional parameters for the CustomAssessmentAutomationsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomAssessmentAutomationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySubscription(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type CustomAssessmentAutomationsClientCreateOptions ¶ added in v0.3.0
type CustomAssessmentAutomationsClientCreateOptions struct { }
CustomAssessmentAutomationsClientCreateOptions contains the optional parameters for the CustomAssessmentAutomationsClient.Create method.
type CustomAssessmentAutomationsClientCreateResponse ¶ added in v0.3.0
type CustomAssessmentAutomationsClientCreateResponse struct {
CustomAssessmentAutomation
}
CustomAssessmentAutomationsClientCreateResponse contains the response from method CustomAssessmentAutomationsClient.Create.
type CustomAssessmentAutomationsClientDeleteOptions ¶ added in v0.3.0
type CustomAssessmentAutomationsClientDeleteOptions struct { }
CustomAssessmentAutomationsClientDeleteOptions contains the optional parameters for the CustomAssessmentAutomationsClient.Delete method.
type CustomAssessmentAutomationsClientDeleteResponse ¶ added in v0.3.0
type CustomAssessmentAutomationsClientDeleteResponse struct { }
CustomAssessmentAutomationsClientDeleteResponse contains the response from method CustomAssessmentAutomationsClient.Delete.
type CustomAssessmentAutomationsClientGetOptions ¶ added in v0.3.0
type CustomAssessmentAutomationsClientGetOptions struct { }
CustomAssessmentAutomationsClientGetOptions contains the optional parameters for the CustomAssessmentAutomationsClient.Get method.
type CustomAssessmentAutomationsClientGetResponse ¶ added in v0.3.0
type CustomAssessmentAutomationsClientGetResponse struct {
CustomAssessmentAutomation
}
CustomAssessmentAutomationsClientGetResponse contains the response from method CustomAssessmentAutomationsClient.Get.
type CustomAssessmentAutomationsClientListByResourceGroupOptions ¶ added in v0.3.0
type CustomAssessmentAutomationsClientListByResourceGroupOptions struct { }
CustomAssessmentAutomationsClientListByResourceGroupOptions contains the optional parameters for the CustomAssessmentAutomationsClient.ListByResourceGroup method.
type CustomAssessmentAutomationsClientListByResourceGroupResponse ¶ added in v0.3.0
type CustomAssessmentAutomationsClientListByResourceGroupResponse struct {
CustomAssessmentAutomationsListResult
}
CustomAssessmentAutomationsClientListByResourceGroupResponse contains the response from method CustomAssessmentAutomationsClient.ListByResourceGroup.
type CustomAssessmentAutomationsClientListBySubscriptionOptions ¶ added in v0.3.0
type CustomAssessmentAutomationsClientListBySubscriptionOptions struct { }
CustomAssessmentAutomationsClientListBySubscriptionOptions contains the optional parameters for the CustomAssessmentAutomationsClient.ListBySubscription method.
type CustomAssessmentAutomationsClientListBySubscriptionResponse ¶ added in v0.3.0
type CustomAssessmentAutomationsClientListBySubscriptionResponse struct {
CustomAssessmentAutomationsListResult
}
CustomAssessmentAutomationsClientListBySubscriptionResponse contains the response from method CustomAssessmentAutomationsClient.ListBySubscription.
type CustomAssessmentAutomationsListResult ¶
type CustomAssessmentAutomationsListResult struct { // The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` // READ-ONLY; Collection of Custom Assessment Automations Value []*CustomAssessmentAutomation `json:"value,omitempty" azure:"ro"` }
CustomAssessmentAutomationsListResult - A list of Custom Assessment Automations
func (CustomAssessmentAutomationsListResult) MarshalJSON ¶
func (c CustomAssessmentAutomationsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomAssessmentAutomationsListResult.
type CustomEntityStoreAssignment ¶
type CustomEntityStoreAssignment struct { // describes custom entity store assignment properties. Properties *CustomEntityStoreAssignmentProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
CustomEntityStoreAssignment - Custom entity store assignment
type CustomEntityStoreAssignmentProperties ¶
type CustomEntityStoreAssignmentProperties struct { // The link to entity store database. EntityStoreDatabaseLink *string `json:"entityStoreDatabaseLink,omitempty"` // The principal assigned with entity store. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId] Principal *string `json:"principal,omitempty"` }
CustomEntityStoreAssignmentProperties - describes the custom entity store assignment properties
type CustomEntityStoreAssignmentRequest ¶
type CustomEntityStoreAssignmentRequest struct { // describes properties of custom entity store assignment request Properties *CustomEntityStoreAssignmentRequestProperties `json:"properties,omitempty"` }
CustomEntityStoreAssignmentRequest - describes the custom entity store assignment request
type CustomEntityStoreAssignmentRequestProperties ¶
type CustomEntityStoreAssignmentRequestProperties struct { // The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId] Principal *string `json:"principal,omitempty"` }
CustomEntityStoreAssignmentRequestProperties - describes properties of custom entity store assignment request
type CustomEntityStoreAssignmentsClient ¶
type CustomEntityStoreAssignmentsClient struct {
// contains filtered or unexported fields
}
CustomEntityStoreAssignmentsClient contains the methods for the CustomEntityStoreAssignments group. Don't use this type directly, use NewCustomEntityStoreAssignmentsClient() instead.
func NewCustomEntityStoreAssignmentsClient ¶
func NewCustomEntityStoreAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CustomEntityStoreAssignmentsClient, error)
NewCustomEntityStoreAssignmentsClient creates a new instance of CustomEntityStoreAssignmentsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*CustomEntityStoreAssignmentsClient) Create ¶
func (client *CustomEntityStoreAssignmentsClient) Create(ctx context.Context, resourceGroupName string, customEntityStoreAssignmentName string, customEntityStoreAssignmentRequestBody CustomEntityStoreAssignmentRequest, options *CustomEntityStoreAssignmentsClientCreateOptions) (CustomEntityStoreAssignmentsClientCreateResponse, error)
Create - Creates a custom entity store assignment for the provided subscription, if not already exists. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. customEntityStoreAssignmentName - Name of the custom entity store assignment. Generated name is GUID. customEntityStoreAssignmentRequestBody - Custom entity store assignment body options - CustomEntityStoreAssignmentsClientCreateOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomEntityStoreAssignmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Create(ctx, "<resource-group-name>", "<custom-entity-store-assignment-name>", armsecurity.CustomEntityStoreAssignmentRequest{ Properties: &armsecurity.CustomEntityStoreAssignmentRequestProperties{ Principal: to.Ptr("<principal>"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*CustomEntityStoreAssignmentsClient) Delete ¶
func (client *CustomEntityStoreAssignmentsClient) Delete(ctx context.Context, resourceGroupName string, customEntityStoreAssignmentName string, options *CustomEntityStoreAssignmentsClientDeleteOptions) (CustomEntityStoreAssignmentsClientDeleteResponse, error)
Delete - Delete a custom entity store assignment by name for a provided subscription If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. customEntityStoreAssignmentName - Name of the custom entity store assignment. Generated name is GUID. options - CustomEntityStoreAssignmentsClientDeleteOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomEntityStoreAssignmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<custom-entity-store-assignment-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*CustomEntityStoreAssignmentsClient) Get ¶
func (client *CustomEntityStoreAssignmentsClient) Get(ctx context.Context, resourceGroupName string, customEntityStoreAssignmentName string, options *CustomEntityStoreAssignmentsClientGetOptions) (CustomEntityStoreAssignmentsClientGetResponse, error)
Get - Gets a single custom entity store assignment by name for the provided subscription and resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. customEntityStoreAssignmentName - Name of the custom entity store assignment. Generated name is GUID. options - CustomEntityStoreAssignmentsClientGetOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomEntityStoreAssignmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<custom-entity-store-assignment-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*CustomEntityStoreAssignmentsClient) ListByResourceGroup ¶
func (client *CustomEntityStoreAssignmentsClient) ListByResourceGroup(resourceGroupName string, options *CustomEntityStoreAssignmentsClientListByResourceGroupOptions) *runtime.Pager[CustomEntityStoreAssignmentsClientListByResourceGroupResponse]
ListByResourceGroup - List custom entity store assignments by a provided subscription and resource group If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - CustomEntityStoreAssignmentsClientListByResourceGroupOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomEntityStoreAssignmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*CustomEntityStoreAssignmentsClient) ListBySubscription ¶
func (client *CustomEntityStoreAssignmentsClient) ListBySubscription(options *CustomEntityStoreAssignmentsClientListBySubscriptionOptions) *runtime.Pager[CustomEntityStoreAssignmentsClientListBySubscriptionResponse]
ListBySubscription - List custom entity store assignments by provided subscription If the operation fails it returns an *azcore.ResponseError type. options - CustomEntityStoreAssignmentsClientListBySubscriptionOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewCustomEntityStoreAssignmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySubscription(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type CustomEntityStoreAssignmentsClientCreateOptions ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientCreateOptions struct { }
CustomEntityStoreAssignmentsClientCreateOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.Create method.
type CustomEntityStoreAssignmentsClientCreateResponse ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientCreateResponse struct {
CustomEntityStoreAssignment
}
CustomEntityStoreAssignmentsClientCreateResponse contains the response from method CustomEntityStoreAssignmentsClient.Create.
type CustomEntityStoreAssignmentsClientDeleteOptions ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientDeleteOptions struct { }
CustomEntityStoreAssignmentsClientDeleteOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.Delete method.
type CustomEntityStoreAssignmentsClientDeleteResponse ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientDeleteResponse struct { }
CustomEntityStoreAssignmentsClientDeleteResponse contains the response from method CustomEntityStoreAssignmentsClient.Delete.
type CustomEntityStoreAssignmentsClientGetOptions ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientGetOptions struct { }
CustomEntityStoreAssignmentsClientGetOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.Get method.
type CustomEntityStoreAssignmentsClientGetResponse ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientGetResponse struct {
CustomEntityStoreAssignment
}
CustomEntityStoreAssignmentsClientGetResponse contains the response from method CustomEntityStoreAssignmentsClient.Get.
type CustomEntityStoreAssignmentsClientListByResourceGroupOptions ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientListByResourceGroupOptions struct { }
CustomEntityStoreAssignmentsClientListByResourceGroupOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.ListByResourceGroup method.
type CustomEntityStoreAssignmentsClientListByResourceGroupResponse ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientListByResourceGroupResponse struct {
CustomEntityStoreAssignmentsListResult
}
CustomEntityStoreAssignmentsClientListByResourceGroupResponse contains the response from method CustomEntityStoreAssignmentsClient.ListByResourceGroup.
type CustomEntityStoreAssignmentsClientListBySubscriptionOptions ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientListBySubscriptionOptions struct { }
CustomEntityStoreAssignmentsClientListBySubscriptionOptions contains the optional parameters for the CustomEntityStoreAssignmentsClient.ListBySubscription method.
type CustomEntityStoreAssignmentsClientListBySubscriptionResponse ¶ added in v0.3.0
type CustomEntityStoreAssignmentsClientListBySubscriptionResponse struct {
CustomEntityStoreAssignmentsListResult
}
CustomEntityStoreAssignmentsClientListBySubscriptionResponse contains the response from method CustomEntityStoreAssignmentsClient.ListBySubscription.
type CustomEntityStoreAssignmentsListResult ¶
type CustomEntityStoreAssignmentsListResult struct { // The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` // READ-ONLY; Collection of custom entity store assignments Value []*CustomEntityStoreAssignment `json:"value,omitempty" azure:"ro"` }
CustomEntityStoreAssignmentsListResult - A list of custom entity store assignments
func (CustomEntityStoreAssignmentsListResult) MarshalJSON ¶
func (c CustomEntityStoreAssignmentsListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomEntityStoreAssignmentsListResult.
type DataExportSettingProperties ¶
type DataExportSettingProperties struct { // REQUIRED; Is the data export setting enabled Enabled *bool `json:"enabled,omitempty"` }
DataExportSettingProperties - The data export setting properties
type DataExportSettings ¶
type DataExportSettings struct { // REQUIRED; the kind of the settings string Kind *SettingKind `json:"kind,omitempty"` // Data export setting data Properties *DataExportSettingProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
DataExportSettings - Represents a data export setting
func (*DataExportSettings) GetSetting ¶ added in v0.3.0
func (d *DataExportSettings) GetSetting() *Setting
GetSetting implements the SettingClassification interface for type DataExportSettings.
func (DataExportSettings) MarshalJSON ¶
func (d DataExportSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataExportSettings.
func (*DataExportSettings) UnmarshalJSON ¶
func (d *DataExportSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataExportSettings.
type DataSource ¶
type DataSource string
const ( // DataSourceTwinData - Devices twin data DataSourceTwinData DataSource = "TwinData" )
func PossibleDataSourceValues ¶
func PossibleDataSourceValues() []DataSource
PossibleDataSourceValues returns the possible values for the DataSource const type.
type DefenderForContainersAwsOffering ¶ added in v0.2.0
type DefenderForContainersAwsOffering struct { // REQUIRED; The type of the security offering. OfferingType *OfferingType `json:"offeringType,omitempty"` // The cloudwatch to kinesis connection configuration CloudWatchToKinesis *DefenderForContainersAwsOfferingCloudWatchToKinesis `json:"cloudWatchToKinesis,omitempty"` // The kinesis to s3 connection configuration KinesisToS3 *DefenderForContainersAwsOfferingKinesisToS3 `json:"kinesisToS3,omitempty"` // The kubernetes to scuba connection configuration KubernetesScubaReader *DefenderForContainersAwsOfferingKubernetesScubaReader `json:"kubernetesScubaReader,omitempty"` // The kubernetes service connection configuration KubernetesService *DefenderForContainersAwsOfferingKubernetesService `json:"kubernetesService,omitempty"` // READ-ONLY; The offering description. Description *string `json:"description,omitempty" azure:"ro"` }
DefenderForContainersAwsOffering - The Defender for Containers AWS offering configurations
func (*DefenderForContainersAwsOffering) GetCloudOffering ¶ added in v0.3.0
func (d *DefenderForContainersAwsOffering) GetCloudOffering() *CloudOffering
GetCloudOffering implements the CloudOfferingClassification interface for type DefenderForContainersAwsOffering.
func (DefenderForContainersAwsOffering) MarshalJSON ¶ added in v0.2.0
func (d DefenderForContainersAwsOffering) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefenderForContainersAwsOffering.
func (*DefenderForContainersAwsOffering) UnmarshalJSON ¶ added in v0.2.0
func (d *DefenderForContainersAwsOffering) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DefenderForContainersAwsOffering.
type DefenderForContainersAwsOfferingCloudWatchToKinesis ¶ added in v0.2.0
type DefenderForContainersAwsOfferingCloudWatchToKinesis struct { // The cloud role ARN in AWS for this feature CloudRoleArn *string `json:"cloudRoleArn,omitempty"` }
DefenderForContainersAwsOfferingCloudWatchToKinesis - The cloudwatch to kinesis connection configuration
type DefenderForContainersAwsOfferingKinesisToS3 ¶ added in v0.2.0
type DefenderForContainersAwsOfferingKinesisToS3 struct { // The cloud role ARN in AWS for this feature CloudRoleArn *string `json:"cloudRoleArn,omitempty"` }
DefenderForContainersAwsOfferingKinesisToS3 - The kinesis to s3 connection configuration
type DefenderForContainersAwsOfferingKubernetesScubaReader ¶ added in v0.2.0
type DefenderForContainersAwsOfferingKubernetesScubaReader struct { // The cloud role ARN in AWS for this feature CloudRoleArn *string `json:"cloudRoleArn,omitempty"` }
DefenderForContainersAwsOfferingKubernetesScubaReader - The kubernetes to scuba connection configuration
type DefenderForContainersAwsOfferingKubernetesService ¶ added in v0.2.0
type DefenderForContainersAwsOfferingKubernetesService struct { // The cloud role ARN in AWS for this feature CloudRoleArn *string `json:"cloudRoleArn,omitempty"` }
DefenderForContainersAwsOfferingKubernetesService - The kubernetes service connection configuration
type DefenderForServersAwsOffering ¶ added in v0.2.0
type DefenderForServersAwsOffering struct { // REQUIRED; The type of the security offering. OfferingType *OfferingType `json:"offeringType,omitempty"` // The ARC autoprovisioning configuration ArcAutoProvisioning *DefenderForServersAwsOfferingArcAutoProvisioning `json:"arcAutoProvisioning,omitempty"` // The Defender for servers connection configuration DefenderForServers *DefenderForServersAwsOfferingDefenderForServers `json:"defenderForServers,omitempty"` // READ-ONLY; The offering description. Description *string `json:"description,omitempty" azure:"ro"` }
DefenderForServersAwsOffering - The Defender for Servers AWS offering configurations
func (*DefenderForServersAwsOffering) GetCloudOffering ¶ added in v0.3.0
func (d *DefenderForServersAwsOffering) GetCloudOffering() *CloudOffering
GetCloudOffering implements the CloudOfferingClassification interface for type DefenderForServersAwsOffering.
func (DefenderForServersAwsOffering) MarshalJSON ¶ added in v0.2.0
func (d DefenderForServersAwsOffering) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DefenderForServersAwsOffering.
func (*DefenderForServersAwsOffering) UnmarshalJSON ¶ added in v0.2.0
func (d *DefenderForServersAwsOffering) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DefenderForServersAwsOffering.
type DefenderForServersAwsOfferingArcAutoProvisioning ¶ added in v0.2.0
type DefenderForServersAwsOfferingArcAutoProvisioning struct { // Is arc auto provisioning enabled Enabled *bool `json:"enabled,omitempty"` // Metadata of Service Principal secret for autoprovisioning ServicePrincipalSecretMetadata *DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata `json:"servicePrincipalSecretMetadata,omitempty"` }
DefenderForServersAwsOfferingArcAutoProvisioning - The ARC autoprovisioning configuration
type DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata ¶ added in v0.2.0
type DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata struct { // expiration date of service principal secret ExpiryDate *string `json:"expiryDate,omitempty"` // name of secret resource in parameter store ParameterNameInStore *string `json:"parameterNameInStore,omitempty"` // region of parameter store where secret is kept ParameterStoreRegion *string `json:"parameterStoreRegion,omitempty"` }
DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata - Metadata of Service Principal secret for autoprovisioning
type DefenderForServersAwsOfferingDefenderForServers ¶ added in v0.2.0
type DefenderForServersAwsOfferingDefenderForServers struct { // The cloud role ARN in AWS for this feature CloudRoleArn *string `json:"cloudRoleArn,omitempty"` }
DefenderForServersAwsOfferingDefenderForServers - The Defender for servers connection configuration
type DenylistCustomAlertRule ¶
type DenylistCustomAlertRule struct { // REQUIRED; The values to deny. The format of the values depends on the rule type. DenylistValues []*string `json:"denylistValues,omitempty"` // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The value type of the items in the list. ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` }
DenylistCustomAlertRule - A custom alert rule that checks if a value (depends on the custom alert type) is denied.
func (*DenylistCustomAlertRule) GetCustomAlertRule ¶ added in v0.3.0
func (d *DenylistCustomAlertRule) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type DenylistCustomAlertRule.
func (*DenylistCustomAlertRule) GetListCustomAlertRule ¶ added in v0.3.0
func (d *DenylistCustomAlertRule) GetListCustomAlertRule() *ListCustomAlertRule
GetListCustomAlertRule implements the ListCustomAlertRuleClassification interface for type DenylistCustomAlertRule.
func (DenylistCustomAlertRule) MarshalJSON ¶
func (d DenylistCustomAlertRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DenylistCustomAlertRule.
func (*DenylistCustomAlertRule) UnmarshalJSON ¶
func (d *DenylistCustomAlertRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DenylistCustomAlertRule.
type DeviceSecurityGroup ¶
type DeviceSecurityGroup struct { // Device Security group data Properties *DeviceSecurityGroupProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
DeviceSecurityGroup - The device security group resource
type DeviceSecurityGroupList ¶
type DeviceSecurityGroupList struct { // List of device security group objects Value []*DeviceSecurityGroup `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
DeviceSecurityGroupList - List of device security groups
func (DeviceSecurityGroupList) MarshalJSON ¶
func (d DeviceSecurityGroupList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeviceSecurityGroupList.
type DeviceSecurityGroupProperties ¶
type DeviceSecurityGroupProperties struct { // The allow-list custom alert rules. AllowlistRules []AllowlistCustomAlertRuleClassification `json:"allowlistRules,omitempty"` // The deny-list custom alert rules. DenylistRules []*DenylistCustomAlertRule `json:"denylistRules,omitempty"` // The list of custom alert threshold rules. ThresholdRules []ThresholdCustomAlertRuleClassification `json:"thresholdRules,omitempty"` // The list of custom alert time-window rules. TimeWindowRules []TimeWindowCustomAlertRuleClassification `json:"timeWindowRules,omitempty"` }
DeviceSecurityGroupProperties - describes properties of a security group.
func (DeviceSecurityGroupProperties) MarshalJSON ¶
func (d DeviceSecurityGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeviceSecurityGroupProperties.
func (*DeviceSecurityGroupProperties) UnmarshalJSON ¶
func (d *DeviceSecurityGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeviceSecurityGroupProperties.
type DeviceSecurityGroupsClient ¶
type DeviceSecurityGroupsClient struct {
// contains filtered or unexported fields
}
DeviceSecurityGroupsClient contains the methods for the DeviceSecurityGroups group. Don't use this type directly, use NewDeviceSecurityGroupsClient() instead.
func NewDeviceSecurityGroupsClient ¶
func NewDeviceSecurityGroupsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*DeviceSecurityGroupsClient, error)
NewDeviceSecurityGroupsClient creates a new instance of DeviceSecurityGroupsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DeviceSecurityGroupsClient) CreateOrUpdate ¶
func (client *DeviceSecurityGroupsClient) CreateOrUpdate(ctx context.Context, resourceID string, deviceSecurityGroupName string, deviceSecurityGroup DeviceSecurityGroup, options *DeviceSecurityGroupsClientCreateOrUpdateOptions) (DeviceSecurityGroupsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Use this method to creates or updates the device security group on a specified IoT Hub resource. If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. deviceSecurityGroupName - The name of the device security group. Note that the name of the device security group is case insensitive. deviceSecurityGroup - Security group object. options - DeviceSecurityGroupsClientCreateOrUpdateOptions contains the optional parameters for the DeviceSecurityGroupsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/PutDeviceSecurityGroups_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewDeviceSecurityGroupsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-id>", "<device-security-group-name>", armsecurity.DeviceSecurityGroup{ Properties: &armsecurity.DeviceSecurityGroupProperties{ TimeWindowRules: []armsecurity.TimeWindowCustomAlertRuleClassification{ &armsecurity.ActiveConnectionsNotInAllowedRange{ IsEnabled: to.Ptr(true), RuleType: to.Ptr("<rule-type>"), MaxThreshold: to.Ptr[int32](30), MinThreshold: to.Ptr[int32](0), TimeWindowSize: to.Ptr("<time-window-size>"), }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*DeviceSecurityGroupsClient) Delete ¶
func (client *DeviceSecurityGroupsClient) Delete(ctx context.Context, resourceID string, deviceSecurityGroupName string, options *DeviceSecurityGroupsClientDeleteOptions) (DeviceSecurityGroupsClientDeleteResponse, error)
Delete - User this method to deletes the device security group. If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. deviceSecurityGroupName - The name of the device security group. Note that the name of the device security group is case insensitive. options - DeviceSecurityGroupsClientDeleteOptions contains the optional parameters for the DeviceSecurityGroupsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/DeleteDeviceSecurityGroups_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewDeviceSecurityGroupsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-id>", "<device-security-group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*DeviceSecurityGroupsClient) Get ¶
func (client *DeviceSecurityGroupsClient) Get(ctx context.Context, resourceID string, deviceSecurityGroupName string, options *DeviceSecurityGroupsClientGetOptions) (DeviceSecurityGroupsClientGetResponse, error)
Get - Use this method to get the device security group for the specified IoT Hub resource. If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. deviceSecurityGroupName - The name of the device security group. Note that the name of the device security group is case insensitive. options - DeviceSecurityGroupsClientGetOptions contains the optional parameters for the DeviceSecurityGroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/GetDeviceSecurityGroups_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewDeviceSecurityGroupsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-id>", "<device-security-group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*DeviceSecurityGroupsClient) List ¶
func (client *DeviceSecurityGroupsClient) List(resourceID string, options *DeviceSecurityGroupsClientListOptions) *runtime.Pager[DeviceSecurityGroupsClientListResponse]
List - Use this method get the list of device security groups for the specified IoT Hub resource. If the operation fails it returns an *azcore.ResponseError type. resourceID - The identifier of the resource. options - DeviceSecurityGroupsClientListOptions contains the optional parameters for the DeviceSecurityGroupsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/DeviceSecurityGroups/ListDeviceSecurityGroups_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewDeviceSecurityGroupsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<resource-id>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type DeviceSecurityGroupsClientCreateOrUpdateOptions ¶ added in v0.3.0
type DeviceSecurityGroupsClientCreateOrUpdateOptions struct { }
DeviceSecurityGroupsClientCreateOrUpdateOptions contains the optional parameters for the DeviceSecurityGroupsClient.CreateOrUpdate method.
type DeviceSecurityGroupsClientCreateOrUpdateResponse ¶ added in v0.3.0
type DeviceSecurityGroupsClientCreateOrUpdateResponse struct {
DeviceSecurityGroup
}
DeviceSecurityGroupsClientCreateOrUpdateResponse contains the response from method DeviceSecurityGroupsClient.CreateOrUpdate.
type DeviceSecurityGroupsClientDeleteOptions ¶ added in v0.3.0
type DeviceSecurityGroupsClientDeleteOptions struct { }
DeviceSecurityGroupsClientDeleteOptions contains the optional parameters for the DeviceSecurityGroupsClient.Delete method.
type DeviceSecurityGroupsClientDeleteResponse ¶ added in v0.3.0
type DeviceSecurityGroupsClientDeleteResponse struct { }
DeviceSecurityGroupsClientDeleteResponse contains the response from method DeviceSecurityGroupsClient.Delete.
type DeviceSecurityGroupsClientGetOptions ¶ added in v0.3.0
type DeviceSecurityGroupsClientGetOptions struct { }
DeviceSecurityGroupsClientGetOptions contains the optional parameters for the DeviceSecurityGroupsClient.Get method.
type DeviceSecurityGroupsClientGetResponse ¶ added in v0.3.0
type DeviceSecurityGroupsClientGetResponse struct {
DeviceSecurityGroup
}
DeviceSecurityGroupsClientGetResponse contains the response from method DeviceSecurityGroupsClient.Get.
type DeviceSecurityGroupsClientListOptions ¶ added in v0.3.0
type DeviceSecurityGroupsClientListOptions struct { }
DeviceSecurityGroupsClientListOptions contains the optional parameters for the DeviceSecurityGroupsClient.List method.
type DeviceSecurityGroupsClientListResponse ¶ added in v0.3.0
type DeviceSecurityGroupsClientListResponse struct {
DeviceSecurityGroupList
}
DeviceSecurityGroupsClientListResponse contains the response from method DeviceSecurityGroupsClient.List.
type DirectMethodInvokesNotInAllowedRange ¶
type DirectMethodInvokesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
DirectMethodInvokesNotInAllowedRange - Number of direct method invokes is not in allowed range.
func (*DirectMethodInvokesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (d *DirectMethodInvokesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type DirectMethodInvokesNotInAllowedRange.
func (*DirectMethodInvokesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (d *DirectMethodInvokesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type DirectMethodInvokesNotInAllowedRange.
func (*DirectMethodInvokesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (d *DirectMethodInvokesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type DirectMethodInvokesNotInAllowedRange.
func (DirectMethodInvokesNotInAllowedRange) MarshalJSON ¶
func (d DirectMethodInvokesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DirectMethodInvokesNotInAllowedRange.
func (*DirectMethodInvokesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (d *DirectMethodInvokesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DirectMethodInvokesNotInAllowedRange.
type Direction ¶
type Direction string
Direction - The rule's direction
func PossibleDirectionValues ¶
func PossibleDirectionValues() []Direction
PossibleDirectionValues returns the possible values for the Direction const type.
type DiscoveredSecuritySolution ¶
type DiscoveredSecuritySolution struct { // REQUIRED Properties *DiscoveredSecuritySolutionProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
type DiscoveredSecuritySolutionList ¶
type DiscoveredSecuritySolutionList struct { Value []*DiscoveredSecuritySolution `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
func (DiscoveredSecuritySolutionList) MarshalJSON ¶
func (d DiscoveredSecuritySolutionList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DiscoveredSecuritySolutionList.
type DiscoveredSecuritySolutionProperties ¶
type DiscoveredSecuritySolutionProperties struct { // REQUIRED; The security solutions' image offer Offer *string `json:"offer,omitempty"` // REQUIRED; The security solutions' image publisher Publisher *string `json:"publisher,omitempty"` // REQUIRED; The security solutions' image sku SKU *string `json:"sku,omitempty"` // REQUIRED; The security family of the discovered solution SecurityFamily *SecurityFamily `json:"securityFamily,omitempty"` }
type DiscoveredSecuritySolutionsClient ¶
type DiscoveredSecuritySolutionsClient struct {
// contains filtered or unexported fields
}
DiscoveredSecuritySolutionsClient contains the methods for the DiscoveredSecuritySolutions group. Don't use this type directly, use NewDiscoveredSecuritySolutionsClient() instead.
func NewDiscoveredSecuritySolutionsClient ¶
func NewDiscoveredSecuritySolutionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DiscoveredSecuritySolutionsClient, error)
NewDiscoveredSecuritySolutionsClient creates a new instance of DiscoveredSecuritySolutionsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*DiscoveredSecuritySolutionsClient) Get ¶
func (client *DiscoveredSecuritySolutionsClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, discoveredSecuritySolutionName string, options *DiscoveredSecuritySolutionsClientGetOptions) (DiscoveredSecuritySolutionsClientGetResponse, error)
Get - Gets a specific discovered Security Solution. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations discoveredSecuritySolutionName - Name of a discovered security solution. options - DiscoveredSecuritySolutionsClientGetOptions contains the optional parameters for the DiscoveredSecuritySolutionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewDiscoveredSecuritySolutionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<asc-location>", "<discovered-security-solution-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*DiscoveredSecuritySolutionsClient) List ¶
func (client *DiscoveredSecuritySolutionsClient) List(options *DiscoveredSecuritySolutionsClientListOptions) *runtime.Pager[DiscoveredSecuritySolutionsClientListResponse]
List - Gets a list of discovered Security Solutions for the subscription. If the operation fails it returns an *azcore.ResponseError type. options - DiscoveredSecuritySolutionsClientListOptions contains the optional parameters for the DiscoveredSecuritySolutionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewDiscoveredSecuritySolutionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*DiscoveredSecuritySolutionsClient) ListByHomeRegion ¶
func (client *DiscoveredSecuritySolutionsClient) ListByHomeRegion(ascLocation string, options *DiscoveredSecuritySolutionsClientListByHomeRegionOptions) *runtime.Pager[DiscoveredSecuritySolutionsClientListByHomeRegionResponse]
ListByHomeRegion - Gets a list of discovered Security Solutions for the subscription and location. If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - DiscoveredSecuritySolutionsClientListByHomeRegionOptions contains the optional parameters for the DiscoveredSecuritySolutionsClient.ListByHomeRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewDiscoveredSecuritySolutionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByHomeRegion("<asc-location>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type DiscoveredSecuritySolutionsClientGetOptions ¶ added in v0.3.0
type DiscoveredSecuritySolutionsClientGetOptions struct { }
DiscoveredSecuritySolutionsClientGetOptions contains the optional parameters for the DiscoveredSecuritySolutionsClient.Get method.
type DiscoveredSecuritySolutionsClientGetResponse ¶ added in v0.3.0
type DiscoveredSecuritySolutionsClientGetResponse struct {
DiscoveredSecuritySolution
}
DiscoveredSecuritySolutionsClientGetResponse contains the response from method DiscoveredSecuritySolutionsClient.Get.
type DiscoveredSecuritySolutionsClientListByHomeRegionOptions ¶ added in v0.3.0
type DiscoveredSecuritySolutionsClientListByHomeRegionOptions struct { }
DiscoveredSecuritySolutionsClientListByHomeRegionOptions contains the optional parameters for the DiscoveredSecuritySolutionsClient.ListByHomeRegion method.
type DiscoveredSecuritySolutionsClientListByHomeRegionResponse ¶ added in v0.3.0
type DiscoveredSecuritySolutionsClientListByHomeRegionResponse struct {
DiscoveredSecuritySolutionList
}
DiscoveredSecuritySolutionsClientListByHomeRegionResponse contains the response from method DiscoveredSecuritySolutionsClient.ListByHomeRegion.
type DiscoveredSecuritySolutionsClientListOptions ¶ added in v0.3.0
type DiscoveredSecuritySolutionsClientListOptions struct { }
DiscoveredSecuritySolutionsClientListOptions contains the optional parameters for the DiscoveredSecuritySolutionsClient.List method.
type DiscoveredSecuritySolutionsClientListResponse ¶ added in v0.3.0
type DiscoveredSecuritySolutionsClientListResponse struct {
DiscoveredSecuritySolutionList
}
DiscoveredSecuritySolutionsClientListResponse contains the response from method DiscoveredSecuritySolutionsClient.List.
type ETag ¶
type ETag struct { // Entity tag is used for comparing two or more entities from the same requested resource. Etag *string `json:"etag,omitempty"` }
ETag - Entity tag is used for comparing two or more entities from the same requested resource.
type EffectiveNetworkSecurityGroups ¶
type EffectiveNetworkSecurityGroups struct { // The Azure resource ID of the network interface NetworkInterface *string `json:"networkInterface,omitempty"` // The Network Security Groups effective on the network interface NetworkSecurityGroups []*string `json:"networkSecurityGroups,omitempty"` }
EffectiveNetworkSecurityGroups - Describes the Network Security Groups effective on a network interface
func (EffectiveNetworkSecurityGroups) MarshalJSON ¶
func (e EffectiveNetworkSecurityGroups) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EffectiveNetworkSecurityGroups.
type EndOfSupportStatus ¶
type EndOfSupportStatus string
EndOfSupportStatus - End of support status.
const ( EndOfSupportStatusNoLongerSupported EndOfSupportStatus = "noLongerSupported" EndOfSupportStatusNone EndOfSupportStatus = "None" EndOfSupportStatusUpcomingNoLongerSupported EndOfSupportStatus = "upcomingNoLongerSupported" EndOfSupportStatusUpcomingVersionNoLongerSupported EndOfSupportStatus = "upcomingVersionNoLongerSupported" EndOfSupportStatusVersionNoLongerSupported EndOfSupportStatus = "versionNoLongerSupported" )
func PossibleEndOfSupportStatusValues ¶
func PossibleEndOfSupportStatusValues() []EndOfSupportStatus
PossibleEndOfSupportStatusValues returns the possible values for the EndOfSupportStatus const type.
type EnforcementMode ¶
type EnforcementMode string
EnforcementMode - The application control policy enforcement/protection mode of the machine group
const ( EnforcementModeAudit EnforcementMode = "Audit" EnforcementModeEnforce EnforcementMode = "Enforce" EnforcementModeNone EnforcementMode = "None" )
func PossibleEnforcementModeValues ¶
func PossibleEnforcementModeValues() []EnforcementMode
PossibleEnforcementModeValues returns the possible values for the EnforcementMode const type.
type EnforcementSupport ¶
type EnforcementSupport string
EnforcementSupport - The machine supportability of Enforce feature
const ( EnforcementSupportNotSupported EnforcementSupport = "NotSupported" EnforcementSupportSupported EnforcementSupport = "Supported" EnforcementSupportUnknown EnforcementSupport = "Unknown" )
func PossibleEnforcementSupportValues ¶
func PossibleEnforcementSupportValues() []EnforcementSupport
PossibleEnforcementSupportValues returns the possible values for the EnforcementSupport const type.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. Info interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` }
ErrorAdditionalInfo - The resource management error additional info.
type EventSource ¶
type EventSource string
EventSource - A valid event source type.
const ( EventSourceAlerts EventSource = "Alerts" EventSourceAssessments EventSource = "Assessments" EventSourceAssessmentsSnapshot EventSource = "AssessmentsSnapshot" EventSourceRegulatoryComplianceAssessment EventSource = "RegulatoryComplianceAssessment" EventSourceRegulatoryComplianceAssessmentSnapshot EventSource = "RegulatoryComplianceAssessmentSnapshot" EventSourceSecureScoreControls EventSource = "SecureScoreControls" EventSourceSecureScoreControlsSnapshot EventSource = "SecureScoreControlsSnapshot" EventSourceSecureScores EventSource = "SecureScores" EventSourceSecureScoresSnapshot EventSource = "SecureScoresSnapshot" EventSourceSubAssessments EventSource = "SubAssessments" EventSourceSubAssessmentsSnapshot EventSource = "SubAssessmentsSnapshot" )
func PossibleEventSourceValues ¶
func PossibleEventSourceValues() []EventSource
PossibleEventSourceValues returns the possible values for the EventSource const type.
type ExpandControlsEnum ¶
type ExpandControlsEnum string
const ( // ExpandControlsEnumDefinition - Add definition object for each control ExpandControlsEnumDefinition ExpandControlsEnum = "definition" )
func PossibleExpandControlsEnumValues ¶
func PossibleExpandControlsEnumValues() []ExpandControlsEnum
PossibleExpandControlsEnumValues returns the possible values for the ExpandControlsEnum const type.
type ExpandEnum ¶
type ExpandEnum string
const ( // ExpandEnumLinks - All links associated with an assessment ExpandEnumLinks ExpandEnum = "links" // ExpandEnumMetadata - Assessment metadata ExpandEnumMetadata ExpandEnum = "metadata" )
func PossibleExpandEnumValues ¶
func PossibleExpandEnumValues() []ExpandEnum
PossibleExpandEnumValues returns the possible values for the ExpandEnum const type.
type ExportData ¶
type ExportData string
const ( // ExportDataRawEvents - Agent raw events ExportDataRawEvents ExportData = "RawEvents" )
func PossibleExportDataValues ¶
func PossibleExportDataValues() []ExportData
PossibleExportDataValues returns the possible values for the ExportData const type.
type ExternalSecuritySolution ¶
type ExternalSecuritySolution struct { // The kind of the external solution Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
ExternalSecuritySolution - Represents a security solution external to Azure Security Center which sends information to an OMS workspace and whose data is displayed by Azure Security Center.
type ExternalSecuritySolutionKind ¶
type ExternalSecuritySolutionKind string
ExternalSecuritySolutionKind - The kind of the external solution
const ( ExternalSecuritySolutionKindAAD ExternalSecuritySolutionKind = "AAD" ExternalSecuritySolutionKindATA ExternalSecuritySolutionKind = "ATA" ExternalSecuritySolutionKindCEF ExternalSecuritySolutionKind = "CEF" )
func PossibleExternalSecuritySolutionKindValues ¶
func PossibleExternalSecuritySolutionKindValues() []ExternalSecuritySolutionKind
PossibleExternalSecuritySolutionKindValues returns the possible values for the ExternalSecuritySolutionKind const type.
type ExternalSecuritySolutionKindAutoGenerated ¶
type ExternalSecuritySolutionKindAutoGenerated struct { // The kind of the external solution Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"` }
ExternalSecuritySolutionKindAutoGenerated - Describes an Azure resource with kind
type ExternalSecuritySolutionList ¶
type ExternalSecuritySolutionList struct { Value []*ExternalSecuritySolution `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
func (ExternalSecuritySolutionList) MarshalJSON ¶
func (e ExternalSecuritySolutionList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExternalSecuritySolutionList.
type ExternalSecuritySolutionProperties ¶
type ExternalSecuritySolutionProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} DeviceType *string `json:"deviceType,omitempty"` DeviceVendor *string `json:"deviceVendor,omitempty"` // Represents an OMS workspace to which the solution is connected Workspace *ConnectedWorkspace `json:"workspace,omitempty"` }
ExternalSecuritySolutionProperties - The solution properties (correspond to the solution kind)
func (ExternalSecuritySolutionProperties) MarshalJSON ¶
func (e ExternalSecuritySolutionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExternalSecuritySolutionProperties.
func (*ExternalSecuritySolutionProperties) UnmarshalJSON ¶
func (e *ExternalSecuritySolutionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ExternalSecuritySolutionProperties.
type ExternalSecuritySolutionsClient ¶
type ExternalSecuritySolutionsClient struct {
// contains filtered or unexported fields
}
ExternalSecuritySolutionsClient contains the methods for the ExternalSecuritySolutions group. Don't use this type directly, use NewExternalSecuritySolutionsClient() instead.
func NewExternalSecuritySolutionsClient ¶
func NewExternalSecuritySolutionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExternalSecuritySolutionsClient, error)
NewExternalSecuritySolutionsClient creates a new instance of ExternalSecuritySolutionsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ExternalSecuritySolutionsClient) Get ¶
func (client *ExternalSecuritySolutionsClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, externalSecuritySolutionsName string, options *ExternalSecuritySolutionsClientGetOptions) (ExternalSecuritySolutionsClientGetResponse, error)
Get - Gets a specific external Security Solution. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations externalSecuritySolutionsName - Name of an external security solution. options - ExternalSecuritySolutionsClientGetOptions contains the optional parameters for the ExternalSecuritySolutionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewExternalSecuritySolutionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<asc-location>", "<external-security-solutions-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ExternalSecuritySolutionsClient) List ¶
func (client *ExternalSecuritySolutionsClient) List(options *ExternalSecuritySolutionsClientListOptions) *runtime.Pager[ExternalSecuritySolutionsClientListResponse]
List - Gets a list of external security solutions for the subscription. If the operation fails it returns an *azcore.ResponseError type. options - ExternalSecuritySolutionsClientListOptions contains the optional parameters for the ExternalSecuritySolutionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewExternalSecuritySolutionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ExternalSecuritySolutionsClient) ListByHomeRegion ¶
func (client *ExternalSecuritySolutionsClient) ListByHomeRegion(ascLocation string, options *ExternalSecuritySolutionsClientListByHomeRegionOptions) *runtime.Pager[ExternalSecuritySolutionsClientListByHomeRegionResponse]
ListByHomeRegion - Gets a list of external Security Solutions for the subscription and location. If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - ExternalSecuritySolutionsClientListByHomeRegionOptions contains the optional parameters for the ExternalSecuritySolutionsClient.ListByHomeRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewExternalSecuritySolutionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByHomeRegion("<asc-location>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ExternalSecuritySolutionsClientGetOptions ¶ added in v0.3.0
type ExternalSecuritySolutionsClientGetOptions struct { }
ExternalSecuritySolutionsClientGetOptions contains the optional parameters for the ExternalSecuritySolutionsClient.Get method.
type ExternalSecuritySolutionsClientGetResponse ¶ added in v0.3.0
type ExternalSecuritySolutionsClientGetResponse struct {
ExternalSecuritySolution
}
ExternalSecuritySolutionsClientGetResponse contains the response from method ExternalSecuritySolutionsClient.Get.
type ExternalSecuritySolutionsClientListByHomeRegionOptions ¶ added in v0.3.0
type ExternalSecuritySolutionsClientListByHomeRegionOptions struct { }
ExternalSecuritySolutionsClientListByHomeRegionOptions contains the optional parameters for the ExternalSecuritySolutionsClient.ListByHomeRegion method.
type ExternalSecuritySolutionsClientListByHomeRegionResponse ¶ added in v0.3.0
type ExternalSecuritySolutionsClientListByHomeRegionResponse struct {
ExternalSecuritySolutionList
}
ExternalSecuritySolutionsClientListByHomeRegionResponse contains the response from method ExternalSecuritySolutionsClient.ListByHomeRegion.
type ExternalSecuritySolutionsClientListOptions ¶ added in v0.3.0
type ExternalSecuritySolutionsClientListOptions struct { }
ExternalSecuritySolutionsClientListOptions contains the optional parameters for the ExternalSecuritySolutionsClient.List method.
type ExternalSecuritySolutionsClientListResponse ¶ added in v0.3.0
type ExternalSecuritySolutionsClientListResponse struct {
ExternalSecuritySolutionList
}
ExternalSecuritySolutionsClientListResponse contains the response from method ExternalSecuritySolutionsClient.List.
type FailedLocalLoginsNotInAllowedRange ¶
type FailedLocalLoginsNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
FailedLocalLoginsNotInAllowedRange - Number of failed local logins is not in allowed range.
func (*FailedLocalLoginsNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (f *FailedLocalLoginsNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type FailedLocalLoginsNotInAllowedRange.
func (*FailedLocalLoginsNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (f *FailedLocalLoginsNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type FailedLocalLoginsNotInAllowedRange.
func (*FailedLocalLoginsNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (f *FailedLocalLoginsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type FailedLocalLoginsNotInAllowedRange.
func (FailedLocalLoginsNotInAllowedRange) MarshalJSON ¶
func (f FailedLocalLoginsNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FailedLocalLoginsNotInAllowedRange.
func (*FailedLocalLoginsNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (f *FailedLocalLoginsNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FailedLocalLoginsNotInAllowedRange.
type FileType ¶
type FileType string
FileType - The type of the file (for Linux files - Executable is used)
func PossibleFileTypeValues ¶
func PossibleFileTypeValues() []FileType
PossibleFileTypeValues returns the possible values for the FileType const type.
type FileUploadsNotInAllowedRange ¶
type FileUploadsNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
FileUploadsNotInAllowedRange - Number of file uploads is not in allowed range.
func (*FileUploadsNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (f *FileUploadsNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type FileUploadsNotInAllowedRange.
func (*FileUploadsNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (f *FileUploadsNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type FileUploadsNotInAllowedRange.
func (*FileUploadsNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (f *FileUploadsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type FileUploadsNotInAllowedRange.
func (FileUploadsNotInAllowedRange) MarshalJSON ¶
func (f FileUploadsNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FileUploadsNotInAllowedRange.
func (*FileUploadsNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (f *FileUploadsNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FileUploadsNotInAllowedRange.
type GcpCredentialsDetailsProperties ¶
type GcpCredentialsDetailsProperties struct { // REQUIRED; Auth provider x509 certificate URL field of the API key (write only) AuthProviderX509CertURL *string `json:"authProviderX509CertUrl,omitempty"` // REQUIRED; Auth URI field of the API key (write only) AuthURI *string `json:"authUri,omitempty"` // REQUIRED; Connect to your cloud account, for AWS use either account credentials or role-based authentication. For GCP use // account organization credentials. AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; Client email field of the API key (write only) ClientEmail *string `json:"clientEmail,omitempty"` // REQUIRED; Client ID field of the API key (write only) ClientID *string `json:"clientId,omitempty"` // REQUIRED; Client x509 certificate URL field of the API key (write only) ClientX509CertURL *string `json:"clientX509CertUrl,omitempty"` // REQUIRED; The organization ID of the GCP cloud account OrganizationID *string `json:"organizationId,omitempty"` // REQUIRED; Private key field of the API key (write only) PrivateKey *string `json:"privateKey,omitempty"` // REQUIRED; Private key ID field of the API key (write only) PrivateKeyID *string `json:"privateKeyId,omitempty"` // REQUIRED; Project ID field of the API key (write only) ProjectID *string `json:"projectId,omitempty"` // REQUIRED; Token URI field of the API key (write only) TokenURI *string `json:"tokenUri,omitempty"` // REQUIRED; Type field of the API key (write only) Type *string `json:"type,omitempty"` // READ-ONLY; State of the multi-cloud connector AuthenticationProvisioningState *AuthenticationProvisioningState `json:"authenticationProvisioningState,omitempty" azure:"ro"` // READ-ONLY; The permissions detected in the cloud account. GrantedPermissions []*PermissionProperty `json:"grantedPermissions,omitempty" azure:"ro"` }
GcpCredentialsDetailsProperties - GCP cloud account connector based service to service credentials, the credentials are composed of the organization ID and a JSON API key (write only)
func (*GcpCredentialsDetailsProperties) GetAuthenticationDetailsProperties ¶ added in v0.3.0
func (g *GcpCredentialsDetailsProperties) GetAuthenticationDetailsProperties() *AuthenticationDetailsProperties
GetAuthenticationDetailsProperties implements the AuthenticationDetailsPropertiesClassification interface for type GcpCredentialsDetailsProperties.
func (GcpCredentialsDetailsProperties) MarshalJSON ¶
func (g GcpCredentialsDetailsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GcpCredentialsDetailsProperties.
func (*GcpCredentialsDetailsProperties) UnmarshalJSON ¶
func (g *GcpCredentialsDetailsProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GcpCredentialsDetailsProperties.
type HTTPC2DMessagesNotInAllowedRange ¶
type HTTPC2DMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
HTTPC2DMessagesNotInAllowedRange - Number of cloud to device messages (HTTP protocol) is not in allowed range.
func (*HTTPC2DMessagesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (h *HTTPC2DMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type HTTPC2DMessagesNotInAllowedRange.
func (*HTTPC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (h *HTTPC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type HTTPC2DMessagesNotInAllowedRange.
func (*HTTPC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (h *HTTPC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type HTTPC2DMessagesNotInAllowedRange.
func (HTTPC2DMessagesNotInAllowedRange) MarshalJSON ¶
func (h HTTPC2DMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HTTPC2DMessagesNotInAllowedRange.
func (*HTTPC2DMessagesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (h *HTTPC2DMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HTTPC2DMessagesNotInAllowedRange.
type HTTPC2DRejectedMessagesNotInAllowedRange ¶
type HTTPC2DRejectedMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
HTTPC2DRejectedMessagesNotInAllowedRange - Number of rejected cloud to device messages (HTTP protocol) is not in allowed range.
func (*HTTPC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (h *HTTPC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type HTTPC2DRejectedMessagesNotInAllowedRange.
func (*HTTPC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (h *HTTPC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type HTTPC2DRejectedMessagesNotInAllowedRange.
func (*HTTPC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (h *HTTPC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type HTTPC2DRejectedMessagesNotInAllowedRange.
func (HTTPC2DRejectedMessagesNotInAllowedRange) MarshalJSON ¶
func (h HTTPC2DRejectedMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HTTPC2DRejectedMessagesNotInAllowedRange.
func (*HTTPC2DRejectedMessagesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (h *HTTPC2DRejectedMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HTTPC2DRejectedMessagesNotInAllowedRange.
type HTTPD2CMessagesNotInAllowedRange ¶
type HTTPD2CMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
HTTPD2CMessagesNotInAllowedRange - Number of device to cloud messages (HTTP protocol) is not in allowed range.
func (*HTTPD2CMessagesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (h *HTTPD2CMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type HTTPD2CMessagesNotInAllowedRange.
func (*HTTPD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (h *HTTPD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type HTTPD2CMessagesNotInAllowedRange.
func (*HTTPD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (h *HTTPD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type HTTPD2CMessagesNotInAllowedRange.
func (HTTPD2CMessagesNotInAllowedRange) MarshalJSON ¶
func (h HTTPD2CMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HTTPD2CMessagesNotInAllowedRange.
func (*HTTPD2CMessagesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (h *HTTPD2CMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HTTPD2CMessagesNotInAllowedRange.
type HybridComputeProvisioningState ¶
type HybridComputeProvisioningState string
HybridComputeProvisioningState - State of the service principal and its secret
const ( // HybridComputeProvisioningStateExpired - the service principal details are expired HybridComputeProvisioningStateExpired HybridComputeProvisioningState = "Expired" // HybridComputeProvisioningStateInvalid - Invalid service principal details. HybridComputeProvisioningStateInvalid HybridComputeProvisioningState = "Invalid" // HybridComputeProvisioningStateValid - Valid service principal details. HybridComputeProvisioningStateValid HybridComputeProvisioningState = "Valid" )
func PossibleHybridComputeProvisioningStateValues ¶
func PossibleHybridComputeProvisioningStateValues() []HybridComputeProvisioningState
PossibleHybridComputeProvisioningStateValues returns the possible values for the HybridComputeProvisioningState const type.
type HybridComputeSettingsProperties ¶
type HybridComputeSettingsProperties struct { // REQUIRED; Whether or not to automatically install Azure Arc (hybrid compute) agents on machines AutoProvision *AutoProvision `json:"autoProvision,omitempty"` // For a non-Azure machine that is not connected directly to the internet, specify a proxy server that the non-Azure machine // can use. ProxyServer *ProxyServerProperties `json:"proxyServer,omitempty"` // The location where the metadata of machines will be stored Region *string `json:"region,omitempty"` // The name of the resource group where Arc (Hybrid Compute) connectors are connected. ResourceGroupName *string `json:"resourceGroupName,omitempty"` // An object to access resources that are secured by an Azure AD tenant. ServicePrincipal *ServicePrincipalProperties `json:"servicePrincipal,omitempty"` // READ-ONLY; State of the service principal and its secret HybridComputeProvisioningState *HybridComputeProvisioningState `json:"hybridComputeProvisioningState,omitempty" azure:"ro"` }
HybridComputeSettingsProperties - Settings for hybrid compute management
type ImplementationEffort ¶
type ImplementationEffort string
ImplementationEffort - The implementation effort required to remediate this assessment
const ( ImplementationEffortHigh ImplementationEffort = "High" ImplementationEffortLow ImplementationEffort = "Low" ImplementationEffortModerate ImplementationEffort = "Moderate" )
func PossibleImplementationEffortValues ¶
func PossibleImplementationEffortValues() []ImplementationEffort
PossibleImplementationEffortValues returns the possible values for the ImplementationEffort const type.
type InformationProtectionAwsOffering ¶ added in v0.4.0
type InformationProtectionAwsOffering struct { // REQUIRED; The type of the security offering. OfferingType *OfferingType `json:"offeringType,omitempty"` // The native cloud connection configuration InformationProtection *InformationProtectionAwsOfferingInformationProtection `json:"informationProtection,omitempty"` // READ-ONLY; The offering description. Description *string `json:"description,omitempty" azure:"ro"` }
InformationProtectionAwsOffering - The information protection for AWS offering configurations
func (*InformationProtectionAwsOffering) GetCloudOffering ¶ added in v0.4.0
func (i *InformationProtectionAwsOffering) GetCloudOffering() *CloudOffering
GetCloudOffering implements the CloudOfferingClassification interface for type InformationProtectionAwsOffering.
func (InformationProtectionAwsOffering) MarshalJSON ¶ added in v0.4.0
func (i InformationProtectionAwsOffering) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InformationProtectionAwsOffering.
func (*InformationProtectionAwsOffering) UnmarshalJSON ¶ added in v0.4.0
func (i *InformationProtectionAwsOffering) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InformationProtectionAwsOffering.
type InformationProtectionAwsOfferingInformationProtection ¶ added in v0.4.0
type InformationProtectionAwsOfferingInformationProtection struct { // The cloud role ARN in AWS for this feature CloudRoleArn *string `json:"cloudRoleArn,omitempty"` }
InformationProtectionAwsOfferingInformationProtection - The native cloud connection configuration
type InformationProtectionKeyword ¶
type InformationProtectionKeyword struct { // Indicates whether the keyword can be applied on numeric types or not. CanBeNumeric *bool `json:"canBeNumeric,omitempty"` // Indicates whether the keyword is custom or not. Custom *bool `json:"custom,omitempty"` // Indicates whether the keyword is excluded or not. Excluded *bool `json:"excluded,omitempty"` // The keyword pattern. Pattern *string `json:"pattern,omitempty"` }
InformationProtectionKeyword - The information type keyword.
type InformationProtectionPoliciesClient ¶
type InformationProtectionPoliciesClient struct {
// contains filtered or unexported fields
}
InformationProtectionPoliciesClient contains the methods for the InformationProtectionPolicies group. Don't use this type directly, use NewInformationProtectionPoliciesClient() instead.
func NewInformationProtectionPoliciesClient ¶
func NewInformationProtectionPoliciesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*InformationProtectionPoliciesClient, error)
NewInformationProtectionPoliciesClient creates a new instance of InformationProtectionPoliciesClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*InformationProtectionPoliciesClient) CreateOrUpdate ¶
func (client *InformationProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, scope string, informationProtectionPolicyName InformationProtectionPolicyName, informationProtectionPolicy InformationProtectionPolicy, options *InformationProtectionPoliciesClientCreateOrUpdateOptions) (InformationProtectionPoliciesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Details of the information protection policy. If the operation fails it returns an *azcore.ResponseError type. scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). informationProtectionPolicyName - Name of the information protection policy. informationProtectionPolicy - Information protection policy. options - InformationProtectionPoliciesClientCreateOrUpdateOptions contains the optional parameters for the InformationProtectionPoliciesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/InformationProtectionPolicies/CreateOrUpdateInformationProtectionPolicy_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewInformationProtectionPoliciesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<scope>", armsecurity.InformationProtectionPolicyNameCustom, armsecurity.InformationProtectionPolicy{ Properties: &armsecurity.InformationProtectionPolicyProperties{ InformationTypes: map[string]*armsecurity.InformationType{ "3bf35491-99b8-41f2-86d5-c1200a7df658": { Custom: to.Ptr(true), DisplayName: to.Ptr("<display-name>"), Enabled: to.Ptr(true), Keywords: []*armsecurity.InformationProtectionKeyword{ { CanBeNumeric: to.Ptr(true), Custom: to.Ptr(true), Pattern: to.Ptr("<pattern>"), }}, Order: to.Ptr[int32](1400), RecommendedLabelID: to.Ptr("<recommended-label-id>"), }, "7fb9419d-2473-4ad8-8e11-b25cc8cf6a07": { Custom: to.Ptr(false), DisplayName: to.Ptr("<display-name>"), Enabled: to.Ptr(true), Keywords: []*armsecurity.InformationProtectionKeyword{ { CanBeNumeric: to.Ptr(false), Custom: to.Ptr(true), Pattern: to.Ptr("<pattern>"), }}, Order: to.Ptr[int32](100), RecommendedLabelID: to.Ptr("<recommended-label-id>"), }, }, Labels: map[string]*armsecurity.SensitivityLabel{ "1345da73-bc5a-4a8f-b7dd-3820eb713da8": { DisplayName: to.Ptr("<display-name>"), Enabled: to.Ptr(true), Order: to.Ptr[int32](100), }, "575739d2-3d53-4df0-9042-4c7772d5c7b1": { DisplayName: to.Ptr("<display-name>"), Enabled: to.Ptr(true), Order: to.Ptr[int32](300), }, "7aa516c7-5a53-4857-bc6e-6808c6acd542": { DisplayName: to.Ptr("<display-name>"), Enabled: to.Ptr(true), Order: to.Ptr[int32](200), }, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*InformationProtectionPoliciesClient) Get ¶
func (client *InformationProtectionPoliciesClient) Get(ctx context.Context, scope string, informationProtectionPolicyName InformationProtectionPolicyName, options *InformationProtectionPoliciesClientGetOptions) (InformationProtectionPoliciesClientGetResponse, error)
Get - Details of the information protection policy. If the operation fails it returns an *azcore.ResponseError type. scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). informationProtectionPolicyName - Name of the information protection policy. options - InformationProtectionPoliciesClientGetOptions contains the optional parameters for the InformationProtectionPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/InformationProtectionPolicies/GetCustomInformationProtectionPolicy_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewInformationProtectionPoliciesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<scope>", armsecurity.InformationProtectionPolicyNameCustom, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*InformationProtectionPoliciesClient) List ¶
func (client *InformationProtectionPoliciesClient) List(scope string, options *InformationProtectionPoliciesClientListOptions) *runtime.Pager[InformationProtectionPoliciesClientListResponse]
List - Information protection policies of a specific management group. If the operation fails it returns an *azcore.ResponseError type. scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). options - InformationProtectionPoliciesClientListOptions contains the optional parameters for the InformationProtectionPoliciesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/InformationProtectionPolicies/ListInformationProtectionPolicies_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewInformationProtectionPoliciesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<scope>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type InformationProtectionPoliciesClientCreateOrUpdateOptions ¶ added in v0.3.0
type InformationProtectionPoliciesClientCreateOrUpdateOptions struct { }
InformationProtectionPoliciesClientCreateOrUpdateOptions contains the optional parameters for the InformationProtectionPoliciesClient.CreateOrUpdate method.
type InformationProtectionPoliciesClientCreateOrUpdateResponse ¶ added in v0.3.0
type InformationProtectionPoliciesClientCreateOrUpdateResponse struct {
InformationProtectionPolicy
}
InformationProtectionPoliciesClientCreateOrUpdateResponse contains the response from method InformationProtectionPoliciesClient.CreateOrUpdate.
type InformationProtectionPoliciesClientGetOptions ¶ added in v0.3.0
type InformationProtectionPoliciesClientGetOptions struct { }
InformationProtectionPoliciesClientGetOptions contains the optional parameters for the InformationProtectionPoliciesClient.Get method.
type InformationProtectionPoliciesClientGetResponse ¶ added in v0.3.0
type InformationProtectionPoliciesClientGetResponse struct {
InformationProtectionPolicy
}
InformationProtectionPoliciesClientGetResponse contains the response from method InformationProtectionPoliciesClient.Get.
type InformationProtectionPoliciesClientListOptions ¶ added in v0.3.0
type InformationProtectionPoliciesClientListOptions struct { }
InformationProtectionPoliciesClientListOptions contains the optional parameters for the InformationProtectionPoliciesClient.List method.
type InformationProtectionPoliciesClientListResponse ¶ added in v0.3.0
type InformationProtectionPoliciesClientListResponse struct {
InformationProtectionPolicyList
}
InformationProtectionPoliciesClientListResponse contains the response from method InformationProtectionPoliciesClient.List.
type InformationProtectionPolicy ¶
type InformationProtectionPolicy struct { // Information protection policy data Properties *InformationProtectionPolicyProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
InformationProtectionPolicy - Information protection policy.
type InformationProtectionPolicyList ¶
type InformationProtectionPolicyList struct { // List of information protection policies. Value []*InformationProtectionPolicy `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
InformationProtectionPolicyList - Information protection policies response.
func (InformationProtectionPolicyList) MarshalJSON ¶
func (i InformationProtectionPolicyList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InformationProtectionPolicyList.
type InformationProtectionPolicyName ¶ added in v0.4.0
type InformationProtectionPolicyName string
const ( InformationProtectionPolicyNameCustom InformationProtectionPolicyName = "custom" InformationProtectionPolicyNameEffective InformationProtectionPolicyName = "effective" )
func PossibleInformationProtectionPolicyNameValues ¶ added in v0.4.0
func PossibleInformationProtectionPolicyNameValues() []InformationProtectionPolicyName
PossibleInformationProtectionPolicyNameValues returns the possible values for the InformationProtectionPolicyName const type.
type InformationProtectionPolicyProperties ¶
type InformationProtectionPolicyProperties struct { // The sensitivity information types. InformationTypes map[string]*InformationType `json:"informationTypes,omitempty"` // Dictionary of sensitivity labels. Labels map[string]*SensitivityLabel `json:"labels,omitempty"` // READ-ONLY; Describes the last UTC time the policy was modified. LastModifiedUTC *time.Time `json:"lastModifiedUtc,omitempty" azure:"ro"` // READ-ONLY; Describes the version of the policy. Version *string `json:"version,omitempty" azure:"ro"` }
InformationProtectionPolicyProperties - describes properties of an information protection policy.
func (InformationProtectionPolicyProperties) MarshalJSON ¶
func (i InformationProtectionPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InformationProtectionPolicyProperties.
func (*InformationProtectionPolicyProperties) UnmarshalJSON ¶
func (i *InformationProtectionPolicyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InformationProtectionPolicyProperties.
type InformationType ¶
type InformationType struct { // Indicates whether the information type is custom or not. Custom *bool `json:"custom,omitempty"` // The description of the information type. Description *string `json:"description,omitempty"` // The name of the information type. DisplayName *string `json:"displayName,omitempty"` // Indicates whether the information type is enabled or not. Enabled *bool `json:"enabled,omitempty"` // The information type keywords. Keywords []*InformationProtectionKeyword `json:"keywords,omitempty"` // The order of the information type. Order *int32 `json:"order,omitempty"` // The recommended label id to be associated with this information type. RecommendedLabelID *string `json:"recommendedLabelId,omitempty"` }
InformationType - The information type.
func (InformationType) MarshalJSON ¶
func (i InformationType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InformationType.
type IngestionConnectionString ¶
type IngestionConnectionString struct { // READ-ONLY; The region where ingested logs and data resides Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Connection string value Value *string `json:"value,omitempty" azure:"ro"` }
IngestionConnectionString - Connection string for ingesting security data and logs
type IngestionSetting ¶
type IngestionSetting struct { // Ingestion setting data Properties interface{} `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
IngestionSetting - Configures how to correlate scan data and logs with resources associated with the subscription.
type IngestionSettingList ¶
type IngestionSettingList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of ingestion settings Value []*IngestionSetting `json:"value,omitempty" azure:"ro"` }
IngestionSettingList - List of ingestion settings
func (IngestionSettingList) MarshalJSON ¶
func (i IngestionSettingList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IngestionSettingList.
type IngestionSettingToken ¶
type IngestionSettingToken struct { // READ-ONLY; The token is used for correlating security data and logs with the resources in the subscription. Token *string `json:"token,omitempty" azure:"ro"` }
IngestionSettingToken - Configures how to correlate scan data and logs with resources associated with the subscription.
type IngestionSettingsClient ¶
type IngestionSettingsClient struct {
// contains filtered or unexported fields
}
IngestionSettingsClient contains the methods for the IngestionSettings group. Don't use this type directly, use NewIngestionSettingsClient() instead.
func NewIngestionSettingsClient ¶
func NewIngestionSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IngestionSettingsClient, error)
NewIngestionSettingsClient creates a new instance of IngestionSettingsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*IngestionSettingsClient) Create ¶
func (client *IngestionSettingsClient) Create(ctx context.Context, ingestionSettingName string, ingestionSetting IngestionSetting, options *IngestionSettingsClientCreateOptions) (IngestionSettingsClientCreateResponse, error)
Create - Create setting for ingesting security data and logs to correlate with resources associated with the subscription. If the operation fails it returns an *azcore.ResponseError type. ingestionSettingName - Name of the ingestion setting ingestionSetting - Ingestion setting object options - IngestionSettingsClientCreateOptions contains the optional parameters for the IngestionSettingsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/CreateIngestionSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIngestionSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Create(ctx, "<ingestion-setting-name>", armsecurity.IngestionSetting{}, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*IngestionSettingsClient) Delete ¶
func (client *IngestionSettingsClient) Delete(ctx context.Context, ingestionSettingName string, options *IngestionSettingsClientDeleteOptions) (IngestionSettingsClientDeleteResponse, error)
Delete - Deletes the ingestion settings for this subscription. If the operation fails it returns an *azcore.ResponseError type. ingestionSettingName - Name of the ingestion setting options - IngestionSettingsClientDeleteOptions contains the optional parameters for the IngestionSettingsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/DeleteIngestionSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIngestionSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<ingestion-setting-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*IngestionSettingsClient) Get ¶
func (client *IngestionSettingsClient) Get(ctx context.Context, ingestionSettingName string, options *IngestionSettingsClientGetOptions) (IngestionSettingsClientGetResponse, error)
Get - Settings for ingesting security data and logs to correlate with resources associated with the subscription. If the operation fails it returns an *azcore.ResponseError type. ingestionSettingName - Name of the ingestion setting options - IngestionSettingsClientGetOptions contains the optional parameters for the IngestionSettingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIngestionSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<ingestion-setting-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*IngestionSettingsClient) List ¶
func (client *IngestionSettingsClient) List(options *IngestionSettingsClientListOptions) *runtime.Pager[IngestionSettingsClientListResponse]
List - Settings for ingesting security data and logs to correlate with resources associated with the subscription. If the operation fails it returns an *azcore.ResponseError type. options - IngestionSettingsClientListOptions contains the optional parameters for the IngestionSettingsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSettings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIngestionSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*IngestionSettingsClient) ListConnectionStrings ¶
func (client *IngestionSettingsClient) ListConnectionStrings(ctx context.Context, ingestionSettingName string, options *IngestionSettingsClientListConnectionStringsOptions) (IngestionSettingsClientListConnectionStringsResponse, error)
ListConnectionStrings - Connection strings for ingesting security scan logs and data. If the operation fails it returns an *azcore.ResponseError type. ingestionSettingName - Name of the ingestion setting options - IngestionSettingsClientListConnectionStringsOptions contains the optional parameters for the IngestionSettingsClient.ListConnectionStrings method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListConnectionStrings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIngestionSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.ListConnectionStrings(ctx, "<ingestion-setting-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*IngestionSettingsClient) ListTokens ¶
func (client *IngestionSettingsClient) ListTokens(ctx context.Context, ingestionSettingName string, options *IngestionSettingsClientListTokensOptions) (IngestionSettingsClientListTokensResponse, error)
ListTokens - Returns the token that is used for correlating ingested telemetry with the resources in the subscription. If the operation fails it returns an *azcore.ResponseError type. ingestionSettingName - Name of the ingestion setting options - IngestionSettingsClientListTokensOptions contains the optional parameters for the IngestionSettingsClient.ListTokens method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListTokensIngestionSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIngestionSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.ListTokens(ctx, "<ingestion-setting-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type IngestionSettingsClientCreateOptions ¶ added in v0.3.0
type IngestionSettingsClientCreateOptions struct { }
IngestionSettingsClientCreateOptions contains the optional parameters for the IngestionSettingsClient.Create method.
type IngestionSettingsClientCreateResponse ¶ added in v0.3.0
type IngestionSettingsClientCreateResponse struct {
IngestionSetting
}
IngestionSettingsClientCreateResponse contains the response from method IngestionSettingsClient.Create.
type IngestionSettingsClientDeleteOptions ¶ added in v0.3.0
type IngestionSettingsClientDeleteOptions struct { }
IngestionSettingsClientDeleteOptions contains the optional parameters for the IngestionSettingsClient.Delete method.
type IngestionSettingsClientDeleteResponse ¶ added in v0.3.0
type IngestionSettingsClientDeleteResponse struct { }
IngestionSettingsClientDeleteResponse contains the response from method IngestionSettingsClient.Delete.
type IngestionSettingsClientGetOptions ¶ added in v0.3.0
type IngestionSettingsClientGetOptions struct { }
IngestionSettingsClientGetOptions contains the optional parameters for the IngestionSettingsClient.Get method.
type IngestionSettingsClientGetResponse ¶ added in v0.3.0
type IngestionSettingsClientGetResponse struct {
IngestionSetting
}
IngestionSettingsClientGetResponse contains the response from method IngestionSettingsClient.Get.
type IngestionSettingsClientListConnectionStringsOptions ¶ added in v0.3.0
type IngestionSettingsClientListConnectionStringsOptions struct { }
IngestionSettingsClientListConnectionStringsOptions contains the optional parameters for the IngestionSettingsClient.ListConnectionStrings method.
type IngestionSettingsClientListConnectionStringsResponse ¶ added in v0.3.0
type IngestionSettingsClientListConnectionStringsResponse struct {
ConnectionStrings
}
IngestionSettingsClientListConnectionStringsResponse contains the response from method IngestionSettingsClient.ListConnectionStrings.
type IngestionSettingsClientListOptions ¶ added in v0.3.0
type IngestionSettingsClientListOptions struct { }
IngestionSettingsClientListOptions contains the optional parameters for the IngestionSettingsClient.List method.
type IngestionSettingsClientListResponse ¶ added in v0.3.0
type IngestionSettingsClientListResponse struct {
IngestionSettingList
}
IngestionSettingsClientListResponse contains the response from method IngestionSettingsClient.List.
type IngestionSettingsClientListTokensOptions ¶ added in v0.3.0
type IngestionSettingsClientListTokensOptions struct { }
IngestionSettingsClientListTokensOptions contains the optional parameters for the IngestionSettingsClient.ListTokens method.
type IngestionSettingsClientListTokensResponse ¶ added in v0.3.0
type IngestionSettingsClientListTokensResponse struct {
IngestionSettingToken
}
IngestionSettingsClientListTokensResponse contains the response from method IngestionSettingsClient.ListTokens.
type Intent ¶
type Intent string
Intent - The kill chain related intent behind the alert. For list of supported values, and explanations of Azure Security Center's supported kill chain intents.
const ( // IntentCollection - Collection consists of techniques used to identify and gather information, such as sensitive files, // from a target network prior to exfiltration. IntentCollection Intent = "Collection" // IntentCommandAndControl - The command and control tactic represents how adversaries communicate with systems under their // control within a target network. IntentCommandAndControl Intent = "CommandAndControl" // IntentCredentialAccess - Credential access represents techniques resulting in access to or control over system, domain, // or service credentials that are used within an enterprise environment. IntentCredentialAccess Intent = "CredentialAccess" // IntentDefenseEvasion - Defense evasion consists of techniques an adversary may use to evade detection or avoid other defenses. IntentDefenseEvasion Intent = "DefenseEvasion" // IntentDiscovery - Discovery consists of techniques that allow the adversary to gain knowledge about the system and internal // network. IntentDiscovery Intent = "Discovery" // IntentExecution - The execution tactic represents techniques that result in execution of adversary-controlled code on a // local or remote system. IntentExecution Intent = "Execution" // IntentExfiltration - Exfiltration refers to techniques and attributes that result or aid in the adversary removing files // and information from a target network. IntentExfiltration Intent = "Exfiltration" // IntentExploitation - Exploitation is the stage where an attacker manages to get a foothold on the attacked resource. This // stage is relevant for compute hosts and resources such as user accounts, certificates etc. IntentExploitation Intent = "Exploitation" // IntentImpact - Impact events primarily try to directly reduce the availability or integrity of a system, service, or network; // including manipulation of data to impact a business or operational process. IntentImpact Intent = "Impact" // IntentInitialAccess - InitialAccess is the stage where an attacker manages to get foothold on the attacked resource. IntentInitialAccess Intent = "InitialAccess" // IntentLateralMovement - Lateral movement consists of techniques that enable an adversary to access and control remote systems // on a network and could, but does not necessarily, include execution of tools on remote systems. IntentLateralMovement Intent = "LateralMovement" // IntentPersistence - Persistence is any access, action, or configuration change to a system that gives a threat actor a // persistent presence on that system. IntentPersistence Intent = "Persistence" // IntentPreAttack - PreAttack could be either an attempt to access a certain resource regardless of a malicious intent, or // a failed attempt to gain access to a target system to gather information prior to exploitation. This step is usually detected // as an attempt, originating from outside the network, to scan the target system and find a way in. Further details on the // PreAttack stage can be read in [MITRE Pre-Att&ck matrix](https://attack.mitre.org/matrices/pre/). IntentPreAttack Intent = "PreAttack" // IntentPrivilegeEscalation - Privilege escalation is the result of actions that allow an adversary to obtain a higher level // of permissions on a system or network. IntentPrivilegeEscalation Intent = "PrivilegeEscalation" // IntentProbing - Probing could be either an attempt to access a certain resource regardless of a malicious intent, or a // failed attempt to gain access to a target system to gather information prior to exploitation. IntentProbing Intent = "Probing" // IntentUnknown - Unknown IntentUnknown Intent = "Unknown" )
func PossibleIntentValues ¶
func PossibleIntentValues() []Intent
PossibleIntentValues returns the possible values for the Intent const type.
type IoTSecurityAggregatedAlert ¶
type IoTSecurityAggregatedAlert struct { // IoT Security solution aggregated alert details. Properties *IoTSecurityAggregatedAlertProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
IoTSecurityAggregatedAlert - Security Solution Aggregated Alert information
func (IoTSecurityAggregatedAlert) MarshalJSON ¶
func (i IoTSecurityAggregatedAlert) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecurityAggregatedAlert.
type IoTSecurityAggregatedAlertList ¶
type IoTSecurityAggregatedAlertList struct { // REQUIRED; List of aggregated alerts data. Value []*IoTSecurityAggregatedAlert `json:"value,omitempty"` // READ-ONLY; When there is too much alert data for one page, use this URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
IoTSecurityAggregatedAlertList - List of IoT Security solution aggregated alert data.
func (IoTSecurityAggregatedAlertList) MarshalJSON ¶
func (i IoTSecurityAggregatedAlertList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecurityAggregatedAlertList.
type IoTSecurityAggregatedAlertProperties ¶
type IoTSecurityAggregatedAlertProperties struct { // READ-ONLY; IoT Security solution alert response. ActionTaken *string `json:"actionTaken,omitempty" azure:"ro"` // READ-ONLY; Date of detection. AggregatedDateUTC *time.Time `json:"aggregatedDateUtc,omitempty" azure:"ro"` // READ-ONLY; Display name of the alert type. AlertDisplayName *string `json:"alertDisplayName,omitempty" azure:"ro"` // READ-ONLY; Name of the alert type. AlertType *string `json:"alertType,omitempty" azure:"ro"` // READ-ONLY; Number of alerts occurrences within the aggregated time window. Count *int64 `json:"count,omitempty" azure:"ro"` // READ-ONLY; Description of the suspected vulnerability and meaning. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; Azure resource ID of the resource that received the alerts. EffectedResourceType *string `json:"effectedResourceType,omitempty" azure:"ro"` // READ-ONLY; Log analytics query for getting the list of affected devices/alerts. LogAnalyticsQuery *string `json:"logAnalyticsQuery,omitempty" azure:"ro"` // READ-ONLY; Recommended steps for remediation. RemediationSteps *string `json:"remediationSteps,omitempty" azure:"ro"` // READ-ONLY; Assessed alert severity. ReportedSeverity *ReportedSeverity `json:"reportedSeverity,omitempty" azure:"ro"` // READ-ONLY; The type of the alerted resource (Azure, Non-Azure). SystemSource *string `json:"systemSource,omitempty" azure:"ro"` // READ-ONLY; 10 devices with the highest number of occurrences of this alert type, on this day. TopDevicesList []*IoTSecurityAggregatedAlertPropertiesTopDevicesListItem `json:"topDevicesList,omitempty" azure:"ro"` // READ-ONLY; Name of the organization that raised the alert. VendorName *string `json:"vendorName,omitempty" azure:"ro"` }
IoTSecurityAggregatedAlertProperties - IoT Security solution aggregated alert details.
func (IoTSecurityAggregatedAlertProperties) MarshalJSON ¶
func (i IoTSecurityAggregatedAlertProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecurityAggregatedAlertProperties.
func (*IoTSecurityAggregatedAlertProperties) UnmarshalJSON ¶
func (i *IoTSecurityAggregatedAlertProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IoTSecurityAggregatedAlertProperties.
type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem ¶
type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem struct { // READ-ONLY; Number of alerts raised for this device. AlertsCount *int64 `json:"alertsCount,omitempty" azure:"ro"` // READ-ONLY; Name of the device. DeviceID *string `json:"deviceId,omitempty" azure:"ro"` // READ-ONLY; Most recent time this alert was raised for this device, on this day. LastOccurrence *string `json:"lastOccurrence,omitempty" azure:"ro"` }
type IoTSecurityAggregatedRecommendation ¶
type IoTSecurityAggregatedRecommendation struct { // Security Solution data Properties *IoTSecurityAggregatedRecommendationProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
IoTSecurityAggregatedRecommendation - IoT Security solution recommendation information.
func (IoTSecurityAggregatedRecommendation) MarshalJSON ¶
func (i IoTSecurityAggregatedRecommendation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecurityAggregatedRecommendation.
type IoTSecurityAggregatedRecommendationList ¶
type IoTSecurityAggregatedRecommendationList struct { // REQUIRED; List of aggregated recommendations data. Value []*IoTSecurityAggregatedRecommendation `json:"value,omitempty"` // READ-ONLY; When there is too much alert data for one page, use this URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
IoTSecurityAggregatedRecommendationList - List of IoT Security solution aggregated recommendations.
func (IoTSecurityAggregatedRecommendationList) MarshalJSON ¶
func (i IoTSecurityAggregatedRecommendationList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecurityAggregatedRecommendationList.
type IoTSecurityAggregatedRecommendationProperties ¶
type IoTSecurityAggregatedRecommendationProperties struct { // Name of the recommendation. RecommendationName *string `json:"recommendationName,omitempty"` // READ-ONLY; Description of the suspected vulnerability and meaning. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; Name of the organization that made the recommendation. DetectedBy *string `json:"detectedBy,omitempty" azure:"ro"` // READ-ONLY; Number of healthy devices within the IoT Security solution. HealthyDevices *int64 `json:"healthyDevices,omitempty" azure:"ro"` // READ-ONLY; Log analytics query for getting the list of affected devices/alerts. LogAnalyticsQuery *string `json:"logAnalyticsQuery,omitempty" azure:"ro"` // READ-ONLY; Display name of the recommendation type. RecommendationDisplayName *string `json:"recommendationDisplayName,omitempty" azure:"ro"` // READ-ONLY; Recommendation-type GUID. RecommendationTypeID *string `json:"recommendationTypeId,omitempty" azure:"ro"` // READ-ONLY; Recommended steps for remediation RemediationSteps *string `json:"remediationSteps,omitempty" azure:"ro"` // READ-ONLY; Assessed recommendation severity. ReportedSeverity *ReportedSeverity `json:"reportedSeverity,omitempty" azure:"ro"` // READ-ONLY; Number of unhealthy devices within the IoT Security solution. UnhealthyDeviceCount *int64 `json:"unhealthyDeviceCount,omitempty" azure:"ro"` }
IoTSecurityAggregatedRecommendationProperties - IoT Security solution aggregated recommendation information
type IoTSecurityAlertedDevice ¶
type IoTSecurityAlertedDevice struct { // READ-ONLY; Number of alerts raised for this device. AlertsCount *int64 `json:"alertsCount,omitempty" azure:"ro"` // READ-ONLY; Device identifier. DeviceID *string `json:"deviceId,omitempty" azure:"ro"` }
IoTSecurityAlertedDevice - Statistical information about the number of alerts per device during last set number of days.
type IoTSecurityDeviceAlert ¶
type IoTSecurityDeviceAlert struct { // READ-ONLY; Display name of the alert AlertDisplayName *string `json:"alertDisplayName,omitempty" azure:"ro"` // READ-ONLY; Number of alerts raised for this alert type. AlertsCount *int64 `json:"alertsCount,omitempty" azure:"ro"` // READ-ONLY; Assessed Alert severity. ReportedSeverity *ReportedSeverity `json:"reportedSeverity,omitempty" azure:"ro"` }
IoTSecurityDeviceAlert - Statistical information about the number of alerts per alert type during last set number of days
type IoTSecurityDeviceRecommendation ¶
type IoTSecurityDeviceRecommendation struct { // READ-ONLY; Number of devices with this recommendation. DevicesCount *int64 `json:"devicesCount,omitempty" azure:"ro"` // READ-ONLY; Display name of the recommendation. RecommendationDisplayName *string `json:"recommendationDisplayName,omitempty" azure:"ro"` // READ-ONLY; Assessed recommendation severity. ReportedSeverity *ReportedSeverity `json:"reportedSeverity,omitempty" azure:"ro"` }
IoTSecurityDeviceRecommendation - Statistical information about the number of recommendations per device, per recommendation type.
type IoTSecuritySolutionAnalyticsModel ¶
type IoTSecuritySolutionAnalyticsModel struct { // Security Solution Aggregated Alert data Properties *IoTSecuritySolutionAnalyticsModelProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
IoTSecuritySolutionAnalyticsModel - Security analytics of your IoT Security solution
type IoTSecuritySolutionAnalyticsModelList ¶
type IoTSecuritySolutionAnalyticsModelList struct { // REQUIRED; List of Security analytics of your IoT Security solution Value []*IoTSecuritySolutionAnalyticsModel `json:"value,omitempty"` // READ-ONLY; When there is too much alert data for one page, use this URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
IoTSecuritySolutionAnalyticsModelList - List of Security analytics of your IoT Security solution
func (IoTSecuritySolutionAnalyticsModelList) MarshalJSON ¶
func (i IoTSecuritySolutionAnalyticsModelList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecuritySolutionAnalyticsModelList.
type IoTSecuritySolutionAnalyticsModelProperties ¶
type IoTSecuritySolutionAnalyticsModelProperties struct { // List of the 3 most prevalent device alerts. MostPrevalentDeviceAlerts []*IoTSecurityDeviceAlert `json:"mostPrevalentDeviceAlerts,omitempty"` // List of the 3 most prevalent device recommendations. MostPrevalentDeviceRecommendations []*IoTSecurityDeviceRecommendation `json:"mostPrevalentDeviceRecommendations,omitempty"` // List of the 3 devices with the most alerts. TopAlertedDevices []*IoTSecurityAlertedDevice `json:"topAlertedDevices,omitempty"` // READ-ONLY; List of device metrics by the aggregation date. DevicesMetrics []*IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem `json:"devicesMetrics,omitempty" azure:"ro"` // READ-ONLY; Security analytics of your IoT Security solution. Metrics *IoTSeverityMetrics `json:"metrics,omitempty" azure:"ro"` // READ-ONLY; Number of unhealthy devices within your IoT Security solution. UnhealthyDeviceCount *int64 `json:"unhealthyDeviceCount,omitempty" azure:"ro"` }
IoTSecuritySolutionAnalyticsModelProperties - Security analytics properties of your IoT Security solution
func (IoTSecuritySolutionAnalyticsModelProperties) MarshalJSON ¶
func (i IoTSecuritySolutionAnalyticsModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecuritySolutionAnalyticsModelProperties.
type IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem ¶
type IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem struct { // Aggregation of IoT Security solution device alert metrics by date. Date *time.Time `json:"date,omitempty"` // Device alert count by severity. DevicesMetrics *IoTSeverityMetrics `json:"devicesMetrics,omitempty"` }
func (IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem) MarshalJSON ¶
func (i IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem.
func (*IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem) UnmarshalJSON ¶
func (i *IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem.
type IoTSecuritySolutionModel ¶
type IoTSecuritySolutionModel struct { // The resource location. Location *string `json:"location,omitempty"` // Security Solution data Properties *IoTSecuritySolutionProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
IoTSecuritySolutionModel - IoT Security solution configuration and resource information.
func (IoTSecuritySolutionModel) MarshalJSON ¶
func (i IoTSecuritySolutionModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecuritySolutionModel.
type IoTSecuritySolutionProperties ¶
type IoTSecuritySolutionProperties struct { // REQUIRED; Resource display name. DisplayName *string `json:"displayName,omitempty"` // REQUIRED; IoT Hub resource IDs IotHubs []*string `json:"iotHubs,omitempty"` // List of additional workspaces AdditionalWorkspaces []*AdditionalWorkspacesProperties `json:"additionalWorkspaces,omitempty"` // Disabled data sources. Disabling these data sources compromises the system. DisabledDataSources []*DataSource `json:"disabledDataSources,omitempty"` // List of additional options for exporting to workspace data. Export []*ExportData `json:"export,omitempty"` // List of the configuration status for each recommendation type. RecommendationsConfiguration []*RecommendationConfigurationProperties `json:"recommendationsConfiguration,omitempty"` // Status of the IoT Security solution. Status *SecuritySolutionStatus `json:"status,omitempty"` // Unmasked IP address logging status UnmaskedIPLoggingStatus *UnmaskedIPLoggingStatus `json:"unmaskedIpLoggingStatus,omitempty"` // Properties of the IoT Security solution's user defined resources. UserDefinedResources *UserDefinedResourcesProperties `json:"userDefinedResources,omitempty"` // Workspace resource ID Workspace *string `json:"workspace,omitempty"` // READ-ONLY; List of resources that were automatically discovered as relevant to the security solution. AutoDiscoveredResources []*string `json:"autoDiscoveredResources,omitempty" azure:"ro"` }
IoTSecuritySolutionProperties - Security Solution setting data
func (IoTSecuritySolutionProperties) MarshalJSON ¶
func (i IoTSecuritySolutionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecuritySolutionProperties.
type IoTSecuritySolutionsList ¶
type IoTSecuritySolutionsList struct { // REQUIRED; List of IoT Security solutions Value []*IoTSecuritySolutionModel `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
IoTSecuritySolutionsList - List of IoT Security solutions.
func (IoTSecuritySolutionsList) MarshalJSON ¶
func (i IoTSecuritySolutionsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTSecuritySolutionsList.
type IoTSeverityMetrics ¶
type IoTSeverityMetrics struct { // Count of high severity alerts/recommendations. High *int64 `json:"high,omitempty"` // Count of low severity alerts/recommendations. Low *int64 `json:"low,omitempty"` // Count of medium severity alerts/recommendations. Medium *int64 `json:"medium,omitempty"` }
IoTSeverityMetrics - IoT Security solution analytics severity metrics.
type IotSecuritySolutionAnalyticsClient ¶
type IotSecuritySolutionAnalyticsClient struct {
// contains filtered or unexported fields
}
IotSecuritySolutionAnalyticsClient contains the methods for the IotSecuritySolutionAnalytics group. Don't use this type directly, use NewIotSecuritySolutionAnalyticsClient() instead.
func NewIotSecuritySolutionAnalyticsClient ¶
func NewIotSecuritySolutionAnalyticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IotSecuritySolutionAnalyticsClient, error)
NewIotSecuritySolutionAnalyticsClient creates a new instance of IotSecuritySolutionAnalyticsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*IotSecuritySolutionAnalyticsClient) Get ¶
func (client *IotSecuritySolutionAnalyticsClient) Get(ctx context.Context, resourceGroupName string, solutionName string, options *IotSecuritySolutionAnalyticsClientGetOptions) (IotSecuritySolutionAnalyticsClientGetResponse, error)
Get - Use this method to get IoT Security Analytics metrics. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. options - IotSecuritySolutionAnalyticsClientGetOptions contains the optional parameters for the IotSecuritySolutionAnalyticsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalytics.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionAnalyticsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<solution-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*IotSecuritySolutionAnalyticsClient) List ¶
func (client *IotSecuritySolutionAnalyticsClient) List(ctx context.Context, resourceGroupName string, solutionName string, options *IotSecuritySolutionAnalyticsClientListOptions) (IotSecuritySolutionAnalyticsClientListResponse, error)
List - Use this method to get IoT security Analytics metrics in an array. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. options - IotSecuritySolutionAnalyticsClientListOptions contains the optional parameters for the IotSecuritySolutionAnalyticsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAnalyticsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionAnalyticsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, "<resource-group-name>", "<solution-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type IotSecuritySolutionAnalyticsClientGetOptions ¶ added in v0.3.0
type IotSecuritySolutionAnalyticsClientGetOptions struct { }
IotSecuritySolutionAnalyticsClientGetOptions contains the optional parameters for the IotSecuritySolutionAnalyticsClient.Get method.
type IotSecuritySolutionAnalyticsClientGetResponse ¶ added in v0.3.0
type IotSecuritySolutionAnalyticsClientGetResponse struct {
IoTSecuritySolutionAnalyticsModel
}
IotSecuritySolutionAnalyticsClientGetResponse contains the response from method IotSecuritySolutionAnalyticsClient.Get.
type IotSecuritySolutionAnalyticsClientListOptions ¶ added in v0.3.0
type IotSecuritySolutionAnalyticsClientListOptions struct { }
IotSecuritySolutionAnalyticsClientListOptions contains the optional parameters for the IotSecuritySolutionAnalyticsClient.List method.
type IotSecuritySolutionAnalyticsClientListResponse ¶ added in v0.3.0
type IotSecuritySolutionAnalyticsClientListResponse struct {
IoTSecuritySolutionAnalyticsModelList
}
IotSecuritySolutionAnalyticsClientListResponse contains the response from method IotSecuritySolutionAnalyticsClient.List.
type IotSecuritySolutionClient ¶
type IotSecuritySolutionClient struct {
// contains filtered or unexported fields
}
IotSecuritySolutionClient contains the methods for the IotSecuritySolution group. Don't use this type directly, use NewIotSecuritySolutionClient() instead.
func NewIotSecuritySolutionClient ¶
func NewIotSecuritySolutionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IotSecuritySolutionClient, error)
NewIotSecuritySolutionClient creates a new instance of IotSecuritySolutionClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*IotSecuritySolutionClient) CreateOrUpdate ¶
func (client *IotSecuritySolutionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, solutionName string, iotSecuritySolutionData IoTSecuritySolutionModel, options *IotSecuritySolutionClientCreateOrUpdateOptions) (IotSecuritySolutionClientCreateOrUpdateResponse, error)
CreateOrUpdate - Use this method to create or update yours IoT Security solution If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. iotSecuritySolutionData - The security solution data options - IotSecuritySolutionClientCreateOrUpdateOptions contains the optional parameters for the IotSecuritySolutionClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/CreateIoTSecuritySolution.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-group-name>", "<solution-name>", armsecurity.IoTSecuritySolutionModel{ Tags: map[string]*string{}, Location: to.Ptr("<location>"), Properties: &armsecurity.IoTSecuritySolutionProperties{ DisabledDataSources: []*armsecurity.DataSource{}, DisplayName: to.Ptr("<display-name>"), Export: []*armsecurity.ExportData{}, IotHubs: []*string{ to.Ptr("/subscriptions/075423e9-7d33-4166-8bdf-3920b04e3735/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/FirstIotHub")}, RecommendationsConfiguration: []*armsecurity.RecommendationConfigurationProperties{ { RecommendationType: to.Ptr(armsecurity.RecommendationTypeIoTOpenPorts), Status: to.Ptr(armsecurity.RecommendationConfigStatusDisabled), }, { RecommendationType: to.Ptr(armsecurity.RecommendationTypeIoTSharedCredentials), Status: to.Ptr(armsecurity.RecommendationConfigStatusDisabled), }}, Status: to.Ptr(armsecurity.SecuritySolutionStatusEnabled), UnmaskedIPLoggingStatus: to.Ptr(armsecurity.UnmaskedIPLoggingStatusEnabled), UserDefinedResources: &armsecurity.UserDefinedResourcesProperties{ Query: to.Ptr("<query>"), QuerySubscriptions: []*string{ to.Ptr("075423e9-7d33-4166-8bdf-3920b04e3735")}, }, Workspace: to.Ptr("<workspace>"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*IotSecuritySolutionClient) Delete ¶
func (client *IotSecuritySolutionClient) Delete(ctx context.Context, resourceGroupName string, solutionName string, options *IotSecuritySolutionClientDeleteOptions) (IotSecuritySolutionClientDeleteResponse, error)
Delete - Use this method to delete yours IoT Security solution If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. options - IotSecuritySolutionClientDeleteOptions contains the optional parameters for the IotSecuritySolutionClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/DeleteIoTSecuritySolution.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<solution-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*IotSecuritySolutionClient) Get ¶
func (client *IotSecuritySolutionClient) Get(ctx context.Context, resourceGroupName string, solutionName string, options *IotSecuritySolutionClientGetOptions) (IotSecuritySolutionClientGetResponse, error)
Get - User this method to get details of a specific IoT Security solution based on solution name If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. options - IotSecuritySolutionClientGetOptions contains the optional parameters for the IotSecuritySolutionClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolution.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<solution-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*IotSecuritySolutionClient) ListByResourceGroup ¶
func (client *IotSecuritySolutionClient) ListByResourceGroup(resourceGroupName string, options *IotSecuritySolutionClientListByResourceGroupOptions) *runtime.Pager[IotSecuritySolutionClientListByResourceGroupResponse]
ListByResourceGroup - Use this method to get the list IoT Security solutions organized by resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - IotSecuritySolutionClientListByResourceGroupOptions contains the optional parameters for the IotSecuritySolutionClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByRg.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", &armsecurity.IotSecuritySolutionClientListByResourceGroupOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*IotSecuritySolutionClient) ListBySubscription ¶
func (client *IotSecuritySolutionClient) ListBySubscription(options *IotSecuritySolutionClientListBySubscriptionOptions) *runtime.Pager[IotSecuritySolutionClientListBySubscriptionResponse]
ListBySubscription - Use this method to get the list of IoT Security solutions by subscription. If the operation fails it returns an *azcore.ResponseError type. options - IotSecuritySolutionClientListBySubscriptionOptions contains the optional parameters for the IotSecuritySolutionClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/GetIoTSecuritySolutionsListByIotHub.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySubscription(&armsecurity.IotSecuritySolutionClientListBySubscriptionOptions{Filter: to.Ptr("<filter>")}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*IotSecuritySolutionClient) Update ¶
func (client *IotSecuritySolutionClient) Update(ctx context.Context, resourceGroupName string, solutionName string, updateIotSecuritySolutionData UpdateIotSecuritySolutionData, options *IotSecuritySolutionClientUpdateOptions) (IotSecuritySolutionClientUpdateResponse, error)
Update - Use this method to update existing IoT Security solution tags or user defined resources. To update other fields use the CreateOrUpdate method. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. updateIotSecuritySolutionData - The security solution data options - IotSecuritySolutionClientUpdateOptions contains the optional parameters for the IotSecuritySolutionClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutions/UpdateIoTSecuritySolution.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<resource-group-name>", "<solution-name>", armsecurity.UpdateIotSecuritySolutionData{ Tags: map[string]*string{ "foo": to.Ptr("bar"), }, Properties: &armsecurity.UpdateIoTSecuritySolutionProperties{ RecommendationsConfiguration: []*armsecurity.RecommendationConfigurationProperties{ { RecommendationType: to.Ptr(armsecurity.RecommendationTypeIoTOpenPorts), Status: to.Ptr(armsecurity.RecommendationConfigStatusDisabled), }, { RecommendationType: to.Ptr(armsecurity.RecommendationTypeIoTSharedCredentials), Status: to.Ptr(armsecurity.RecommendationConfigStatusDisabled), }}, UserDefinedResources: &armsecurity.UserDefinedResourcesProperties{ Query: to.Ptr("<query>"), QuerySubscriptions: []*string{ to.Ptr("075423e9-7d33-4166-8bdf-3920b04e3735")}, }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type IotSecuritySolutionClientCreateOrUpdateOptions ¶ added in v0.3.0
type IotSecuritySolutionClientCreateOrUpdateOptions struct { }
IotSecuritySolutionClientCreateOrUpdateOptions contains the optional parameters for the IotSecuritySolutionClient.CreateOrUpdate method.
type IotSecuritySolutionClientCreateOrUpdateResponse ¶ added in v0.3.0
type IotSecuritySolutionClientCreateOrUpdateResponse struct {
IoTSecuritySolutionModel
}
IotSecuritySolutionClientCreateOrUpdateResponse contains the response from method IotSecuritySolutionClient.CreateOrUpdate.
type IotSecuritySolutionClientDeleteOptions ¶ added in v0.3.0
type IotSecuritySolutionClientDeleteOptions struct { }
IotSecuritySolutionClientDeleteOptions contains the optional parameters for the IotSecuritySolutionClient.Delete method.
type IotSecuritySolutionClientDeleteResponse ¶ added in v0.3.0
type IotSecuritySolutionClientDeleteResponse struct { }
IotSecuritySolutionClientDeleteResponse contains the response from method IotSecuritySolutionClient.Delete.
type IotSecuritySolutionClientGetOptions ¶ added in v0.3.0
type IotSecuritySolutionClientGetOptions struct { }
IotSecuritySolutionClientGetOptions contains the optional parameters for the IotSecuritySolutionClient.Get method.
type IotSecuritySolutionClientGetResponse ¶ added in v0.3.0
type IotSecuritySolutionClientGetResponse struct {
IoTSecuritySolutionModel
}
IotSecuritySolutionClientGetResponse contains the response from method IotSecuritySolutionClient.Get.
type IotSecuritySolutionClientListByResourceGroupOptions ¶ added in v0.3.0
type IotSecuritySolutionClientListByResourceGroupOptions struct { // Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. Filter *string }
IotSecuritySolutionClientListByResourceGroupOptions contains the optional parameters for the IotSecuritySolutionClient.ListByResourceGroup method.
type IotSecuritySolutionClientListByResourceGroupResponse ¶ added in v0.3.0
type IotSecuritySolutionClientListByResourceGroupResponse struct {
IoTSecuritySolutionsList
}
IotSecuritySolutionClientListByResourceGroupResponse contains the response from method IotSecuritySolutionClient.ListByResourceGroup.
type IotSecuritySolutionClientListBySubscriptionOptions ¶ added in v0.3.0
type IotSecuritySolutionClientListBySubscriptionOptions struct { // Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. Filter *string }
IotSecuritySolutionClientListBySubscriptionOptions contains the optional parameters for the IotSecuritySolutionClient.ListBySubscription method.
type IotSecuritySolutionClientListBySubscriptionResponse ¶ added in v0.3.0
type IotSecuritySolutionClientListBySubscriptionResponse struct {
IoTSecuritySolutionsList
}
IotSecuritySolutionClientListBySubscriptionResponse contains the response from method IotSecuritySolutionClient.ListBySubscription.
type IotSecuritySolutionClientUpdateOptions ¶ added in v0.3.0
type IotSecuritySolutionClientUpdateOptions struct { }
IotSecuritySolutionClientUpdateOptions contains the optional parameters for the IotSecuritySolutionClient.Update method.
type IotSecuritySolutionClientUpdateResponse ¶ added in v0.3.0
type IotSecuritySolutionClientUpdateResponse struct {
IoTSecuritySolutionModel
}
IotSecuritySolutionClientUpdateResponse contains the response from method IotSecuritySolutionClient.Update.
type IotSecuritySolutionsAnalyticsAggregatedAlertClient ¶
type IotSecuritySolutionsAnalyticsAggregatedAlertClient struct {
// contains filtered or unexported fields
}
IotSecuritySolutionsAnalyticsAggregatedAlertClient contains the methods for the IotSecuritySolutionsAnalyticsAggregatedAlert group. Don't use this type directly, use NewIotSecuritySolutionsAnalyticsAggregatedAlertClient() instead.
func NewIotSecuritySolutionsAnalyticsAggregatedAlertClient ¶
func NewIotSecuritySolutionsAnalyticsAggregatedAlertClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IotSecuritySolutionsAnalyticsAggregatedAlertClient, error)
NewIotSecuritySolutionsAnalyticsAggregatedAlertClient creates a new instance of IotSecuritySolutionsAnalyticsAggregatedAlertClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*IotSecuritySolutionsAnalyticsAggregatedAlertClient) Dismiss ¶
func (client *IotSecuritySolutionsAnalyticsAggregatedAlertClient) Dismiss(ctx context.Context, resourceGroupName string, solutionName string, aggregatedAlertName string, options *IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissOptions) (IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissResponse, error)
Dismiss - Use this method to dismiss an aggregated IoT Security Solution Alert. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. aggregatedAlertName - Identifier of the aggregated alert. options - IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsAggregatedAlertClient.Dismiss method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionsAnalyticsAggregatedAlertClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Dismiss(ctx, "<resource-group-name>", "<solution-name>", "<aggregated-alert-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*IotSecuritySolutionsAnalyticsAggregatedAlertClient) Get ¶
func (client *IotSecuritySolutionsAnalyticsAggregatedAlertClient) Get(ctx context.Context, resourceGroupName string, solutionName string, aggregatedAlertName string, options *IotSecuritySolutionsAnalyticsAggregatedAlertClientGetOptions) (IotSecuritySolutionsAnalyticsAggregatedAlertClientGetResponse, error)
Get - Use this method to get a single the aggregated alert of yours IoT Security solution. This aggregation is performed by alert name. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. aggregatedAlertName - Identifier of the aggregated alert. options - IotSecuritySolutionsAnalyticsAggregatedAlertClientGetOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsAggregatedAlertClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlert.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionsAnalyticsAggregatedAlertClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<solution-name>", "<aggregated-alert-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*IotSecuritySolutionsAnalyticsAggregatedAlertClient) List ¶
func (client *IotSecuritySolutionsAnalyticsAggregatedAlertClient) List(resourceGroupName string, solutionName string, options *IotSecuritySolutionsAnalyticsAggregatedAlertClientListOptions) *runtime.Pager[IotSecuritySolutionsAnalyticsAggregatedAlertClientListResponse]
List - Use this method to get the aggregated alert list of yours IoT Security solution. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. options - IotSecuritySolutionsAnalyticsAggregatedAlertClientListOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsAggregatedAlertClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityAggregatedAlertList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionsAnalyticsAggregatedAlertClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<resource-group-name>", "<solution-name>", &armsecurity.IotSecuritySolutionsAnalyticsAggregatedAlertClientListOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissOptions ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissOptions struct { }
IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsAggregatedAlertClient.Dismiss method.
type IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissResponse ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissResponse struct { }
IotSecuritySolutionsAnalyticsAggregatedAlertClientDismissResponse contains the response from method IotSecuritySolutionsAnalyticsAggregatedAlertClient.Dismiss.
type IotSecuritySolutionsAnalyticsAggregatedAlertClientGetOptions ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsAggregatedAlertClientGetOptions struct { }
IotSecuritySolutionsAnalyticsAggregatedAlertClientGetOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsAggregatedAlertClient.Get method.
type IotSecuritySolutionsAnalyticsAggregatedAlertClientGetResponse ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsAggregatedAlertClientGetResponse struct {
IoTSecurityAggregatedAlert
}
IotSecuritySolutionsAnalyticsAggregatedAlertClientGetResponse contains the response from method IotSecuritySolutionsAnalyticsAggregatedAlertClient.Get.
type IotSecuritySolutionsAnalyticsAggregatedAlertClientListOptions ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsAggregatedAlertClientListOptions struct { // Number of results to retrieve. Top *int32 }
IotSecuritySolutionsAnalyticsAggregatedAlertClientListOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsAggregatedAlertClient.List method.
type IotSecuritySolutionsAnalyticsAggregatedAlertClientListResponse ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsAggregatedAlertClientListResponse struct {
IoTSecurityAggregatedAlertList
}
IotSecuritySolutionsAnalyticsAggregatedAlertClientListResponse contains the response from method IotSecuritySolutionsAnalyticsAggregatedAlertClient.List.
type IotSecuritySolutionsAnalyticsRecommendationClient ¶
type IotSecuritySolutionsAnalyticsRecommendationClient struct {
// contains filtered or unexported fields
}
IotSecuritySolutionsAnalyticsRecommendationClient contains the methods for the IotSecuritySolutionsAnalyticsRecommendation group. Don't use this type directly, use NewIotSecuritySolutionsAnalyticsRecommendationClient() instead.
func NewIotSecuritySolutionsAnalyticsRecommendationClient ¶
func NewIotSecuritySolutionsAnalyticsRecommendationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IotSecuritySolutionsAnalyticsRecommendationClient, error)
NewIotSecuritySolutionsAnalyticsRecommendationClient creates a new instance of IotSecuritySolutionsAnalyticsRecommendationClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*IotSecuritySolutionsAnalyticsRecommendationClient) Get ¶
func (client *IotSecuritySolutionsAnalyticsRecommendationClient) Get(ctx context.Context, resourceGroupName string, solutionName string, aggregatedRecommendationName string, options *IotSecuritySolutionsAnalyticsRecommendationClientGetOptions) (IotSecuritySolutionsAnalyticsRecommendationClientGetResponse, error)
Get - Use this method to get the aggregated security analytics recommendation of yours IoT Security solution. This aggregation is performed by recommendation name. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. aggregatedRecommendationName - Name of the recommendation aggregated for this query. options - IotSecuritySolutionsAnalyticsRecommendationClientGetOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsRecommendationClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendation.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionsAnalyticsRecommendationClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<solution-name>", "<aggregated-recommendation-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*IotSecuritySolutionsAnalyticsRecommendationClient) List ¶
func (client *IotSecuritySolutionsAnalyticsRecommendationClient) List(resourceGroupName string, solutionName string, options *IotSecuritySolutionsAnalyticsRecommendationClientListOptions) *runtime.Pager[IotSecuritySolutionsAnalyticsRecommendationClientListResponse]
List - Use this method to get the list of aggregated security analytics recommendations of yours IoT Security solution. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. solutionName - The name of the IoT Security solution. options - IotSecuritySolutionsAnalyticsRecommendationClientListOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsRecommendationClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/GetIoTSecuritySolutionsSecurityRecommendationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewIotSecuritySolutionsAnalyticsRecommendationClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<resource-group-name>", "<solution-name>", &armsecurity.IotSecuritySolutionsAnalyticsRecommendationClientListOptions{Top: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type IotSecuritySolutionsAnalyticsRecommendationClientGetOptions ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsRecommendationClientGetOptions struct { }
IotSecuritySolutionsAnalyticsRecommendationClientGetOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsRecommendationClient.Get method.
type IotSecuritySolutionsAnalyticsRecommendationClientGetResponse ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsRecommendationClientGetResponse struct {
IoTSecurityAggregatedRecommendation
}
IotSecuritySolutionsAnalyticsRecommendationClientGetResponse contains the response from method IotSecuritySolutionsAnalyticsRecommendationClient.Get.
type IotSecuritySolutionsAnalyticsRecommendationClientListOptions ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsRecommendationClientListOptions struct { // Number of results to retrieve. Top *int32 }
IotSecuritySolutionsAnalyticsRecommendationClientListOptions contains the optional parameters for the IotSecuritySolutionsAnalyticsRecommendationClient.List method.
type IotSecuritySolutionsAnalyticsRecommendationClientListResponse ¶ added in v0.3.0
type IotSecuritySolutionsAnalyticsRecommendationClientListResponse struct {
IoTSecurityAggregatedRecommendationList
}
IotSecuritySolutionsAnalyticsRecommendationClientListResponse contains the response from method IotSecuritySolutionsAnalyticsRecommendationClient.List.
type JitNetworkAccessPoliciesClient ¶
type JitNetworkAccessPoliciesClient struct {
// contains filtered or unexported fields
}
JitNetworkAccessPoliciesClient contains the methods for the JitNetworkAccessPolicies group. Don't use this type directly, use NewJitNetworkAccessPoliciesClient() instead.
func NewJitNetworkAccessPoliciesClient ¶
func NewJitNetworkAccessPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JitNetworkAccessPoliciesClient, error)
NewJitNetworkAccessPoliciesClient creates a new instance of JitNetworkAccessPoliciesClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*JitNetworkAccessPoliciesClient) CreateOrUpdate ¶
func (client *JitNetworkAccessPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ascLocation string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicy, options *JitNetworkAccessPoliciesClientCreateOrUpdateOptions) (JitNetworkAccessPoliciesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create a policy for protecting resources using Just-in-Time access control If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy. options - JitNetworkAccessPoliciesClientCreateOrUpdateOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewJitNetworkAccessPoliciesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-group-name>", "<asc-location>", "<jit-network-access-policy-name>", armsecurity.JitNetworkAccessPolicy{ Kind: to.Ptr("<kind>"), Location: to.Ptr("<location>"), Name: to.Ptr("<name>"), Type: to.Ptr("<type>"), ID: to.Ptr("<id>"), Properties: &armsecurity.JitNetworkAccessPolicyProperties{ ProvisioningState: to.Ptr("<provisioning-state>"), Requests: []*armsecurity.JitNetworkAccessRequest{ { Requestor: to.Ptr("<requestor>"), StartTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-17T08:06:45.5691611Z"); return t }()), VirtualMachines: []*armsecurity.JitNetworkAccessRequestVirtualMachine{ { ID: to.Ptr("<id>"), Ports: []*armsecurity.JitNetworkAccessRequestPort{ { AllowedSourceAddressPrefix: to.Ptr("<allowed-source-address-prefix>"), EndTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-17T09:06:45.5691611Z"); return t }()), Number: to.Ptr[int32](3389), Status: to.Ptr(armsecurity.StatusInitiated), StatusReason: to.Ptr(armsecurity.StatusReasonUserRequested), }}, }}, }}, VirtualMachines: []*armsecurity.JitNetworkAccessPolicyVirtualMachine{ { ID: to.Ptr("<id>"), Ports: []*armsecurity.JitNetworkAccessPortRule{ { AllowedSourceAddressPrefix: to.Ptr("<allowed-source-address-prefix>"), MaxRequestAccessDuration: to.Ptr("<max-request-access-duration>"), Number: to.Ptr[int32](22), Protocol: to.Ptr(armsecurity.ProtocolAll), }, { AllowedSourceAddressPrefix: to.Ptr("<allowed-source-address-prefix>"), MaxRequestAccessDuration: to.Ptr("<max-request-access-duration>"), Number: to.Ptr[int32](3389), Protocol: to.Ptr(armsecurity.ProtocolAll), }}, }}, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*JitNetworkAccessPoliciesClient) Delete ¶
func (client *JitNetworkAccessPoliciesClient) Delete(ctx context.Context, resourceGroupName string, ascLocation string, jitNetworkAccessPolicyName string, options *JitNetworkAccessPoliciesClientDeleteOptions) (JitNetworkAccessPoliciesClientDeleteResponse, error)
Delete - Delete a Just-in-Time access control policy. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy. options - JitNetworkAccessPoliciesClientDeleteOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewJitNetworkAccessPoliciesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<asc-location>", "<jit-network-access-policy-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*JitNetworkAccessPoliciesClient) Get ¶
func (client *JitNetworkAccessPoliciesClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, jitNetworkAccessPolicyName string, options *JitNetworkAccessPoliciesClientGetOptions) (JitNetworkAccessPoliciesClientGetResponse, error)
Get - Policies for protecting resources using Just-in-Time access control for the subscription, location If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy. options - JitNetworkAccessPoliciesClientGetOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewJitNetworkAccessPoliciesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<asc-location>", "<jit-network-access-policy-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*JitNetworkAccessPoliciesClient) Initiate ¶
func (client *JitNetworkAccessPoliciesClient) Initiate(ctx context.Context, resourceGroupName string, ascLocation string, jitNetworkAccessPolicyName string, body JitNetworkAccessPolicyInitiateRequest, options *JitNetworkAccessPoliciesClientInitiateOptions) (JitNetworkAccessPoliciesClientInitiateResponse, error)
Initiate - Initiate a JIT access from a specific Just-in-Time policy configuration. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy. options - JitNetworkAccessPoliciesClientInitiateOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.Initiate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewJitNetworkAccessPoliciesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Initiate(ctx, "<resource-group-name>", "<asc-location>", "<jit-network-access-policy-name>", armsecurity.JitNetworkAccessPolicyInitiateRequest{ Justification: to.Ptr("<justification>"), VirtualMachines: []*armsecurity.JitNetworkAccessPolicyInitiateVirtualMachine{ { ID: to.Ptr("<id>"), Ports: []*armsecurity.JitNetworkAccessPolicyInitiatePort{ { AllowedSourceAddressPrefix: to.Ptr("<allowed-source-address-prefix>"), Number: to.Ptr[int32](3389), }}, }}, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*JitNetworkAccessPoliciesClient) List ¶
func (client *JitNetworkAccessPoliciesClient) List(options *JitNetworkAccessPoliciesClientListOptions) *runtime.Pager[JitNetworkAccessPoliciesClientListResponse]
List - Policies for protecting resources using Just-in-Time access control. If the operation fails it returns an *azcore.ResponseError type. options - JitNetworkAccessPoliciesClientListOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewJitNetworkAccessPoliciesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*JitNetworkAccessPoliciesClient) ListByRegion ¶
func (client *JitNetworkAccessPoliciesClient) ListByRegion(ascLocation string, options *JitNetworkAccessPoliciesClientListByRegionOptions) *runtime.Pager[JitNetworkAccessPoliciesClientListByRegionResponse]
ListByRegion - Policies for protecting resources using Just-in-Time access control for the subscription, location If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - JitNetworkAccessPoliciesClientListByRegionOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.ListByRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewJitNetworkAccessPoliciesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByRegion("<asc-location>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*JitNetworkAccessPoliciesClient) ListByResourceGroup ¶
func (client *JitNetworkAccessPoliciesClient) ListByResourceGroup(resourceGroupName string, options *JitNetworkAccessPoliciesClientListByResourceGroupOptions) *runtime.Pager[JitNetworkAccessPoliciesClientListByResourceGroupResponse]
ListByResourceGroup - Policies for protecting resources using Just-in-Time access control for the subscription, location If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. options - JitNetworkAccessPoliciesClientListByResourceGroupOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewJitNetworkAccessPoliciesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion ¶
func (client *JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(resourceGroupName string, ascLocation string, options *JitNetworkAccessPoliciesClientListByResourceGroupAndRegionOptions) *runtime.Pager[JitNetworkAccessPoliciesClientListByResourceGroupAndRegionResponse]
ListByResourceGroupAndRegion - Policies for protecting resources using Just-in-Time access control for the subscription, location If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - JitNetworkAccessPoliciesClientListByResourceGroupAndRegionOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.ListByResourceGroupAndRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewJitNetworkAccessPoliciesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroupAndRegion("<resource-group-name>", "<asc-location>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type JitNetworkAccessPoliciesClientCreateOrUpdateOptions ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientCreateOrUpdateOptions struct { }
JitNetworkAccessPoliciesClientCreateOrUpdateOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.CreateOrUpdate method.
type JitNetworkAccessPoliciesClientCreateOrUpdateResponse ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientCreateOrUpdateResponse struct {
JitNetworkAccessPolicy
}
JitNetworkAccessPoliciesClientCreateOrUpdateResponse contains the response from method JitNetworkAccessPoliciesClient.CreateOrUpdate.
type JitNetworkAccessPoliciesClientDeleteOptions ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientDeleteOptions struct { }
JitNetworkAccessPoliciesClientDeleteOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.Delete method.
type JitNetworkAccessPoliciesClientDeleteResponse ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientDeleteResponse struct { }
JitNetworkAccessPoliciesClientDeleteResponse contains the response from method JitNetworkAccessPoliciesClient.Delete.
type JitNetworkAccessPoliciesClientGetOptions ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientGetOptions struct { }
JitNetworkAccessPoliciesClientGetOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.Get method.
type JitNetworkAccessPoliciesClientGetResponse ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientGetResponse struct {
JitNetworkAccessPolicy
}
JitNetworkAccessPoliciesClientGetResponse contains the response from method JitNetworkAccessPoliciesClient.Get.
type JitNetworkAccessPoliciesClientInitiateOptions ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientInitiateOptions struct { }
JitNetworkAccessPoliciesClientInitiateOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.Initiate method.
type JitNetworkAccessPoliciesClientInitiateResponse ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientInitiateResponse struct {
JitNetworkAccessRequest
}
JitNetworkAccessPoliciesClientInitiateResponse contains the response from method JitNetworkAccessPoliciesClient.Initiate.
type JitNetworkAccessPoliciesClientListByRegionOptions ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientListByRegionOptions struct { }
JitNetworkAccessPoliciesClientListByRegionOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.ListByRegion method.
type JitNetworkAccessPoliciesClientListByRegionResponse ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientListByRegionResponse struct {
JitNetworkAccessPoliciesList
}
JitNetworkAccessPoliciesClientListByRegionResponse contains the response from method JitNetworkAccessPoliciesClient.ListByRegion.
type JitNetworkAccessPoliciesClientListByResourceGroupAndRegionOptions ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientListByResourceGroupAndRegionOptions struct { }
JitNetworkAccessPoliciesClientListByResourceGroupAndRegionOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.ListByResourceGroupAndRegion method.
type JitNetworkAccessPoliciesClientListByResourceGroupAndRegionResponse ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientListByResourceGroupAndRegionResponse struct {
JitNetworkAccessPoliciesList
}
JitNetworkAccessPoliciesClientListByResourceGroupAndRegionResponse contains the response from method JitNetworkAccessPoliciesClient.ListByResourceGroupAndRegion.
type JitNetworkAccessPoliciesClientListByResourceGroupOptions ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientListByResourceGroupOptions struct { }
JitNetworkAccessPoliciesClientListByResourceGroupOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.ListByResourceGroup method.
type JitNetworkAccessPoliciesClientListByResourceGroupResponse ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientListByResourceGroupResponse struct {
JitNetworkAccessPoliciesList
}
JitNetworkAccessPoliciesClientListByResourceGroupResponse contains the response from method JitNetworkAccessPoliciesClient.ListByResourceGroup.
type JitNetworkAccessPoliciesClientListOptions ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientListOptions struct { }
JitNetworkAccessPoliciesClientListOptions contains the optional parameters for the JitNetworkAccessPoliciesClient.List method.
type JitNetworkAccessPoliciesClientListResponse ¶ added in v0.3.0
type JitNetworkAccessPoliciesClientListResponse struct {
JitNetworkAccessPoliciesList
}
JitNetworkAccessPoliciesClientListResponse contains the response from method JitNetworkAccessPoliciesClient.List.
type JitNetworkAccessPoliciesList ¶
type JitNetworkAccessPoliciesList struct { Value []*JitNetworkAccessPolicy `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
func (JitNetworkAccessPoliciesList) MarshalJSON ¶
func (j JitNetworkAccessPoliciesList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessPoliciesList.
type JitNetworkAccessPolicy ¶
type JitNetworkAccessPolicy struct { // REQUIRED Properties *JitNetworkAccessPolicyProperties `json:"properties,omitempty"` // Kind of the resource Kind *string `json:"kind,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
type JitNetworkAccessPolicyInitiatePort ¶
type JitNetworkAccessPolicyInitiatePort struct { // REQUIRED; The time to close the request in UTC EndTimeUTC *time.Time `json:"endTimeUtc,omitempty"` // REQUIRED Number *int32 `json:"number,omitempty"` // Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request. AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"` }
func (JitNetworkAccessPolicyInitiatePort) MarshalJSON ¶
func (j JitNetworkAccessPolicyInitiatePort) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessPolicyInitiatePort.
func (*JitNetworkAccessPolicyInitiatePort) UnmarshalJSON ¶
func (j *JitNetworkAccessPolicyInitiatePort) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JitNetworkAccessPolicyInitiatePort.
type JitNetworkAccessPolicyInitiateRequest ¶
type JitNetworkAccessPolicyInitiateRequest struct { // REQUIRED; A list of virtual machines & ports to open access for VirtualMachines []*JitNetworkAccessPolicyInitiateVirtualMachine `json:"virtualMachines,omitempty"` // The justification for making the initiate request Justification *string `json:"justification,omitempty"` }
func (JitNetworkAccessPolicyInitiateRequest) MarshalJSON ¶
func (j JitNetworkAccessPolicyInitiateRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessPolicyInitiateRequest.
type JitNetworkAccessPolicyInitiateVirtualMachine ¶
type JitNetworkAccessPolicyInitiateVirtualMachine struct { // REQUIRED; Resource ID of the virtual machine that is linked to this policy ID *string `json:"id,omitempty"` // REQUIRED; The ports to open for the resource with the id Ports []*JitNetworkAccessPolicyInitiatePort `json:"ports,omitempty"` }
func (JitNetworkAccessPolicyInitiateVirtualMachine) MarshalJSON ¶
func (j JitNetworkAccessPolicyInitiateVirtualMachine) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessPolicyInitiateVirtualMachine.
type JitNetworkAccessPolicyProperties ¶
type JitNetworkAccessPolicyProperties struct { // REQUIRED; Configurations for Microsoft.Compute/virtualMachines resource type. VirtualMachines []*JitNetworkAccessPolicyVirtualMachine `json:"virtualMachines,omitempty"` Requests []*JitNetworkAccessRequest `json:"requests,omitempty"` // READ-ONLY; Gets the provisioning state of the Just-in-Time policy. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
func (JitNetworkAccessPolicyProperties) MarshalJSON ¶
func (j JitNetworkAccessPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessPolicyProperties.
type JitNetworkAccessPolicyVirtualMachine ¶
type JitNetworkAccessPolicyVirtualMachine struct { // REQUIRED; Resource ID of the virtual machine that is linked to this policy ID *string `json:"id,omitempty"` // REQUIRED; Port configurations for the virtual machine Ports []*JitNetworkAccessPortRule `json:"ports,omitempty"` // Public IP address of the Azure Firewall that is linked to this policy, if applicable PublicIPAddress *string `json:"publicIpAddress,omitempty"` }
func (JitNetworkAccessPolicyVirtualMachine) MarshalJSON ¶
func (j JitNetworkAccessPolicyVirtualMachine) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessPolicyVirtualMachine.
type JitNetworkAccessPortRule ¶
type JitNetworkAccessPortRule struct { // REQUIRED; Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day MaxRequestAccessDuration *string `json:"maxRequestAccessDuration,omitempty"` // REQUIRED Number *int32 `json:"number,omitempty"` // REQUIRED Protocol *Protocol `json:"protocol,omitempty"` // Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" // or "192.168.0.0/16". AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"` // Mutually exclusive with the "allowedSourceAddressPrefix" parameter. AllowedSourceAddressPrefixes []*string `json:"allowedSourceAddressPrefixes,omitempty"` }
func (JitNetworkAccessPortRule) MarshalJSON ¶
func (j JitNetworkAccessPortRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessPortRule.
type JitNetworkAccessRequest ¶
type JitNetworkAccessRequest struct { // REQUIRED; The identity of the person who made the request Requestor *string `json:"requestor,omitempty"` // REQUIRED; The start time of the request in UTC StartTimeUTC *time.Time `json:"startTimeUtc,omitempty"` // REQUIRED VirtualMachines []*JitNetworkAccessRequestVirtualMachine `json:"virtualMachines,omitempty"` // The justification for making the initiate request Justification *string `json:"justification,omitempty"` }
func (JitNetworkAccessRequest) MarshalJSON ¶
func (j JitNetworkAccessRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessRequest.
func (*JitNetworkAccessRequest) UnmarshalJSON ¶
func (j *JitNetworkAccessRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JitNetworkAccessRequest.
type JitNetworkAccessRequestPort ¶
type JitNetworkAccessRequestPort struct { // REQUIRED; The date & time at which the request ends in UTC EndTimeUTC *time.Time `json:"endTimeUtc,omitempty"` // REQUIRED Number *int32 `json:"number,omitempty"` // REQUIRED; The status of the port Status *Status `json:"status,omitempty"` // REQUIRED; A description of why the status has its value StatusReason *StatusReason `json:"statusReason,omitempty"` // Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" // or "192.168.0.0/16". AllowedSourceAddressPrefix *string `json:"allowedSourceAddressPrefix,omitempty"` // Mutually exclusive with the "allowedSourceAddressPrefix" parameter. AllowedSourceAddressPrefixes []*string `json:"allowedSourceAddressPrefixes,omitempty"` // The port which is mapped to this port's number in the Azure Firewall, if applicable MappedPort *int32 `json:"mappedPort,omitempty"` }
func (JitNetworkAccessRequestPort) MarshalJSON ¶
func (j JitNetworkAccessRequestPort) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessRequestPort.
func (*JitNetworkAccessRequestPort) UnmarshalJSON ¶
func (j *JitNetworkAccessRequestPort) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JitNetworkAccessRequestPort.
type JitNetworkAccessRequestVirtualMachine ¶
type JitNetworkAccessRequestVirtualMachine struct { // REQUIRED; Resource ID of the virtual machine that is linked to this policy ID *string `json:"id,omitempty"` // REQUIRED; The ports that were opened for the virtual machine Ports []*JitNetworkAccessRequestPort `json:"ports,omitempty"` }
func (JitNetworkAccessRequestVirtualMachine) MarshalJSON ¶
func (j JitNetworkAccessRequestVirtualMachine) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JitNetworkAccessRequestVirtualMachine.
type Kind ¶
type Kind string
Kind - The kind of alert simulation.
const ( // KindBundles - Simulate alerts according to bundles KindBundles Kind = "Bundles" )
func PossibleKindValues ¶
func PossibleKindValues() []Kind
PossibleKindValues returns the possible values for the Kind const type.
type KindAutoGenerated ¶
type KindAutoGenerated struct { // Kind of the resource Kind *string `json:"kind,omitempty"` }
KindAutoGenerated - Describes an Azure resource with kind
type ListCustomAlertRule ¶
type ListCustomAlertRule struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The value type of the items in the list. ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` }
ListCustomAlertRule - A List custom alert rule.
func (*ListCustomAlertRule) GetCustomAlertRule ¶ added in v0.3.0
func (l *ListCustomAlertRule) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ListCustomAlertRule.
func (*ListCustomAlertRule) GetListCustomAlertRule ¶
func (l *ListCustomAlertRule) GetListCustomAlertRule() *ListCustomAlertRule
GetListCustomAlertRule implements the ListCustomAlertRuleClassification interface for type ListCustomAlertRule.
func (ListCustomAlertRule) MarshalJSON ¶ added in v0.3.0
func (l ListCustomAlertRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListCustomAlertRule.
func (*ListCustomAlertRule) UnmarshalJSON ¶
func (l *ListCustomAlertRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ListCustomAlertRule.
type ListCustomAlertRuleClassification ¶
type ListCustomAlertRuleClassification interface { CustomAlertRuleClassification // GetListCustomAlertRule returns the ListCustomAlertRule content of the underlying type. GetListCustomAlertRule() *ListCustomAlertRule }
ListCustomAlertRuleClassification provides polymorphic access to related types. Call the interface's GetListCustomAlertRule() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AllowlistCustomAlertRule, *ConnectionFromIPNotAllowed, *ConnectionToIPNotAllowed, *DenylistCustomAlertRule, *ListCustomAlertRule, - *LocalUserNotAllowed, *ProcessNotAllowed
type LocalUserNotAllowed ¶
type LocalUserNotAllowed struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. AllowlistValues []*string `json:"allowlistValues,omitempty"` // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The value type of the items in the list. ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` }
LocalUserNotAllowed - Login by a local user that isn't allowed. Allow list consists of login names to allow.
func (*LocalUserNotAllowed) GetAllowlistCustomAlertRule ¶ added in v0.3.0
func (l *LocalUserNotAllowed) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type LocalUserNotAllowed.
func (*LocalUserNotAllowed) GetCustomAlertRule ¶ added in v0.3.0
func (l *LocalUserNotAllowed) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type LocalUserNotAllowed.
func (*LocalUserNotAllowed) GetListCustomAlertRule ¶ added in v0.3.0
func (l *LocalUserNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule
GetListCustomAlertRule implements the ListCustomAlertRuleClassification interface for type LocalUserNotAllowed.
func (LocalUserNotAllowed) MarshalJSON ¶
func (l LocalUserNotAllowed) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LocalUserNotAllowed.
func (*LocalUserNotAllowed) UnmarshalJSON ¶ added in v0.3.0
func (l *LocalUserNotAllowed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LocalUserNotAllowed.
type Location ¶
type Location struct { // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` }
Location - Describes an Azure resource with location
type LocationsClient ¶
type LocationsClient struct {
// contains filtered or unexported fields
}
LocationsClient contains the methods for the Locations group. Don't use this type directly, use NewLocationsClient() instead.
func NewLocationsClient ¶
func NewLocationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LocationsClient, error)
NewLocationsClient creates a new instance of LocationsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*LocationsClient) Get ¶
func (client *LocationsClient) Get(ctx context.Context, ascLocation string, options *LocationsClientGetOptions) (LocationsClientGetResponse, error)
Get - Details of a specific location If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - LocationsClientGetOptions contains the optional parameters for the LocationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Locations/GetLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewLocationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<asc-location>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*LocationsClient) List ¶
func (client *LocationsClient) List(options *LocationsClientListOptions) *runtime.Pager[LocationsClientListResponse]
List - The location of the responsible ASC of the specific subscription (home region). For each subscription there is only one responsible location. The location in the response should be used to read or write other resources in ASC according to their ID. If the operation fails it returns an *azcore.ResponseError type. options - LocationsClientListOptions contains the optional parameters for the LocationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Locations/GetLocations_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewLocationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type LocationsClientGetOptions ¶ added in v0.3.0
type LocationsClientGetOptions struct { }
LocationsClientGetOptions contains the optional parameters for the LocationsClient.Get method.
type LocationsClientGetResponse ¶ added in v0.3.0
type LocationsClientGetResponse struct {
AscLocation
}
LocationsClientGetResponse contains the response from method LocationsClient.Get.
type LocationsClientListOptions ¶ added in v0.3.0
type LocationsClientListOptions struct { }
LocationsClientListOptions contains the optional parameters for the LocationsClient.List method.
type LocationsClientListResponse ¶ added in v0.3.0
type LocationsClientListResponse struct {
AscLocationList
}
LocationsClientListResponse contains the response from method LocationsClient.List.
type LogAnalyticsIdentifier ¶
type LogAnalyticsIdentifier struct { // REQUIRED; There can be multiple identifiers of different type per alert, this field specify the identifier type. Type *ResourceIdentifierType `json:"type,omitempty"` // READ-ONLY; (optional) The LogAnalytics agent id reporting the event that this alert is based on. AgentID *string `json:"agentId,omitempty" azure:"ro"` // READ-ONLY; The LogAnalytics workspace id that stores this alert. WorkspaceID *string `json:"workspaceId,omitempty" azure:"ro"` // READ-ONLY; The azure resource group for the LogAnalytics workspace storing this alert WorkspaceResourceGroup *string `json:"workspaceResourceGroup,omitempty" azure:"ro"` // READ-ONLY; The azure subscription id for the LogAnalytics workspace storing this alert. WorkspaceSubscriptionID *string `json:"workspaceSubscriptionId,omitempty" azure:"ro"` }
LogAnalyticsIdentifier - Represents a Log Analytics workspace scope identifier.
func (*LogAnalyticsIdentifier) GetResourceIdentifier ¶ added in v0.3.0
func (l *LogAnalyticsIdentifier) GetResourceIdentifier() *ResourceIdentifier
GetResourceIdentifier implements the ResourceIdentifierClassification interface for type LogAnalyticsIdentifier.
func (LogAnalyticsIdentifier) MarshalJSON ¶
func (l LogAnalyticsIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LogAnalyticsIdentifier.
func (*LogAnalyticsIdentifier) UnmarshalJSON ¶
func (l *LogAnalyticsIdentifier) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LogAnalyticsIdentifier.
type MdeOnboardingData ¶ added in v0.2.0
type MdeOnboardingData struct { // Properties of the MDE configuration or data parameter needed to onboard the machine to MDE Properties *MdeOnboardingDataProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
MdeOnboardingData - The resource of the configuration or data needed to onboard the machine to MDE
type MdeOnboardingDataList ¶ added in v0.2.0
type MdeOnboardingDataList struct { // List of the resources of the configuration or data needed to onboard the machine to MDE Value []*MdeOnboardingData `json:"value,omitempty"` }
MdeOnboardingDataList - List of all MDE onboarding data resources
func (MdeOnboardingDataList) MarshalJSON ¶ added in v0.2.0
func (m MdeOnboardingDataList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MdeOnboardingDataList.
type MdeOnboardingDataProperties ¶ added in v0.2.0
type MdeOnboardingDataProperties struct { // The onboarding package used to onboard Linux machines to MDE, coded in base64. This can also be used for onboarding using // the dedicated VM Extension OnboardingPackageLinux []byte `json:"onboardingPackageLinux,omitempty"` // The onboarding package used to onboard Windows machines to MDE, coded in base64. This can also be used for onboarding using // the dedicated VM Extension OnboardingPackageWindows []byte `json:"onboardingPackageWindows,omitempty"` }
MdeOnboardingDataProperties - Properties of the MDE configuration or data parameter needed to onboard the machine to MDE
func (MdeOnboardingDataProperties) MarshalJSON ¶ added in v0.2.0
func (m MdeOnboardingDataProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MdeOnboardingDataProperties.
func (*MdeOnboardingDataProperties) UnmarshalJSON ¶ added in v0.2.0
func (m *MdeOnboardingDataProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MdeOnboardingDataProperties.
type MdeOnboardingsClient ¶ added in v0.2.0
type MdeOnboardingsClient struct {
// contains filtered or unexported fields
}
MdeOnboardingsClient contains the methods for the MdeOnboardings group. Don't use this type directly, use NewMdeOnboardingsClient() instead.
func NewMdeOnboardingsClient ¶ added in v0.2.0
func NewMdeOnboardingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MdeOnboardingsClient, error)
NewMdeOnboardingsClient creates a new instance of MdeOnboardingsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*MdeOnboardingsClient) Get ¶ added in v0.2.0
func (client *MdeOnboardingsClient) Get(ctx context.Context, options *MdeOnboardingsClientGetOptions) (MdeOnboardingsClientGetResponse, error)
Get - The default configuration or data needed to onboard the machine to MDE If the operation fails it returns an *azcore.ResponseError type. options - MdeOnboardingsClientGetOptions contains the optional parameters for the MdeOnboardingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-10-01-preview/examples/MdeOnboardings/GetMdeOnboardings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewMdeOnboardingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*MdeOnboardingsClient) List ¶ added in v0.2.0
func (client *MdeOnboardingsClient) List(ctx context.Context, options *MdeOnboardingsClientListOptions) (MdeOnboardingsClientListResponse, error)
List - The configuration or data needed to onboard the machine to MDE If the operation fails it returns an *azcore.ResponseError type. options - MdeOnboardingsClientListOptions contains the optional parameters for the MdeOnboardingsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-10-01-preview/examples/MdeOnboardings/ListMdeOnboardings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewMdeOnboardingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type MdeOnboardingsClientGetOptions ¶ added in v0.3.0
type MdeOnboardingsClientGetOptions struct { }
MdeOnboardingsClientGetOptions contains the optional parameters for the MdeOnboardingsClient.Get method.
type MdeOnboardingsClientGetResponse ¶ added in v0.3.0
type MdeOnboardingsClientGetResponse struct {
MdeOnboardingData
}
MdeOnboardingsClientGetResponse contains the response from method MdeOnboardingsClient.Get.
type MdeOnboardingsClientListOptions ¶ added in v0.3.0
type MdeOnboardingsClientListOptions struct { }
MdeOnboardingsClientListOptions contains the optional parameters for the MdeOnboardingsClient.List method.
type MdeOnboardingsClientListResponse ¶ added in v0.3.0
type MdeOnboardingsClientListResponse struct {
MdeOnboardingDataList
}
MdeOnboardingsClientListResponse contains the response from method MdeOnboardingsClient.List.
type MqttC2DMessagesNotInAllowedRange ¶
type MqttC2DMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
MqttC2DMessagesNotInAllowedRange - Number of cloud to device messages (MQTT protocol) is not in allowed range.
func (*MqttC2DMessagesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (m *MqttC2DMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type MqttC2DMessagesNotInAllowedRange.
func (*MqttC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (m *MqttC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type MqttC2DMessagesNotInAllowedRange.
func (*MqttC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (m *MqttC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type MqttC2DMessagesNotInAllowedRange.
func (MqttC2DMessagesNotInAllowedRange) MarshalJSON ¶
func (m MqttC2DMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MqttC2DMessagesNotInAllowedRange.
func (*MqttC2DMessagesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (m *MqttC2DMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MqttC2DMessagesNotInAllowedRange.
type MqttC2DRejectedMessagesNotInAllowedRange ¶
type MqttC2DRejectedMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
MqttC2DRejectedMessagesNotInAllowedRange - Number of rejected cloud to device messages (MQTT protocol) is not in allowed range.
func (*MqttC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (m *MqttC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type MqttC2DRejectedMessagesNotInAllowedRange.
func (*MqttC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (m *MqttC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type MqttC2DRejectedMessagesNotInAllowedRange.
func (*MqttC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (m *MqttC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type MqttC2DRejectedMessagesNotInAllowedRange.
func (MqttC2DRejectedMessagesNotInAllowedRange) MarshalJSON ¶
func (m MqttC2DRejectedMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MqttC2DRejectedMessagesNotInAllowedRange.
func (*MqttC2DRejectedMessagesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (m *MqttC2DRejectedMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MqttC2DRejectedMessagesNotInAllowedRange.
type MqttD2CMessagesNotInAllowedRange ¶
type MqttD2CMessagesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
MqttD2CMessagesNotInAllowedRange - Number of device to cloud messages (MQTT protocol) is not in allowed range.
func (*MqttD2CMessagesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (m *MqttD2CMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type MqttD2CMessagesNotInAllowedRange.
func (*MqttD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (m *MqttD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type MqttD2CMessagesNotInAllowedRange.
func (*MqttD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (m *MqttD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type MqttD2CMessagesNotInAllowedRange.
func (MqttD2CMessagesNotInAllowedRange) MarshalJSON ¶
func (m MqttD2CMessagesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MqttD2CMessagesNotInAllowedRange.
func (*MqttD2CMessagesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (m *MqttD2CMessagesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MqttD2CMessagesNotInAllowedRange.
type OfferingType ¶ added in v0.2.0
type OfferingType string
OfferingType - The type of the security offering.
const ( OfferingTypeCspmMonitorAws OfferingType = "CspmMonitorAws" OfferingTypeDefenderForContainersAws OfferingType = "DefenderForContainersAws" OfferingTypeDefenderForServersAws OfferingType = "DefenderForServersAws" OfferingTypeInformationProtectionAws OfferingType = "InformationProtectionAws" )
func PossibleOfferingTypeValues ¶ added in v0.2.0
func PossibleOfferingTypeValues() []OfferingType
PossibleOfferingTypeValues returns the possible values for the OfferingType const type.
type OnPremiseResourceDetails ¶ added in v0.3.0
type OnPremiseResourceDetails struct { // REQUIRED; The name of the machine MachineName *string `json:"machineName,omitempty"` // REQUIRED; The platform where the assessed resource resides Source *Source `json:"source,omitempty"` // REQUIRED; The oms agent Id installed on the machine SourceComputerID *string `json:"sourceComputerId,omitempty"` // REQUIRED; The unique Id of the machine Vmuuid *string `json:"vmuuid,omitempty"` // REQUIRED; Azure resource Id of the workspace the machine is attached to WorkspaceID *string `json:"workspaceId,omitempty"` }
OnPremiseResourceDetails - Details of the On Premise resource that was assessed
func (*OnPremiseResourceDetails) GetOnPremiseResourceDetails ¶ added in v0.3.0
func (o *OnPremiseResourceDetails) GetOnPremiseResourceDetails() *OnPremiseResourceDetails
GetOnPremiseResourceDetails implements the OnPremiseResourceDetailsClassification interface for type OnPremiseResourceDetails.
func (*OnPremiseResourceDetails) GetResourceDetails ¶ added in v0.3.0
func (o *OnPremiseResourceDetails) GetResourceDetails() *ResourceDetails
GetResourceDetails implements the ResourceDetailsClassification interface for type OnPremiseResourceDetails.
func (OnPremiseResourceDetails) MarshalJSON ¶ added in v0.3.0
func (o OnPremiseResourceDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OnPremiseResourceDetails.
func (*OnPremiseResourceDetails) UnmarshalJSON ¶ added in v0.3.0
func (o *OnPremiseResourceDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OnPremiseResourceDetails.
type OnPremiseResourceDetailsClassification ¶ added in v0.3.0
type OnPremiseResourceDetailsClassification interface { ResourceDetailsClassification // GetOnPremiseResourceDetails returns the OnPremiseResourceDetails content of the underlying type. GetOnPremiseResourceDetails() *OnPremiseResourceDetails }
OnPremiseResourceDetailsClassification provides polymorphic access to related types. Call the interface's GetOnPremiseResourceDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *OnPremiseResourceDetails, *OnPremiseSQLResourceDetails
type OnPremiseSQLResourceDetails ¶ added in v0.3.0
type OnPremiseSQLResourceDetails struct { // REQUIRED; The Sql database name installed on the machine DatabaseName *string `json:"databaseName,omitempty"` // REQUIRED; The name of the machine MachineName *string `json:"machineName,omitempty"` // REQUIRED; The Sql server name installed on the machine ServerName *string `json:"serverName,omitempty"` // REQUIRED; The platform where the assessed resource resides Source *Source `json:"source,omitempty"` // REQUIRED; The oms agent Id installed on the machine SourceComputerID *string `json:"sourceComputerId,omitempty"` // REQUIRED; The unique Id of the machine Vmuuid *string `json:"vmuuid,omitempty"` // REQUIRED; Azure resource Id of the workspace the machine is attached to WorkspaceID *string `json:"workspaceId,omitempty"` }
OnPremiseSQLResourceDetails - Details of the On Premise Sql resource that was assessed
func (*OnPremiseSQLResourceDetails) GetOnPremiseResourceDetails ¶ added in v0.3.0
func (o *OnPremiseSQLResourceDetails) GetOnPremiseResourceDetails() *OnPremiseResourceDetails
GetOnPremiseResourceDetails implements the OnPremiseResourceDetailsClassification interface for type OnPremiseSQLResourceDetails.
func (*OnPremiseSQLResourceDetails) GetResourceDetails ¶ added in v0.3.0
func (o *OnPremiseSQLResourceDetails) GetResourceDetails() *ResourceDetails
GetResourceDetails implements the ResourceDetailsClassification interface for type OnPremiseSQLResourceDetails.
func (OnPremiseSQLResourceDetails) MarshalJSON ¶ added in v0.3.0
func (o OnPremiseSQLResourceDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OnPremiseSQLResourceDetails.
func (*OnPremiseSQLResourceDetails) UnmarshalJSON ¶ added in v0.3.0
func (o *OnPremiseSQLResourceDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OnPremiseSQLResourceDetails.
type Operation ¶
type Operation struct { // Security operation display Display *OperationDisplay `json:"display,omitempty"` // READ-ONLY; Name of the operation Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Where the operation is originated Origin *string `json:"origin,omitempty" azure:"ro"` }
Operation - Possible operation in the REST API of Microsoft.Security
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; The description of the operation. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the security operation. Operation *string `json:"operation,omitempty" azure:"ro"` // READ-ONLY; The resource provider for the operation. Provider *string `json:"provider,omitempty" azure:"ro"` // READ-ONLY; The display name of the resource the operation applies to. Resource *string `json:"resource,omitempty" azure:"ro"` }
OperationDisplay - Security operation display
type OperationList ¶
type OperationList struct { // List of Security operations Value []*Operation `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
OperationList - List of possible operations for Microsoft.Security resource provider
func (OperationList) MarshalJSON ¶
func (o OperationList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationList.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
List - Exposes all available operations for discovery purposes. If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListOptions ¶ added in v0.3.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.3.0
type OperationsClientListResponse struct {
OperationList
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type Operator ¶
type Operator string
Operator - A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
const ( // OperatorContains - Applies only for non-decimal operands OperatorContains Operator = "Contains" // OperatorEndsWith - Applies only for non-decimal operands OperatorEndsWith Operator = "EndsWith" // OperatorEquals - Applies for decimal and non-decimal operands OperatorEquals Operator = "Equals" // OperatorGreaterThan - Applies only for decimal operands OperatorGreaterThan Operator = "GreaterThan" // OperatorGreaterThanOrEqualTo - Applies only for decimal operands OperatorGreaterThanOrEqualTo Operator = "GreaterThanOrEqualTo" // OperatorLesserThan - Applies only for decimal operands OperatorLesserThan Operator = "LesserThan" // OperatorLesserThanOrEqualTo - Applies only for decimal operands OperatorLesserThanOrEqualTo Operator = "LesserThanOrEqualTo" // OperatorNotEquals - Applies for decimal and non-decimal operands OperatorNotEquals Operator = "NotEquals" // OperatorStartsWith - Applies only for non-decimal operands OperatorStartsWith Operator = "StartsWith" )
func PossibleOperatorValues ¶
func PossibleOperatorValues() []Operator
PossibleOperatorValues returns the possible values for the Operator const type.
type OrganizationMembershipType ¶ added in v0.2.0
type OrganizationMembershipType string
OrganizationMembershipType - The multi cloud account's membership type in the organization
const ( OrganizationMembershipTypeMember OrganizationMembershipType = "Member" OrganizationMembershipTypeOrganization OrganizationMembershipType = "Organization" )
func PossibleOrganizationMembershipTypeValues ¶ added in v0.2.0
func PossibleOrganizationMembershipTypeValues() []OrganizationMembershipType
PossibleOrganizationMembershipTypeValues returns the possible values for the OrganizationMembershipType const type.
type PathRecommendation ¶
type PathRecommendation struct { // The recommendation action of the machine or rule Action *RecommendationAction `json:"action,omitempty"` // Whether the application is commonly run on the machine Common *bool `json:"common,omitempty"` // The configuration status of the machines group or machine or rule ConfigurationStatus *ConfigurationStatus `json:"configurationStatus,omitempty"` // The type of the file (for Linux files - Executable is used) FileType *FileType `json:"fileType,omitempty"` // The full path of the file, or an identifier of the application Path *string `json:"path,omitempty"` // Represents the publisher information of a process/rule PublisherInfo *PublisherInfo `json:"publisherInfo,omitempty"` // The type of IoT Security recommendation. Type *RecommendationType `json:"type,omitempty"` UserSids []*string `json:"userSids,omitempty"` Usernames []*UserRecommendation `json:"usernames,omitempty"` }
PathRecommendation - Represents a path that is recommended to be allowed and its properties
func (PathRecommendation) MarshalJSON ¶
func (p PathRecommendation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PathRecommendation.
type PermissionProperty ¶
type PermissionProperty string
PermissionProperty - A permission detected in the cloud account.
const ( // PermissionPropertyAWSAWSSecurityHubReadOnlyAccess - This permission provides read only access to AWS Security Hub resources. PermissionPropertyAWSAWSSecurityHubReadOnlyAccess PermissionProperty = "AWS::AWSSecurityHubReadOnlyAccess" // PermissionPropertyAWSAmazonSSMAutomationRole - The permission provides for EC2 Automation service to execute activities // defined within Automation documents. PermissionPropertyAWSAmazonSSMAutomationRole PermissionProperty = "AWS::AmazonSSMAutomationRole" // PermissionPropertyAWSSecurityAudit - This permission grants access to read security configuration metadata. PermissionPropertyAWSSecurityAudit PermissionProperty = "AWS::SecurityAudit" // PermissionPropertyGCPSecurityCenterAdminViewer - This permission provides read only access to GCP Security Command Center. PermissionPropertyGCPSecurityCenterAdminViewer PermissionProperty = "GCP::Security Center Admin Viewer" )
func PossiblePermissionPropertyValues ¶
func PossiblePermissionPropertyValues() []PermissionProperty
PossiblePermissionPropertyValues returns the possible values for the PermissionProperty const type.
type Pricing ¶
type Pricing struct { // Pricing data Properties *PricingProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Pricing - Azure Security Center is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features.
type PricingList ¶
type PricingList struct { // REQUIRED; List of pricing configurations Value []*Pricing `json:"value,omitempty"` }
PricingList - List of pricing configurations response.
func (PricingList) MarshalJSON ¶
func (p PricingList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PricingList.
type PricingProperties ¶
type PricingProperties struct { // REQUIRED; The pricing tier value. Azure Security Center is provided in two pricing tiers: free and standard, with the standard // tier available with a trial period. The standard tier offers advanced security // capabilities, while the free tier offers basic security features. PricingTier *PricingTier `json:"pricingTier,omitempty"` // The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables // a set of security features. When not specified, full plan is applied. SubPlan *string `json:"subPlan,omitempty"` // READ-ONLY; The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S). FreeTrialRemainingTime *string `json:"freeTrialRemainingTime,omitempty" azure:"ro"` }
PricingProperties - Pricing properties for the relevant scope
type PricingTier ¶
type PricingTier string
PricingTier - The pricing tier value. Azure Security Center is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features.
const ( // PricingTierFree - Get free Azure security center experience with basic security features PricingTierFree PricingTier = "Free" // PricingTierStandard - Get the standard Azure security center experience with advanced security features PricingTierStandard PricingTier = "Standard" )
func PossiblePricingTierValues ¶
func PossiblePricingTierValues() []PricingTier
PossiblePricingTierValues returns the possible values for the PricingTier const type.
type PricingsClient ¶
type PricingsClient struct {
// contains filtered or unexported fields
}
PricingsClient contains the methods for the Pricings group. Don't use this type directly, use NewPricingsClient() instead.
func NewPricingsClient ¶
func NewPricingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PricingsClient, error)
NewPricingsClient creates a new instance of PricingsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PricingsClient) Get ¶
func (client *PricingsClient) Get(ctx context.Context, pricingName string, options *PricingsClientGetOptions) (PricingsClientGetResponse, error)
Get - Gets a provided Security Center pricing configuration in the subscription. If the operation fails it returns an *azcore.ResponseError type. pricingName - name of the pricing configuration options - PricingsClientGetOptions contains the optional parameters for the PricingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2022-03-01/examples/Pricings/GetPricingByName_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewPricingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<pricing-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*PricingsClient) List ¶
func (client *PricingsClient) List(ctx context.Context, options *PricingsClientListOptions) (PricingsClientListResponse, error)
List - Lists Security Center pricing configurations in the subscription. If the operation fails it returns an *azcore.ResponseError type. options - PricingsClientListOptions contains the optional parameters for the PricingsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2022-03-01/examples/Pricings/ListPricings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewPricingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*PricingsClient) Update ¶
func (client *PricingsClient) Update(ctx context.Context, pricingName string, pricing Pricing, options *PricingsClientUpdateOptions) (PricingsClientUpdateResponse, error)
Update - Updates a provided Security Center pricing configuration in the subscription. If the operation fails it returns an *azcore.ResponseError type. pricingName - name of the pricing configuration pricing - Pricing object options - PricingsClientUpdateOptions contains the optional parameters for the PricingsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2022-03-01/examples/Pricings/PutPricingByName_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewPricingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<pricing-name>", armsecurity.Pricing{ Properties: &armsecurity.PricingProperties{ PricingTier: to.Ptr(armsecurity.PricingTierStandard), SubPlan: to.Ptr("<sub-plan>"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type PricingsClientGetOptions ¶ added in v0.3.0
type PricingsClientGetOptions struct { }
PricingsClientGetOptions contains the optional parameters for the PricingsClient.Get method.
type PricingsClientGetResponse ¶ added in v0.3.0
type PricingsClientGetResponse struct {
Pricing
}
PricingsClientGetResponse contains the response from method PricingsClient.Get.
type PricingsClientListOptions ¶ added in v0.3.0
type PricingsClientListOptions struct { }
PricingsClientListOptions contains the optional parameters for the PricingsClient.List method.
type PricingsClientListResponse ¶ added in v0.3.0
type PricingsClientListResponse struct {
PricingList
}
PricingsClientListResponse contains the response from method PricingsClient.List.
type PricingsClientUpdateOptions ¶ added in v0.3.0
type PricingsClientUpdateOptions struct { }
PricingsClientUpdateOptions contains the optional parameters for the PricingsClient.Update method.
type PricingsClientUpdateResponse ¶ added in v0.3.0
type PricingsClientUpdateResponse struct {
Pricing
}
PricingsClientUpdateResponse contains the response from method PricingsClient.Update.
type ProcessNotAllowed ¶
type ProcessNotAllowed struct { // REQUIRED; The values to allow. The format of the values depends on the rule type. AllowlistValues []*string `json:"allowlistValues,omitempty"` // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The value type of the items in the list. ValueType *ValueType `json:"valueType,omitempty" azure:"ro"` }
ProcessNotAllowed - Execution of a process that isn't allowed. Allow list consists of process names to allow.
func (*ProcessNotAllowed) GetAllowlistCustomAlertRule ¶ added in v0.3.0
func (p *ProcessNotAllowed) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type ProcessNotAllowed.
func (*ProcessNotAllowed) GetCustomAlertRule ¶ added in v0.3.0
func (p *ProcessNotAllowed) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ProcessNotAllowed.
func (*ProcessNotAllowed) GetListCustomAlertRule ¶ added in v0.3.0
func (p *ProcessNotAllowed) GetListCustomAlertRule() *ListCustomAlertRule
GetListCustomAlertRule implements the ListCustomAlertRuleClassification interface for type ProcessNotAllowed.
func (ProcessNotAllowed) MarshalJSON ¶
func (p ProcessNotAllowed) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProcessNotAllowed.
func (*ProcessNotAllowed) UnmarshalJSON ¶ added in v0.3.0
func (p *ProcessNotAllowed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProcessNotAllowed.
type PropertyType ¶
type PropertyType string
PropertyType - The data type of the compared operands (string, integer, floating point number or a boolean true/false]
const ( PropertyTypeBoolean PropertyType = "Boolean" PropertyTypeInteger PropertyType = "Integer" PropertyTypeNumber PropertyType = "Number" PropertyTypeString PropertyType = "String" )
func PossiblePropertyTypeValues ¶
func PossiblePropertyTypeValues() []PropertyType
PossiblePropertyTypeValues returns the possible values for the PropertyType const type.
type ProtectionMode ¶
type ProtectionMode struct { // The application control policy enforcement/protection mode of the machine group Exe *EnforcementMode `json:"exe,omitempty"` // The application control policy enforcement/protection mode of the machine group Executable *EnforcementMode `json:"executable,omitempty"` // The application control policy enforcement/protection mode of the machine group Msi *EnforcementMode `json:"msi,omitempty"` // The application control policy enforcement/protection mode of the machine group Script *EnforcementMode `json:"script,omitempty"` }
ProtectionMode - The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux.
type Protocol ¶
type Protocol string
func PossibleProtocolValues ¶
func PossibleProtocolValues() []Protocol
PossibleProtocolValues returns the possible values for the Protocol const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The security family provisioning State
const ( ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type ProxyServerProperties ¶
type ProxyServerProperties struct { // Proxy server IP IP *string `json:"ip,omitempty"` // Proxy server port Port *string `json:"port,omitempty"` }
ProxyServerProperties - For a non-Azure machine that is not connected directly to the internet, specify a proxy server that the non-Azure machine can use.
type PublisherInfo ¶
type PublisherInfo struct { // The "OriginalName" field taken from the file's version resource BinaryName *string `json:"binaryName,omitempty"` // The product name taken from the file's version resource ProductName *string `json:"productName,omitempty"` // The Subject field of the x.509 certificate used to sign the code, using the following fields - O = Organization, L = Locality, // S = State or Province, and C = Country PublisherName *string `json:"publisherName,omitempty"` // The binary file version taken from the file's version resource Version *string `json:"version,omitempty"` }
PublisherInfo - Represents the publisher information of a process/rule
type QueryCheck ¶
type QueryCheck struct { // Column names of expected result. ColumnNames []*string `json:"columnNames,omitempty"` // Expected result. ExpectedResult [][]*string `json:"expectedResult,omitempty"` // The rule query. Query *string `json:"query,omitempty"` }
QueryCheck - The rule query details.
func (QueryCheck) MarshalJSON ¶
func (q QueryCheck) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QueryCheck.
type QueuePurgesNotInAllowedRange ¶
type QueuePurgesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
QueuePurgesNotInAllowedRange - Number of device queue purges is not in allowed range.
func (*QueuePurgesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (q *QueuePurgesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type QueuePurgesNotInAllowedRange.
func (*QueuePurgesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (q *QueuePurgesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type QueuePurgesNotInAllowedRange.
func (*QueuePurgesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (q *QueuePurgesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type QueuePurgesNotInAllowedRange.
func (QueuePurgesNotInAllowedRange) MarshalJSON ¶
func (q QueuePurgesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QueuePurgesNotInAllowedRange.
func (*QueuePurgesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (q *QueuePurgesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type QueuePurgesNotInAllowedRange.
type Rank ¶
type Rank string
Rank - The rank of the sensitivity label.
func PossibleRankValues ¶
func PossibleRankValues() []Rank
PossibleRankValues returns the possible values for the Rank const type.
type RecommendationAction ¶
type RecommendationAction string
RecommendationAction - The recommendation action of the machine or rule
const ( RecommendationActionAdd RecommendationAction = "Add" RecommendationActionRecommended RecommendationAction = "Recommended" RecommendationActionRemove RecommendationAction = "Remove" )
func PossibleRecommendationActionValues ¶
func PossibleRecommendationActionValues() []RecommendationAction
PossibleRecommendationActionValues returns the possible values for the RecommendationAction const type.
type RecommendationConfigStatus ¶
type RecommendationConfigStatus string
RecommendationConfigStatus - Recommendation status. When the recommendation status is disabled recommendations are not generated.
const ( RecommendationConfigStatusDisabled RecommendationConfigStatus = "Disabled" RecommendationConfigStatusEnabled RecommendationConfigStatus = "Enabled" )
func PossibleRecommendationConfigStatusValues ¶
func PossibleRecommendationConfigStatusValues() []RecommendationConfigStatus
PossibleRecommendationConfigStatusValues returns the possible values for the RecommendationConfigStatus const type.
type RecommendationConfigurationProperties ¶
type RecommendationConfigurationProperties struct { // REQUIRED; The type of IoT Security recommendation. RecommendationType *RecommendationType `json:"recommendationType,omitempty"` // REQUIRED; Recommendation status. When the recommendation status is disabled recommendations are not generated. Status *RecommendationConfigStatus `json:"status,omitempty"` // READ-ONLY Name *string `json:"name,omitempty" azure:"ro"` }
RecommendationConfigurationProperties - The type of IoT Security recommendation.
type RecommendationStatus ¶
type RecommendationStatus string
RecommendationStatus - The initial recommendation status of the machine group or machine
const ( RecommendationStatusNoStatus RecommendationStatus = "NoStatus" RecommendationStatusNotAvailable RecommendationStatus = "NotAvailable" RecommendationStatusNotRecommended RecommendationStatus = "NotRecommended" RecommendationStatusRecommended RecommendationStatus = "Recommended" )
func PossibleRecommendationStatusValues ¶
func PossibleRecommendationStatusValues() []RecommendationStatus
PossibleRecommendationStatusValues returns the possible values for the RecommendationStatus const type.
type RecommendationType ¶
type RecommendationType string
RecommendationType - The type of IoT Security recommendation.
const ( // RecommendationTypeIoTAcrauthentication - Authentication schema used for pull an edge module from an ACR repository does // not use Service Principal Authentication. RecommendationTypeIoTAcrauthentication RecommendationType = "IoT_ACRAuthentication" // RecommendationTypeIoTAgentSendsUnutilizedMessages - IoT agent message size capacity is currently underutilized, causing // an increase in the number of sent messages. Adjust message intervals for better utilization. RecommendationTypeIoTAgentSendsUnutilizedMessages RecommendationType = "IoT_AgentSendsUnutilizedMessages" // RecommendationTypeIoTBaseline - Identified security related system configuration issues. RecommendationTypeIoTBaseline RecommendationType = "IoT_Baseline" // RecommendationTypeIoTEdgeHubMemOptimize - You can optimize Edge Hub memory usage by turning off protocol heads for any // protocols not used by Edge modules in your solution. RecommendationTypeIoTEdgeHubMemOptimize RecommendationType = "IoT_EdgeHubMemOptimize" // RecommendationTypeIoTEdgeLoggingOptions - Logging is disabled for this edge module. RecommendationTypeIoTEdgeLoggingOptions RecommendationType = "IoT_EdgeLoggingOptions" // RecommendationTypeIoTInconsistentModuleSettings - A minority within a device security group has inconsistent Edge Module // settings with the rest of their group. RecommendationTypeIoTInconsistentModuleSettings RecommendationType = "IoT_InconsistentModuleSettings" // RecommendationTypeIoTInstallAgent - Install the Azure Security of Things Agent. RecommendationTypeIoTInstallAgent RecommendationType = "IoT_InstallAgent" // RecommendationTypeIoTIpfilterDenyAll - IP Filter Configuration should have rules defined for allowed traffic and should // deny all other traffic by default. RecommendationTypeIoTIpfilterDenyAll RecommendationType = "IoT_IPFilter_DenyAll" // RecommendationTypeIoTIpfilterPermissiveRule - An Allow IP Filter rules source IP range is too large. Overly permissive // rules might expose your IoT hub to malicious intenders. RecommendationTypeIoTIpfilterPermissiveRule RecommendationType = "IoT_IPFilter_PermissiveRule" // RecommendationTypeIoTOpenPorts - A listening endpoint was found on the device. RecommendationTypeIoTOpenPorts RecommendationType = "IoT_OpenPorts" // RecommendationTypeIoTPermissiveFirewallPolicy - An Allowed firewall policy was found (INPUT/OUTPUT). The policy should // Deny all traffic by default and define rules to allow necessary communication to/from the device. RecommendationTypeIoTPermissiveFirewallPolicy RecommendationType = "IoT_PermissiveFirewallPolicy" // RecommendationTypeIoTPermissiveInputFirewallRules - A rule in the firewall has been found that contains a permissive pattern // for a wide range of IP addresses or Ports. RecommendationTypeIoTPermissiveInputFirewallRules RecommendationType = "IoT_PermissiveInputFirewallRules" // RecommendationTypeIoTPermissiveOutputFirewallRules - A rule in the firewall has been found that contains a permissive pattern // for a wide range of IP addresses or Ports. RecommendationTypeIoTPermissiveOutputFirewallRules RecommendationType = "IoT_PermissiveOutputFirewallRules" // RecommendationTypeIoTPrivilegedDockerOptions - Edge module is configured to run in privileged mode, with extensive Linux // capabilities or with host-level network access (send/receive data to host machine). RecommendationTypeIoTPrivilegedDockerOptions RecommendationType = "IoT_PrivilegedDockerOptions" // could indicate an illegitimate device impersonating a legitimate device. It also exposes the risk of device impersonation // by an attacker. RecommendationTypeIoTSharedCredentials RecommendationType = "IoT_SharedCredentials" // RecommendationTypeIoTVulnerableTLSCipherSuite - Insecure TLS configurations detected. Immediate upgrade recommended. RecommendationTypeIoTVulnerableTLSCipherSuite RecommendationType = "IoT_VulnerableTLSCipherSuite" )
func PossibleRecommendationTypeValues ¶
func PossibleRecommendationTypeValues() []RecommendationType
PossibleRecommendationTypeValues returns the possible values for the RecommendationType const type.
type RegulatoryComplianceAssessment ¶
type RegulatoryComplianceAssessment struct { // Regulatory compliance assessment data Properties *RegulatoryComplianceAssessmentProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
RegulatoryComplianceAssessment - Regulatory compliance assessment details and state
type RegulatoryComplianceAssessmentList ¶
type RegulatoryComplianceAssessmentList struct { // REQUIRED Value []*RegulatoryComplianceAssessment `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
RegulatoryComplianceAssessmentList - List of regulatory compliance assessment response
func (RegulatoryComplianceAssessmentList) MarshalJSON ¶
func (r RegulatoryComplianceAssessmentList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegulatoryComplianceAssessmentList.
type RegulatoryComplianceAssessmentProperties ¶
type RegulatoryComplianceAssessmentProperties struct { // Aggregative state based on the assessment's scanned resources states State *State `json:"state,omitempty"` // READ-ONLY; Link to more detailed assessment results data. The response type will be according to the assessmentType field AssessmentDetailsLink *string `json:"assessmentDetailsLink,omitempty" azure:"ro"` // READ-ONLY; The expected type of assessment contained in the AssessmentDetailsLink AssessmentType *string `json:"assessmentType,omitempty" azure:"ro"` // READ-ONLY; The description of the regulatory compliance assessment Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The given assessment's related resources count with failed state. FailedResources *int32 `json:"failedResources,omitempty" azure:"ro"` // READ-ONLY; The given assessment's related resources count with passed state. PassedResources *int32 `json:"passedResources,omitempty" azure:"ro"` // READ-ONLY; The given assessment's related resources count with skipped state. SkippedResources *int32 `json:"skippedResources,omitempty" azure:"ro"` // READ-ONLY; The given assessment's related resources count with unsupported state. UnsupportedResources *int32 `json:"unsupportedResources,omitempty" azure:"ro"` }
RegulatoryComplianceAssessmentProperties - Regulatory compliance assessment data
type RegulatoryComplianceAssessmentsClient ¶
type RegulatoryComplianceAssessmentsClient struct {
// contains filtered or unexported fields
}
RegulatoryComplianceAssessmentsClient contains the methods for the RegulatoryComplianceAssessments group. Don't use this type directly, use NewRegulatoryComplianceAssessmentsClient() instead.
func NewRegulatoryComplianceAssessmentsClient ¶
func NewRegulatoryComplianceAssessmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RegulatoryComplianceAssessmentsClient, error)
NewRegulatoryComplianceAssessmentsClient creates a new instance of RegulatoryComplianceAssessmentsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RegulatoryComplianceAssessmentsClient) Get ¶
func (client *RegulatoryComplianceAssessmentsClient) Get(ctx context.Context, regulatoryComplianceStandardName string, regulatoryComplianceControlName string, regulatoryComplianceAssessmentName string, options *RegulatoryComplianceAssessmentsClientGetOptions) (RegulatoryComplianceAssessmentsClientGetResponse, error)
Get - Supported regulatory compliance details and state for selected assessment If the operation fails it returns an *azcore.ResponseError type. regulatoryComplianceStandardName - Name of the regulatory compliance standard object regulatoryComplianceControlName - Name of the regulatory compliance control object regulatoryComplianceAssessmentName - Name of the regulatory compliance assessment object options - RegulatoryComplianceAssessmentsClientGetOptions contains the optional parameters for the RegulatoryComplianceAssessmentsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceAssessment_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewRegulatoryComplianceAssessmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<regulatory-compliance-standard-name>", "<regulatory-compliance-control-name>", "<regulatory-compliance-assessment-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*RegulatoryComplianceAssessmentsClient) List ¶
func (client *RegulatoryComplianceAssessmentsClient) List(regulatoryComplianceStandardName string, regulatoryComplianceControlName string, options *RegulatoryComplianceAssessmentsClientListOptions) *runtime.Pager[RegulatoryComplianceAssessmentsClientListResponse]
List - Details and state of assessments mapped to selected regulatory compliance control If the operation fails it returns an *azcore.ResponseError type. regulatoryComplianceStandardName - Name of the regulatory compliance standard object regulatoryComplianceControlName - Name of the regulatory compliance control object options - RegulatoryComplianceAssessmentsClientListOptions contains the optional parameters for the RegulatoryComplianceAssessmentsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceAssessmentList_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewRegulatoryComplianceAssessmentsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<regulatory-compliance-standard-name>", "<regulatory-compliance-control-name>", &armsecurity.RegulatoryComplianceAssessmentsClientListOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type RegulatoryComplianceAssessmentsClientGetOptions ¶ added in v0.3.0
type RegulatoryComplianceAssessmentsClientGetOptions struct { }
RegulatoryComplianceAssessmentsClientGetOptions contains the optional parameters for the RegulatoryComplianceAssessmentsClient.Get method.
type RegulatoryComplianceAssessmentsClientGetResponse ¶ added in v0.3.0
type RegulatoryComplianceAssessmentsClientGetResponse struct {
RegulatoryComplianceAssessment
}
RegulatoryComplianceAssessmentsClientGetResponse contains the response from method RegulatoryComplianceAssessmentsClient.Get.
type RegulatoryComplianceAssessmentsClientListOptions ¶ added in v0.3.0
type RegulatoryComplianceAssessmentsClientListOptions struct { // OData filter. Optional. Filter *string }
RegulatoryComplianceAssessmentsClientListOptions contains the optional parameters for the RegulatoryComplianceAssessmentsClient.List method.
type RegulatoryComplianceAssessmentsClientListResponse ¶ added in v0.3.0
type RegulatoryComplianceAssessmentsClientListResponse struct {
RegulatoryComplianceAssessmentList
}
RegulatoryComplianceAssessmentsClientListResponse contains the response from method RegulatoryComplianceAssessmentsClient.List.
type RegulatoryComplianceControl ¶
type RegulatoryComplianceControl struct { // Regulatory compliance control data Properties *RegulatoryComplianceControlProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
RegulatoryComplianceControl - Regulatory compliance control details and state
type RegulatoryComplianceControlList ¶
type RegulatoryComplianceControlList struct { // REQUIRED; List of regulatory compliance controls Value []*RegulatoryComplianceControl `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
RegulatoryComplianceControlList - List of regulatory compliance controls response
func (RegulatoryComplianceControlList) MarshalJSON ¶
func (r RegulatoryComplianceControlList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegulatoryComplianceControlList.
type RegulatoryComplianceControlProperties ¶
type RegulatoryComplianceControlProperties struct { // Aggregative state based on the control's supported assessments states State *State `json:"state,omitempty"` // READ-ONLY; The description of the regulatory compliance control Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The number of supported regulatory compliance assessments of the given control with a failed state FailedAssessments *int32 `json:"failedAssessments,omitempty" azure:"ro"` // READ-ONLY; The number of supported regulatory compliance assessments of the given control with a passed state PassedAssessments *int32 `json:"passedAssessments,omitempty" azure:"ro"` // READ-ONLY; The number of supported regulatory compliance assessments of the given control with a skipped state SkippedAssessments *int32 `json:"skippedAssessments,omitempty" azure:"ro"` }
RegulatoryComplianceControlProperties - Regulatory compliance control data
type RegulatoryComplianceControlsClient ¶
type RegulatoryComplianceControlsClient struct {
// contains filtered or unexported fields
}
RegulatoryComplianceControlsClient contains the methods for the RegulatoryComplianceControls group. Don't use this type directly, use NewRegulatoryComplianceControlsClient() instead.
func NewRegulatoryComplianceControlsClient ¶
func NewRegulatoryComplianceControlsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RegulatoryComplianceControlsClient, error)
NewRegulatoryComplianceControlsClient creates a new instance of RegulatoryComplianceControlsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RegulatoryComplianceControlsClient) Get ¶
func (client *RegulatoryComplianceControlsClient) Get(ctx context.Context, regulatoryComplianceStandardName string, regulatoryComplianceControlName string, options *RegulatoryComplianceControlsClientGetOptions) (RegulatoryComplianceControlsClientGetResponse, error)
Get - Selected regulatory compliance control details and state If the operation fails it returns an *azcore.ResponseError type. regulatoryComplianceStandardName - Name of the regulatory compliance standard object regulatoryComplianceControlName - Name of the regulatory compliance control object options - RegulatoryComplianceControlsClientGetOptions contains the optional parameters for the RegulatoryComplianceControlsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceControl_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewRegulatoryComplianceControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<regulatory-compliance-standard-name>", "<regulatory-compliance-control-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*RegulatoryComplianceControlsClient) List ¶
func (client *RegulatoryComplianceControlsClient) List(regulatoryComplianceStandardName string, options *RegulatoryComplianceControlsClientListOptions) *runtime.Pager[RegulatoryComplianceControlsClientListResponse]
List - All supported regulatory compliance controls details and state for selected standard If the operation fails it returns an *azcore.ResponseError type. regulatoryComplianceStandardName - Name of the regulatory compliance standard object options - RegulatoryComplianceControlsClientListOptions contains the optional parameters for the RegulatoryComplianceControlsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceControlList_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewRegulatoryComplianceControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<regulatory-compliance-standard-name>", &armsecurity.RegulatoryComplianceControlsClientListOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type RegulatoryComplianceControlsClientGetOptions ¶ added in v0.3.0
type RegulatoryComplianceControlsClientGetOptions struct { }
RegulatoryComplianceControlsClientGetOptions contains the optional parameters for the RegulatoryComplianceControlsClient.Get method.
type RegulatoryComplianceControlsClientGetResponse ¶ added in v0.3.0
type RegulatoryComplianceControlsClientGetResponse struct {
RegulatoryComplianceControl
}
RegulatoryComplianceControlsClientGetResponse contains the response from method RegulatoryComplianceControlsClient.Get.
type RegulatoryComplianceControlsClientListOptions ¶ added in v0.3.0
type RegulatoryComplianceControlsClientListOptions struct { // OData filter. Optional. Filter *string }
RegulatoryComplianceControlsClientListOptions contains the optional parameters for the RegulatoryComplianceControlsClient.List method.
type RegulatoryComplianceControlsClientListResponse ¶ added in v0.3.0
type RegulatoryComplianceControlsClientListResponse struct {
RegulatoryComplianceControlList
}
RegulatoryComplianceControlsClientListResponse contains the response from method RegulatoryComplianceControlsClient.List.
type RegulatoryComplianceStandard ¶
type RegulatoryComplianceStandard struct { // Regulatory compliance standard data Properties *RegulatoryComplianceStandardProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
RegulatoryComplianceStandard - Regulatory compliance standard details and state
type RegulatoryComplianceStandardList ¶
type RegulatoryComplianceStandardList struct { // REQUIRED Value []*RegulatoryComplianceStandard `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
RegulatoryComplianceStandardList - List of regulatory compliance standards response
func (RegulatoryComplianceStandardList) MarshalJSON ¶
func (r RegulatoryComplianceStandardList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegulatoryComplianceStandardList.
type RegulatoryComplianceStandardProperties ¶
type RegulatoryComplianceStandardProperties struct { // Aggregative state based on the standard's supported controls states State *State `json:"state,omitempty"` // READ-ONLY; The number of supported regulatory compliance controls of the given standard with a failed state FailedControls *int32 `json:"failedControls,omitempty" azure:"ro"` // READ-ONLY; The number of supported regulatory compliance controls of the given standard with a passed state PassedControls *int32 `json:"passedControls,omitempty" azure:"ro"` // READ-ONLY; The number of supported regulatory compliance controls of the given standard with a skipped state SkippedControls *int32 `json:"skippedControls,omitempty" azure:"ro"` // READ-ONLY; The number of regulatory compliance controls of the given standard which are unsupported by automated assessments UnsupportedControls *int32 `json:"unsupportedControls,omitempty" azure:"ro"` }
RegulatoryComplianceStandardProperties - Regulatory compliance standard data
type RegulatoryComplianceStandardsClient ¶
type RegulatoryComplianceStandardsClient struct {
// contains filtered or unexported fields
}
RegulatoryComplianceStandardsClient contains the methods for the RegulatoryComplianceStandards group. Don't use this type directly, use NewRegulatoryComplianceStandardsClient() instead.
func NewRegulatoryComplianceStandardsClient ¶
func NewRegulatoryComplianceStandardsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RegulatoryComplianceStandardsClient, error)
NewRegulatoryComplianceStandardsClient creates a new instance of RegulatoryComplianceStandardsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*RegulatoryComplianceStandardsClient) Get ¶
func (client *RegulatoryComplianceStandardsClient) Get(ctx context.Context, regulatoryComplianceStandardName string, options *RegulatoryComplianceStandardsClientGetOptions) (RegulatoryComplianceStandardsClientGetResponse, error)
Get - Supported regulatory compliance details state for selected standard If the operation fails it returns an *azcore.ResponseError type. regulatoryComplianceStandardName - Name of the regulatory compliance standard object options - RegulatoryComplianceStandardsClientGetOptions contains the optional parameters for the RegulatoryComplianceStandardsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceStandard_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewRegulatoryComplianceStandardsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<regulatory-compliance-standard-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*RegulatoryComplianceStandardsClient) List ¶
func (client *RegulatoryComplianceStandardsClient) List(options *RegulatoryComplianceStandardsClientListOptions) *runtime.Pager[RegulatoryComplianceStandardsClientListResponse]
List - Supported regulatory compliance standards details and state If the operation fails it returns an *azcore.ResponseError type. options - RegulatoryComplianceStandardsClientListOptions contains the optional parameters for the RegulatoryComplianceStandardsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceStandardList_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewRegulatoryComplianceStandardsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(&armsecurity.RegulatoryComplianceStandardsClientListOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type RegulatoryComplianceStandardsClientGetOptions ¶ added in v0.3.0
type RegulatoryComplianceStandardsClientGetOptions struct { }
RegulatoryComplianceStandardsClientGetOptions contains the optional parameters for the RegulatoryComplianceStandardsClient.Get method.
type RegulatoryComplianceStandardsClientGetResponse ¶ added in v0.3.0
type RegulatoryComplianceStandardsClientGetResponse struct {
RegulatoryComplianceStandard
}
RegulatoryComplianceStandardsClientGetResponse contains the response from method RegulatoryComplianceStandardsClient.Get.
type RegulatoryComplianceStandardsClientListOptions ¶ added in v0.3.0
type RegulatoryComplianceStandardsClientListOptions struct { // OData filter. Optional. Filter *string }
RegulatoryComplianceStandardsClientListOptions contains the optional parameters for the RegulatoryComplianceStandardsClient.List method.
type RegulatoryComplianceStandardsClientListResponse ¶ added in v0.3.0
type RegulatoryComplianceStandardsClientListResponse struct {
RegulatoryComplianceStandardList
}
RegulatoryComplianceStandardsClientListResponse contains the response from method RegulatoryComplianceStandardsClient.List.
type Remediation ¶
type Remediation struct { // Is remediation automated. Automated *bool `json:"automated,omitempty"` // Remediation description. Description *string `json:"description,omitempty"` // Optional link to remediate in Azure Portal. PortalLink *string `json:"portalLink,omitempty"` // Remediation script. Scripts []*string `json:"scripts,omitempty"` }
Remediation details.
func (Remediation) MarshalJSON ¶
func (r Remediation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Remediation.
type ReportedSeverity ¶
type ReportedSeverity string
ReportedSeverity - Assessed alert severity.
const ( ReportedSeverityHigh ReportedSeverity = "High" ReportedSeverityInformational ReportedSeverity = "Informational" ReportedSeverityLow ReportedSeverity = "Low" ReportedSeverityMedium ReportedSeverity = "Medium" )
func PossibleReportedSeverityValues ¶
func PossibleReportedSeverityValues() []ReportedSeverity
PossibleReportedSeverityValues returns the possible values for the ReportedSeverity const type.
type Resource ¶
type Resource struct { // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Describes an Azure resource.
type ResourceDetails ¶
type ResourceDetails struct { // REQUIRED; The platform where the assessed resource resides Source *Source `json:"source,omitempty"` }
ResourceDetails - Details of the resource that was assessed
func (*ResourceDetails) GetResourceDetails ¶
func (r *ResourceDetails) GetResourceDetails() *ResourceDetails
GetResourceDetails implements the ResourceDetailsClassification interface for type ResourceDetails.
type ResourceDetailsClassification ¶
type ResourceDetailsClassification interface { // GetResourceDetails returns the ResourceDetails content of the underlying type. GetResourceDetails() *ResourceDetails }
ResourceDetailsClassification provides polymorphic access to related types. Call the interface's GetResourceDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureResourceDetails, *OnPremiseResourceDetails, *OnPremiseSQLResourceDetails, *ResourceDetails
type ResourceIdentifier ¶
type ResourceIdentifier struct { // REQUIRED; There can be multiple identifiers of different type per alert, this field specify the identifier type. Type *ResourceIdentifierType `json:"type,omitempty"` }
ResourceIdentifier - A resource identifier for an alert which can be used to direct the alert to the right product exposure group (tenant, workspace, subscription etc.).
func (*ResourceIdentifier) GetResourceIdentifier ¶
func (r *ResourceIdentifier) GetResourceIdentifier() *ResourceIdentifier
GetResourceIdentifier implements the ResourceIdentifierClassification interface for type ResourceIdentifier.
type ResourceIdentifierClassification ¶
type ResourceIdentifierClassification interface { // GetResourceIdentifier returns the ResourceIdentifier content of the underlying type. GetResourceIdentifier() *ResourceIdentifier }
ResourceIdentifierClassification provides polymorphic access to related types. Call the interface's GetResourceIdentifier() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureResourceIdentifier, *LogAnalyticsIdentifier, *ResourceIdentifier
type ResourceIdentifierType ¶
type ResourceIdentifierType string
ResourceIdentifierType - There can be multiple identifiers of different type per alert, this field specify the identifier type.
const ( ResourceIdentifierTypeAzureResource ResourceIdentifierType = "AzureResource" ResourceIdentifierTypeLogAnalytics ResourceIdentifierType = "LogAnalytics" )
func PossibleResourceIdentifierTypeValues ¶
func PossibleResourceIdentifierTypeValues() []ResourceIdentifierType
PossibleResourceIdentifierTypeValues returns the possible values for the ResourceIdentifierType const type.
type ResourceStatus ¶
type ResourceStatus string
ResourceStatus - The status of the resource regarding a single assessment
const ( // ResourceStatusHealthy - This assessment on the resource is healthy ResourceStatusHealthy ResourceStatus = "Healthy" // ResourceStatusNotApplicable - This assessment is not applicable to this resource ResourceStatusNotApplicable ResourceStatus = "NotApplicable" // ResourceStatusNotHealthy - This assessment on the resource is not healthy ResourceStatusNotHealthy ResourceStatus = "NotHealthy" // ResourceStatusOffByPolicy - This assessment is turned off by policy on this subscription ResourceStatusOffByPolicy ResourceStatus = "OffByPolicy" )
func PossibleResourceStatusValues ¶
func PossibleResourceStatusValues() []ResourceStatus
PossibleResourceStatusValues returns the possible values for the ResourceStatus const type.
type Rule ¶
type Rule struct { // The rule's destination port DestinationPort *int32 `json:"destinationPort,omitempty"` // The rule's direction Direction *Direction `json:"direction,omitempty"` // The remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol IPAddresses []*string `json:"ipAddresses,omitempty"` // The name of the rule Name *string `json:"name,omitempty"` // The rule's transport protocols Protocols []*TransportProtocol `json:"protocols,omitempty"` }
Rule - Describes remote addresses that is recommended to communicate with the Azure resource on some (Protocol, Port, Direction). All other remote addresses are recommended to be blocked
func (Rule) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Rule.
type RuleResults ¶
type RuleResults struct { // Rule results properties. Properties *RuleResultsProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
RuleResults - Rule results.
type RuleResultsInput ¶
type RuleResultsInput struct { // Take results from latest scan. LatestScan *bool `json:"latestScan,omitempty"` // Expected results to be inserted into the baseline. Leave this field empty it LatestScan == true. Results [][]*string `json:"results,omitempty"` }
RuleResultsInput - Rule results input.
func (RuleResultsInput) MarshalJSON ¶
func (r RuleResultsInput) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RuleResultsInput.
type RuleResultsProperties ¶
type RuleResultsProperties struct { // Expected results in the baseline. Results [][]*string `json:"results,omitempty"` }
RuleResultsProperties - Rule results properties.
func (RuleResultsProperties) MarshalJSON ¶
func (r RuleResultsProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RuleResultsProperties.
type RuleSeverity ¶
type RuleSeverity string
RuleSeverity - The rule severity.
const ( // RuleSeverityHigh - High RuleSeverityHigh RuleSeverity = "High" // RuleSeverityInformational - Informational RuleSeverityInformational RuleSeverity = "Informational" // RuleSeverityLow - Low RuleSeverityLow RuleSeverity = "Low" // RuleSeverityMedium - Medium RuleSeverityMedium RuleSeverity = "Medium" // RuleSeverityObsolete - Obsolete RuleSeverityObsolete RuleSeverity = "Obsolete" )
func PossibleRuleSeverityValues ¶
func PossibleRuleSeverityValues() []RuleSeverity
PossibleRuleSeverityValues returns the possible values for the RuleSeverity const type.
type RuleState ¶
type RuleState string
RuleState - Possible states of the rule
func PossibleRuleStateValues ¶
func PossibleRuleStateValues() []RuleState
PossibleRuleStateValues returns the possible values for the RuleState const type.
type RuleStatus ¶
type RuleStatus string
RuleStatus - The rule result status.
const ( // RuleStatusFinding - Finding RuleStatusFinding RuleStatus = "Finding" // RuleStatusInternalError - InternalError RuleStatusInternalError RuleStatus = "InternalError" // RuleStatusNonFinding - NonFinding RuleStatusNonFinding RuleStatus = "NonFinding" )
func PossibleRuleStatusValues ¶
func PossibleRuleStatusValues() []RuleStatus
PossibleRuleStatusValues returns the possible values for the RuleStatus const type.
type RuleType ¶
type RuleType string
RuleType - The rule type.
const ( // RuleTypeBaselineExpected - BaselineExpected RuleTypeBaselineExpected RuleType = "BaselineExpected" // RuleTypeBinary - Binary RuleTypeBinary RuleType = "Binary" // RuleTypeNegativeList - NegativeList RuleTypeNegativeList RuleType = "NegativeList" // RuleTypePositiveList - PositiveList RuleTypePositiveList RuleType = "PositiveList" )
func PossibleRuleTypeValues ¶
func PossibleRuleTypeValues() []RuleType
PossibleRuleTypeValues returns the possible values for the RuleType const type.
type RulesResults ¶
type RulesResults struct { // List of rule results. Value []*RuleResults `json:"value,omitempty"` }
RulesResults - A list of rules results.
func (RulesResults) MarshalJSON ¶
func (r RulesResults) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RulesResults.
type RulesResultsInput ¶
type RulesResultsInput struct { // Take results from latest scan. LatestScan *bool `json:"latestScan,omitempty"` // Expected results to be inserted into the baseline. Leave this field empty it LatestScan == true. Results map[string][][]*string `json:"results,omitempty"` }
RulesResultsInput - Rules results input.
func (RulesResultsInput) MarshalJSON ¶
func (r RulesResultsInput) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RulesResultsInput.
type SQLServerVulnerabilityProperties ¶
type SQLServerVulnerabilityProperties struct { // REQUIRED; Sub-assessment resource type AssessedResourceType *AssessedResourceType `json:"assessedResourceType,omitempty"` // READ-ONLY; The T-SQL query that runs on your SQL database to perform the particular check Query *string `json:"query,omitempty" azure:"ro"` // READ-ONLY; The resource type the sub assessment refers to in its resource details Type *string `json:"type,omitempty" azure:"ro"` }
SQLServerVulnerabilityProperties - Details of the resource that was assessed
func (*SQLServerVulnerabilityProperties) GetAdditionalData ¶ added in v0.3.0
func (s *SQLServerVulnerabilityProperties) GetAdditionalData() *AdditionalData
GetAdditionalData implements the AdditionalDataClassification interface for type SQLServerVulnerabilityProperties.
func (SQLServerVulnerabilityProperties) MarshalJSON ¶
func (s SQLServerVulnerabilityProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SQLServerVulnerabilityProperties.
func (*SQLServerVulnerabilityProperties) UnmarshalJSON ¶
func (s *SQLServerVulnerabilityProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerVulnerabilityProperties.
type SQLVulnerabilityAssessmentBaselineRulesClient ¶
type SQLVulnerabilityAssessmentBaselineRulesClient struct {
// contains filtered or unexported fields
}
SQLVulnerabilityAssessmentBaselineRulesClient contains the methods for the SQLVulnerabilityAssessmentBaselineRules group. Don't use this type directly, use NewSQLVulnerabilityAssessmentBaselineRulesClient() instead.
func NewSQLVulnerabilityAssessmentBaselineRulesClient ¶
func NewSQLVulnerabilityAssessmentBaselineRulesClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLVulnerabilityAssessmentBaselineRulesClient, error)
NewSQLVulnerabilityAssessmentBaselineRulesClient creates a new instance of SQLVulnerabilityAssessmentBaselineRulesClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SQLVulnerabilityAssessmentBaselineRulesClient) Add ¶
func (client *SQLVulnerabilityAssessmentBaselineRulesClient) Add(ctx context.Context, workspaceID string, resourceID string, options *SQLVulnerabilityAssessmentBaselineRulesClientAddOptions) (SQLVulnerabilityAssessmentBaselineRulesClientAddResponse, error)
Add - Add a list of baseline rules. Will overwrite any previously existing results (for all rules). If the operation fails it returns an *azcore.ResponseError type. workspaceID - The workspace Id. resourceID - The identifier of the resource. options - SQLVulnerabilityAssessmentBaselineRulesClientAddOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.Add method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Add.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSQLVulnerabilityAssessmentBaselineRulesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Add(ctx, "<workspace-id>", "<resource-id>", &armsecurity.SQLVulnerabilityAssessmentBaselineRulesClientAddOptions{Body: &armsecurity.RulesResultsInput{ LatestScan: to.Ptr(false), Results: map[string][][]*string{ "VA1234": { { to.Ptr("userA"), to.Ptr("SELECT")}, { to.Ptr("userB"), to.Ptr("SELECT")}}, "VA5678": { { to.Ptr("Test"), to.Ptr("0.0.0.0"), to.Ptr("125.125.125.125")}}, }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SQLVulnerabilityAssessmentBaselineRulesClient) CreateOrUpdate ¶
func (client *SQLVulnerabilityAssessmentBaselineRulesClient) CreateOrUpdate(ctx context.Context, ruleID string, workspaceID string, resourceID string, options *SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateOptions) (SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates a Baseline for a rule in a database. Will overwrite any previously existing results. If the operation fails it returns an *azcore.ResponseError type. ruleID - The rule Id. workspaceID - The workspace Id. resourceID - The identifier of the resource. options - SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Put.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSQLVulnerabilityAssessmentBaselineRulesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<rule-id>", "<workspace-id>", "<resource-id>", &armsecurity.SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateOptions{Body: &armsecurity.RuleResultsInput{ LatestScan: to.Ptr(false), Results: [][]*string{ { to.Ptr("userA"), to.Ptr("SELECT")}, { to.Ptr("userB"), to.Ptr("SELECT")}}, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SQLVulnerabilityAssessmentBaselineRulesClient) Delete ¶
func (client *SQLVulnerabilityAssessmentBaselineRulesClient) Delete(ctx context.Context, ruleID string, workspaceID string, resourceID string, options *SQLVulnerabilityAssessmentBaselineRulesClientDeleteOptions) (SQLVulnerabilityAssessmentBaselineRulesClientDeleteResponse, error)
Delete - Deletes a rule from the Baseline of a given database. If the operation fails it returns an *azcore.ResponseError type. ruleID - The rule Id. workspaceID - The workspace Id. resourceID - The identifier of the resource. options - SQLVulnerabilityAssessmentBaselineRulesClientDeleteOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSQLVulnerabilityAssessmentBaselineRulesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<rule-id>", "<workspace-id>", "<resource-id>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*SQLVulnerabilityAssessmentBaselineRulesClient) Get ¶
func (client *SQLVulnerabilityAssessmentBaselineRulesClient) Get(ctx context.Context, ruleID string, workspaceID string, resourceID string, options *SQLVulnerabilityAssessmentBaselineRulesClientGetOptions) (SQLVulnerabilityAssessmentBaselineRulesClientGetResponse, error)
Get - Gets the results for a given rule in the Baseline. If the operation fails it returns an *azcore.ResponseError type. ruleID - The rule Id. workspaceID - The workspace Id. resourceID - The identifier of the resource. options - SQLVulnerabilityAssessmentBaselineRulesClientGetOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSQLVulnerabilityAssessmentBaselineRulesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<rule-id>", "<workspace-id>", "<resource-id>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SQLVulnerabilityAssessmentBaselineRulesClient) List ¶
func (client *SQLVulnerabilityAssessmentBaselineRulesClient) List(ctx context.Context, workspaceID string, resourceID string, options *SQLVulnerabilityAssessmentBaselineRulesClientListOptions) (SQLVulnerabilityAssessmentBaselineRulesClientListResponse, error)
List - Gets the results for all rules in the Baseline. If the operation fails it returns an *azcore.ResponseError type. workspaceID - The workspace Id. resourceID - The identifier of the resource. options - SQLVulnerabilityAssessmentBaselineRulesClientListOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSQLVulnerabilityAssessmentBaselineRulesClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, "<workspace-id>", "<resource-id>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type SQLVulnerabilityAssessmentBaselineRulesClientAddOptions ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientAddOptions struct { // The baseline rules. Body *RulesResultsInput }
SQLVulnerabilityAssessmentBaselineRulesClientAddOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.Add method.
type SQLVulnerabilityAssessmentBaselineRulesClientAddResponse ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientAddResponse struct {
RulesResults
}
SQLVulnerabilityAssessmentBaselineRulesClientAddResponse contains the response from method SQLVulnerabilityAssessmentBaselineRulesClient.Add.
type SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateOptions ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateOptions struct { // The baseline results for this rule. Body *RuleResultsInput }
SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.CreateOrUpdate method.
type SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateResponse ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateResponse struct {
RuleResults
}
SQLVulnerabilityAssessmentBaselineRulesClientCreateOrUpdateResponse contains the response from method SQLVulnerabilityAssessmentBaselineRulesClient.CreateOrUpdate.
type SQLVulnerabilityAssessmentBaselineRulesClientDeleteOptions ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientDeleteOptions struct { }
SQLVulnerabilityAssessmentBaselineRulesClientDeleteOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.Delete method.
type SQLVulnerabilityAssessmentBaselineRulesClientDeleteResponse ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientDeleteResponse struct { }
SQLVulnerabilityAssessmentBaselineRulesClientDeleteResponse contains the response from method SQLVulnerabilityAssessmentBaselineRulesClient.Delete.
type SQLVulnerabilityAssessmentBaselineRulesClientGetOptions ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientGetOptions struct { }
SQLVulnerabilityAssessmentBaselineRulesClientGetOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.Get method.
type SQLVulnerabilityAssessmentBaselineRulesClientGetResponse ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientGetResponse struct {
RuleResults
}
SQLVulnerabilityAssessmentBaselineRulesClientGetResponse contains the response from method SQLVulnerabilityAssessmentBaselineRulesClient.Get.
type SQLVulnerabilityAssessmentBaselineRulesClientListOptions ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientListOptions struct { }
SQLVulnerabilityAssessmentBaselineRulesClientListOptions contains the optional parameters for the SQLVulnerabilityAssessmentBaselineRulesClient.List method.
type SQLVulnerabilityAssessmentBaselineRulesClientListResponse ¶ added in v0.3.0
type SQLVulnerabilityAssessmentBaselineRulesClientListResponse struct {
RulesResults
}
SQLVulnerabilityAssessmentBaselineRulesClientListResponse contains the response from method SQLVulnerabilityAssessmentBaselineRulesClient.List.
type SQLVulnerabilityAssessmentScanResultsClient ¶
type SQLVulnerabilityAssessmentScanResultsClient struct {
// contains filtered or unexported fields
}
SQLVulnerabilityAssessmentScanResultsClient contains the methods for the SQLVulnerabilityAssessmentScanResults group. Don't use this type directly, use NewSQLVulnerabilityAssessmentScanResultsClient() instead.
func NewSQLVulnerabilityAssessmentScanResultsClient ¶
func NewSQLVulnerabilityAssessmentScanResultsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLVulnerabilityAssessmentScanResultsClient, error)
NewSQLVulnerabilityAssessmentScanResultsClient creates a new instance of SQLVulnerabilityAssessmentScanResultsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SQLVulnerabilityAssessmentScanResultsClient) Get ¶
func (client *SQLVulnerabilityAssessmentScanResultsClient) Get(ctx context.Context, scanID string, scanResultID string, workspaceID string, resourceID string, options *SQLVulnerabilityAssessmentScanResultsClientGetOptions) (SQLVulnerabilityAssessmentScanResultsClientGetResponse, error)
Get - Gets the scan results of a single rule in a scan record. If the operation fails it returns an *azcore.ResponseError type. scanID - The scan Id. Type 'latest' to get the scan results for the latest scan. scanResultID - The rule Id of the results. workspaceID - The workspace Id. resourceID - The identifier of the resource. options - SQLVulnerabilityAssessmentScanResultsClientGetOptions contains the optional parameters for the SQLVulnerabilityAssessmentScanResultsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSQLVulnerabilityAssessmentScanResultsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<scan-id>", "<scan-result-id>", "<workspace-id>", "<resource-id>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SQLVulnerabilityAssessmentScanResultsClient) List ¶
func (client *SQLVulnerabilityAssessmentScanResultsClient) List(ctx context.Context, scanID string, workspaceID string, resourceID string, options *SQLVulnerabilityAssessmentScanResultsClientListOptions) (SQLVulnerabilityAssessmentScanResultsClientListResponse, error)
List - Gets a list of scan results for a single scan record. If the operation fails it returns an *azcore.ResponseError type. scanID - The scan Id. Type 'latest' to get the scan results for the latest scan. workspaceID - The workspace Id. resourceID - The identifier of the resource. options - SQLVulnerabilityAssessmentScanResultsClientListOptions contains the optional parameters for the SQLVulnerabilityAssessmentScanResultsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsScanResultsOperations/ArcMachineScanResults_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSQLVulnerabilityAssessmentScanResultsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, "<scan-id>", "<workspace-id>", "<resource-id>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type SQLVulnerabilityAssessmentScanResultsClientGetOptions ¶ added in v0.3.0
type SQLVulnerabilityAssessmentScanResultsClientGetOptions struct { }
SQLVulnerabilityAssessmentScanResultsClientGetOptions contains the optional parameters for the SQLVulnerabilityAssessmentScanResultsClient.Get method.
type SQLVulnerabilityAssessmentScanResultsClientGetResponse ¶ added in v0.3.0
type SQLVulnerabilityAssessmentScanResultsClientGetResponse struct {
ScanResult
}
SQLVulnerabilityAssessmentScanResultsClientGetResponse contains the response from method SQLVulnerabilityAssessmentScanResultsClient.Get.
type SQLVulnerabilityAssessmentScanResultsClientListOptions ¶ added in v0.3.0
type SQLVulnerabilityAssessmentScanResultsClientListOptions struct { }
SQLVulnerabilityAssessmentScanResultsClientListOptions contains the optional parameters for the SQLVulnerabilityAssessmentScanResultsClient.List method.
type SQLVulnerabilityAssessmentScanResultsClientListResponse ¶ added in v0.3.0
type SQLVulnerabilityAssessmentScanResultsClientListResponse struct {
ScanResults
}
SQLVulnerabilityAssessmentScanResultsClientListResponse contains the response from method SQLVulnerabilityAssessmentScanResultsClient.List.
type SQLVulnerabilityAssessmentScansClient ¶
type SQLVulnerabilityAssessmentScansClient struct {
// contains filtered or unexported fields
}
SQLVulnerabilityAssessmentScansClient contains the methods for the SQLVulnerabilityAssessmentScans group. Don't use this type directly, use NewSQLVulnerabilityAssessmentScansClient() instead.
func NewSQLVulnerabilityAssessmentScansClient ¶
func NewSQLVulnerabilityAssessmentScansClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLVulnerabilityAssessmentScansClient, error)
NewSQLVulnerabilityAssessmentScansClient creates a new instance of SQLVulnerabilityAssessmentScansClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SQLVulnerabilityAssessmentScansClient) Get ¶
func (client *SQLVulnerabilityAssessmentScansClient) Get(ctx context.Context, scanID string, workspaceID string, resourceID string, options *SQLVulnerabilityAssessmentScansClientGetOptions) (SQLVulnerabilityAssessmentScansClientGetResponse, error)
Get - Gets the scan details of a single scan record. If the operation fails it returns an *azcore.ResponseError type. scanID - The scan Id. Type 'latest' to get the scan record for the latest scan. workspaceID - The workspace Id. resourceID - The identifier of the resource. options - SQLVulnerabilityAssessmentScansClientGetOptions contains the optional parameters for the SQLVulnerabilityAssessmentScansClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSQLVulnerabilityAssessmentScansClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<scan-id>", "<workspace-id>", "<resource-id>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SQLVulnerabilityAssessmentScansClient) List ¶
func (client *SQLVulnerabilityAssessmentScansClient) List(ctx context.Context, workspaceID string, resourceID string, options *SQLVulnerabilityAssessmentScansClientListOptions) (SQLVulnerabilityAssessmentScansClientListResponse, error)
List - Gets a list of scan records. If the operation fails it returns an *azcore.ResponseError type. workspaceID - The workspace Id. resourceID - The identifier of the resource. options - SQLVulnerabilityAssessmentScansClientListOptions contains the optional parameters for the SQLVulnerabilityAssessmentScansClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentScanOperations/ArcMachineScans_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSQLVulnerabilityAssessmentScansClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, "<workspace-id>", "<resource-id>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type SQLVulnerabilityAssessmentScansClientGetOptions ¶ added in v0.3.0
type SQLVulnerabilityAssessmentScansClientGetOptions struct { }
SQLVulnerabilityAssessmentScansClientGetOptions contains the optional parameters for the SQLVulnerabilityAssessmentScansClient.Get method.
type SQLVulnerabilityAssessmentScansClientGetResponse ¶ added in v0.3.0
type SQLVulnerabilityAssessmentScansClientGetResponse struct {
Scan
}
SQLVulnerabilityAssessmentScansClientGetResponse contains the response from method SQLVulnerabilityAssessmentScansClient.Get.
type SQLVulnerabilityAssessmentScansClientListOptions ¶ added in v0.3.0
type SQLVulnerabilityAssessmentScansClientListOptions struct { }
SQLVulnerabilityAssessmentScansClientListOptions contains the optional parameters for the SQLVulnerabilityAssessmentScansClient.List method.
type SQLVulnerabilityAssessmentScansClientListResponse ¶ added in v0.3.0
type SQLVulnerabilityAssessmentScansClientListResponse struct {
Scans
}
SQLVulnerabilityAssessmentScansClientListResponse contains the response from method SQLVulnerabilityAssessmentScansClient.List.
type Scan ¶
type Scan struct { // A vulnerability assessment scan record properties. Properties *ScanProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Scan - A vulnerability assessment scan record.
type ScanProperties ¶
type ScanProperties struct { // The database name. Database *string `json:"database,omitempty"` // Scan results are valid until end time (UTC). EndTime *time.Time `json:"endTime,omitempty"` // The number of failed rules with high severity. HighSeverityFailedRulesCount *int32 `json:"highSeverityFailedRulesCount,omitempty"` // Baseline created for this database, and has one or more rules. IsBaselineApplied *bool `json:"isBaselineApplied,omitempty"` // The number of failed rules with low severity. LowSeverityFailedRulesCount *int32 `json:"lowSeverityFailedRulesCount,omitempty"` // The number of failed rules with medium severity. MediumSeverityFailedRulesCount *int32 `json:"mediumSeverityFailedRulesCount,omitempty"` // The SQL version. SQLVersion *string `json:"sqlVersion,omitempty"` // The server name. Server *string `json:"server,omitempty"` // The scan start time (UTC). StartTime *time.Time `json:"startTime,omitempty"` // The scan status. State *ScanState `json:"state,omitempty"` // The number of total failed rules. TotalFailedRulesCount *int32 `json:"totalFailedRulesCount,omitempty"` // The number of total passed rules. TotalPassedRulesCount *int32 `json:"totalPassedRulesCount,omitempty"` // The number of total rules assessed. TotalRulesCount *int32 `json:"totalRulesCount,omitempty"` // The scan trigger type. TriggerType *ScanTriggerType `json:"triggerType,omitempty"` }
ScanProperties - A vulnerability assessment scan record properties.
func (ScanProperties) MarshalJSON ¶
func (s ScanProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ScanProperties.
func (*ScanProperties) UnmarshalJSON ¶
func (s *ScanProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ScanProperties.
type ScanResult ¶
type ScanResult struct { // A vulnerability assessment scan result properties for a single rule. Properties *ScanResultProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
ScanResult - A vulnerability assessment scan result for a single rule.
type ScanResultProperties ¶
type ScanResultProperties struct { // The rule result adjusted with baseline. BaselineAdjustedResult *BaselineAdjustedResult `json:"baselineAdjustedResult,omitempty"` // Indicated whether the results specified here are trimmed. IsTrimmed *bool `json:"isTrimmed,omitempty"` // The results of the query that was run. QueryResults [][]*string `json:"queryResults,omitempty"` // Remediation details. Remediation *Remediation `json:"remediation,omitempty"` // The rule Id. RuleID *string `json:"ruleId,omitempty"` // vulnerability assessment rule metadata details. RuleMetadata *VaRule `json:"ruleMetadata,omitempty"` // The rule result status. Status *RuleStatus `json:"status,omitempty"` }
ScanResultProperties - A vulnerability assessment scan result properties for a single rule.
func (ScanResultProperties) MarshalJSON ¶
func (s ScanResultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ScanResultProperties.
type ScanResults ¶
type ScanResults struct { // List of vulnerability assessment scan results. Value []*ScanResult `json:"value,omitempty"` }
ScanResults - A list of vulnerability assessment scan results.
func (ScanResults) MarshalJSON ¶
func (s ScanResults) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ScanResults.
type ScanState ¶
type ScanState string
ScanState - The scan status.
const ( // ScanStateFailed - Failed ScanStateFailed ScanState = "Failed" // ScanStateFailedToRun - FailedToRun ScanStateFailedToRun ScanState = "FailedToRun" // ScanStateInProgress - InProgress ScanStateInProgress ScanState = "InProgress" // ScanStatePassed - Passed ScanStatePassed ScanState = "Passed" )
func PossibleScanStateValues ¶
func PossibleScanStateValues() []ScanState
PossibleScanStateValues returns the possible values for the ScanState const type.
type ScanTriggerType ¶
type ScanTriggerType string
ScanTriggerType - The scan trigger type.
const ( // ScanTriggerTypeOnDemand - OnDemand ScanTriggerTypeOnDemand ScanTriggerType = "OnDemand" // ScanTriggerTypeRecurring - Recurring ScanTriggerTypeRecurring ScanTriggerType = "Recurring" )
func PossibleScanTriggerTypeValues ¶
func PossibleScanTriggerTypeValues() []ScanTriggerType
PossibleScanTriggerTypeValues returns the possible values for the ScanTriggerType const type.
type Scans ¶
type Scans struct { // List of vulnerability assessment scan records. Value []*Scan `json:"value,omitempty"` }
Scans - A list of vulnerability assessment scan records.
func (Scans) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Scans.
type ScopeElement ¶
type ScopeElement struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} // The alert entity type to suppress by. Field *string `json:"field,omitempty"` }
ScopeElement - A more specific scope used to identify the alerts to suppress.
func (ScopeElement) MarshalJSON ¶
func (s ScopeElement) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ScopeElement.
func (*ScopeElement) UnmarshalJSON ¶
func (s *ScopeElement) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ScopeElement.
type ScoreDetails ¶
type ScoreDetails struct { // READ-ONLY; Current score Current *float64 `json:"current,omitempty" azure:"ro"` // READ-ONLY; Maximum score available Max *int32 `json:"max,omitempty" azure:"ro"` // READ-ONLY; Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point Percentage *float64 `json:"percentage,omitempty" azure:"ro"` }
ScoreDetails - Calculation result data
type SecureScoreControlDefinitionItem ¶
type SecureScoreControlDefinitionItem struct { // Security Control Definition Properties. Properties *SecureScoreControlDefinitionItemProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
SecureScoreControlDefinitionItem - Information about the security control.
type SecureScoreControlDefinitionItemProperties ¶
type SecureScoreControlDefinitionItemProperties struct { // READ-ONLY; Array of assessments metadata IDs that are included in this security control AssessmentDefinitions []*AzureResourceLink `json:"assessmentDefinitions,omitempty" azure:"ro"` // READ-ONLY; User friendly description of the control Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; User friendly display name of the control DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; Maximum control score (0..10) MaxScore *int32 `json:"maxScore,omitempty" azure:"ro"` // READ-ONLY; Source object from which the control was created Source *SecureScoreControlDefinitionSource `json:"source,omitempty" azure:"ro"` }
SecureScoreControlDefinitionItemProperties - Security Control Definition Properties.
func (SecureScoreControlDefinitionItemProperties) MarshalJSON ¶
func (s SecureScoreControlDefinitionItemProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecureScoreControlDefinitionItemProperties.
type SecureScoreControlDefinitionList ¶
type SecureScoreControlDefinitionList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Collection of security controls definition in this page Value []*SecureScoreControlDefinitionItem `json:"value,omitempty" azure:"ro"` }
SecureScoreControlDefinitionList - List of security controls definition
func (SecureScoreControlDefinitionList) MarshalJSON ¶
func (s SecureScoreControlDefinitionList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecureScoreControlDefinitionList.
type SecureScoreControlDefinitionSource ¶
type SecureScoreControlDefinitionSource struct { // The type of security control (for example, BuiltIn) SourceType *ControlType `json:"sourceType,omitempty"` }
SecureScoreControlDefinitionSource - The type of the security control (For example, BuiltIn)
type SecureScoreControlDefinitionsClient ¶
type SecureScoreControlDefinitionsClient struct {
// contains filtered or unexported fields
}
SecureScoreControlDefinitionsClient contains the methods for the SecureScoreControlDefinitions group. Don't use this type directly, use NewSecureScoreControlDefinitionsClient() instead.
func NewSecureScoreControlDefinitionsClient ¶
func NewSecureScoreControlDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SecureScoreControlDefinitionsClient, error)
NewSecureScoreControlDefinitionsClient creates a new instance of SecureScoreControlDefinitionsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SecureScoreControlDefinitionsClient) List ¶
func (client *SecureScoreControlDefinitionsClient) List(options *SecureScoreControlDefinitionsClientListOptions) *runtime.Pager[SecureScoreControlDefinitionsClientListResponse]
List - List the available security controls, their assessments, and the max score If the operation fails it returns an *azcore.ResponseError type. options - SecureScoreControlDefinitionsClientListOptions contains the optional parameters for the SecureScoreControlDefinitionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSecureScoreControlDefinitionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SecureScoreControlDefinitionsClient) ListBySubscription ¶
func (client *SecureScoreControlDefinitionsClient) ListBySubscription(options *SecureScoreControlDefinitionsClientListBySubscriptionOptions) *runtime.Pager[SecureScoreControlDefinitionsClientListBySubscriptionResponse]
ListBySubscription - For a specified subscription, list the available security controls, their assessments, and the max score If the operation fails it returns an *azcore.ResponseError type. options - SecureScoreControlDefinitionsClientListBySubscriptionOptions contains the optional parameters for the SecureScoreControlDefinitionsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_subscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSecureScoreControlDefinitionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySubscription(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SecureScoreControlDefinitionsClientListBySubscriptionOptions ¶ added in v0.3.0
type SecureScoreControlDefinitionsClientListBySubscriptionOptions struct { }
SecureScoreControlDefinitionsClientListBySubscriptionOptions contains the optional parameters for the SecureScoreControlDefinitionsClient.ListBySubscription method.
type SecureScoreControlDefinitionsClientListBySubscriptionResponse ¶ added in v0.3.0
type SecureScoreControlDefinitionsClientListBySubscriptionResponse struct {
SecureScoreControlDefinitionList
}
SecureScoreControlDefinitionsClientListBySubscriptionResponse contains the response from method SecureScoreControlDefinitionsClient.ListBySubscription.
type SecureScoreControlDefinitionsClientListOptions ¶ added in v0.3.0
type SecureScoreControlDefinitionsClientListOptions struct { }
SecureScoreControlDefinitionsClientListOptions contains the optional parameters for the SecureScoreControlDefinitionsClient.List method.
type SecureScoreControlDefinitionsClientListResponse ¶ added in v0.3.0
type SecureScoreControlDefinitionsClientListResponse struct {
SecureScoreControlDefinitionList
}
SecureScoreControlDefinitionsClientListResponse contains the response from method SecureScoreControlDefinitionsClient.List.
type SecureScoreControlDetails ¶
type SecureScoreControlDetails struct { // Calculation result data in control level Properties *SecureScoreControlScoreDetails `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
SecureScoreControlDetails - Details of the security control, its score, and the health status of the relevant resources.
type SecureScoreControlList ¶
type SecureScoreControlList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Collection of security controls in this page Value []*SecureScoreControlDetails `json:"value,omitempty" azure:"ro"` }
SecureScoreControlList - List of security controls
func (SecureScoreControlList) MarshalJSON ¶
func (s SecureScoreControlList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecureScoreControlList.
type SecureScoreControlScore ¶
type SecureScoreControlScore struct { // READ-ONLY; Actual score for the control = (achieved points / total points) * max score. if total points is zeroed, the // return number is 0.00 Current *float64 `json:"current,omitempty" azure:"ro"` // READ-ONLY; Maximum control score (0..10) Max *int32 `json:"max,omitempty" azure:"ro"` // READ-ONLY; Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point Percentage *float64 `json:"percentage,omitempty" azure:"ro"` }
SecureScoreControlScore - Calculation result data
type SecureScoreControlScoreDetails ¶
type SecureScoreControlScoreDetails struct { // Information about the security control. Definition *SecureScoreControlDefinitionItem `json:"definition,omitempty"` // READ-ONLY; User friendly display name of the control DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; Number of healthy resources in the control HealthyResourceCount *int32 `json:"healthyResourceCount,omitempty" azure:"ro"` // READ-ONLY; Number of not applicable resources in the control NotApplicableResourceCount *int32 `json:"notApplicableResourceCount,omitempty" azure:"ro"` // READ-ONLY; Actual score object for the control Score *ScoreDetails `json:"score,omitempty" azure:"ro"` // READ-ONLY; Number of unhealthy resources in the control UnhealthyResourceCount *int32 `json:"unhealthyResourceCount,omitempty" azure:"ro"` // READ-ONLY; The relative weight for this specific control in each of your subscriptions. Used when calculating an aggregated // score for this control across all of your subscriptions. Weight *int64 `json:"weight,omitempty" azure:"ro"` }
SecureScoreControlScoreDetails - Calculation result data in control level
type SecureScoreControlsClient ¶
type SecureScoreControlsClient struct {
// contains filtered or unexported fields
}
SecureScoreControlsClient contains the methods for the SecureScoreControls group. Don't use this type directly, use NewSecureScoreControlsClient() instead.
func NewSecureScoreControlsClient ¶
func NewSecureScoreControlsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SecureScoreControlsClient, error)
NewSecureScoreControlsClient creates a new instance of SecureScoreControlsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SecureScoreControlsClient) List ¶
func (client *SecureScoreControlsClient) List(options *SecureScoreControlsClientListOptions) *runtime.Pager[SecureScoreControlsClientListResponse]
List - Get all security controls within a scope If the operation fails it returns an *azcore.ResponseError type. options - SecureScoreControlsClientListOptions contains the optional parameters for the SecureScoreControlsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/ListSecureScoreControls_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSecureScoreControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(&armsecurity.SecureScoreControlsClientListOptions{Expand: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SecureScoreControlsClient) ListBySecureScore ¶
func (client *SecureScoreControlsClient) ListBySecureScore(secureScoreName string, options *SecureScoreControlsClientListBySecureScoreOptions) *runtime.Pager[SecureScoreControlsClientListBySecureScoreResponse]
ListBySecureScore - Get all security controls for a specific initiative within a scope If the operation fails it returns an *azcore.ResponseError type. secureScoreName - The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample request below. options - SecureScoreControlsClientListBySecureScoreOptions contains the optional parameters for the SecureScoreControlsClient.ListBySecureScore method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/ListSecureScoreControlsForName_builtin_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSecureScoreControlsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySecureScore("<secure-score-name>", &armsecurity.SecureScoreControlsClientListBySecureScoreOptions{Expand: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SecureScoreControlsClientListBySecureScoreOptions ¶ added in v0.3.0
type SecureScoreControlsClientListBySecureScoreOptions struct { // OData expand. Optional. Expand *ExpandControlsEnum }
SecureScoreControlsClientListBySecureScoreOptions contains the optional parameters for the SecureScoreControlsClient.ListBySecureScore method.
type SecureScoreControlsClientListBySecureScoreResponse ¶ added in v0.3.0
type SecureScoreControlsClientListBySecureScoreResponse struct {
SecureScoreControlList
}
SecureScoreControlsClientListBySecureScoreResponse contains the response from method SecureScoreControlsClient.ListBySecureScore.
type SecureScoreControlsClientListOptions ¶ added in v0.3.0
type SecureScoreControlsClientListOptions struct { // OData expand. Optional. Expand *ExpandControlsEnum }
SecureScoreControlsClientListOptions contains the optional parameters for the SecureScoreControlsClient.List method.
type SecureScoreControlsClientListResponse ¶ added in v0.3.0
type SecureScoreControlsClientListResponse struct {
SecureScoreControlList
}
SecureScoreControlsClientListResponse contains the response from method SecureScoreControlsClient.List.
type SecureScoreItem ¶
type SecureScoreItem struct { // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Secure score item Properties *SecureScoreItemProperties `json:"properties,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
SecureScoreItem - Secure score item data model
type SecureScoreItemProperties ¶
type SecureScoreItemProperties struct { // READ-ONLY; The initiative’s name DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; score object Score *ScoreDetails `json:"score,omitempty" azure:"ro"` // READ-ONLY; The relative weight for each subscription. Used when calculating an aggregated secure score for multiple subscriptions. Weight *int64 `json:"weight,omitempty" azure:"ro"` }
SecureScoreItemProperties - Describes properties of a calculated secure score.
type SecureScoresClient ¶
type SecureScoresClient struct {
// contains filtered or unexported fields
}
SecureScoresClient contains the methods for the SecureScores group. Don't use this type directly, use NewSecureScoresClient() instead.
func NewSecureScoresClient ¶
func NewSecureScoresClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SecureScoresClient, error)
NewSecureScoresClient creates a new instance of SecureScoresClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SecureScoresClient) Get ¶
func (client *SecureScoresClient) Get(ctx context.Context, secureScoreName string, options *SecureScoresClientGetOptions) (SecureScoresClientGetResponse, error)
Get - Get secure score for a specific Security Center initiative within your current scope. For the ASC Default initiative, use 'ascScore'. If the operation fails it returns an *azcore.ResponseError type. secureScoreName - The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample request below. options - SecureScoresClientGetOptions contains the optional parameters for the SecureScoresClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/GetSecureScoresSingle_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSecureScoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<secure-score-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SecureScoresClient) List ¶
func (client *SecureScoresClient) List(options *SecureScoresClientListOptions) *runtime.Pager[SecureScoresClientListResponse]
List - List secure scores for all your Security Center initiatives within your current scope. If the operation fails it returns an *azcore.ResponseError type. options - SecureScoresClientListOptions contains the optional parameters for the SecureScoresClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/secureScores/ListSecureScores_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSecureScoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SecureScoresClientGetOptions ¶ added in v0.3.0
type SecureScoresClientGetOptions struct { }
SecureScoresClientGetOptions contains the optional parameters for the SecureScoresClient.Get method.
type SecureScoresClientGetResponse ¶ added in v0.3.0
type SecureScoresClientGetResponse struct {
SecureScoreItem
}
SecureScoresClientGetResponse contains the response from method SecureScoresClient.Get.
type SecureScoresClientListOptions ¶ added in v0.3.0
type SecureScoresClientListOptions struct { }
SecureScoresClientListOptions contains the optional parameters for the SecureScoresClient.List method.
type SecureScoresClientListResponse ¶ added in v0.3.0
type SecureScoresClientListResponse struct {
SecureScoresList
}
SecureScoresClientListResponse contains the response from method SecureScoresClient.List.
type SecureScoresList ¶
type SecureScoresList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; Collection of secure scores in this page Value []*SecureScoreItem `json:"value,omitempty" azure:"ro"` }
SecureScoresList - List of secure scores
func (SecureScoresList) MarshalJSON ¶
func (s SecureScoresList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecureScoresList.
type SecurityFamily ¶
type SecurityFamily string
SecurityFamily - The security family of the discovered solution
const ( SecurityFamilyNgfw SecurityFamily = "Ngfw" SecurityFamilySaasWaf SecurityFamily = "SaasWaf" SecurityFamilyVa SecurityFamily = "Va" SecurityFamilyWaf SecurityFamily = "Waf" )
func PossibleSecurityFamilyValues ¶
func PossibleSecurityFamilyValues() []SecurityFamily
PossibleSecurityFamilyValues returns the possible values for the SecurityFamily const type.
type SecuritySolutionStatus ¶
type SecuritySolutionStatus string
SecuritySolutionStatus - Status of the IoT Security solution.
const ( SecuritySolutionStatusDisabled SecuritySolutionStatus = "Disabled" SecuritySolutionStatusEnabled SecuritySolutionStatus = "Enabled" )
func PossibleSecuritySolutionStatusValues ¶
func PossibleSecuritySolutionStatusValues() []SecuritySolutionStatus
PossibleSecuritySolutionStatusValues returns the possible values for the SecuritySolutionStatus const type.
type SensitivityLabel ¶
type SensitivityLabel struct { // The description of the sensitivity label. Description *string `json:"description,omitempty"` // The name of the sensitivity label. DisplayName *string `json:"displayName,omitempty"` // Indicates whether the label is enabled or not. Enabled *bool `json:"enabled,omitempty"` // The order of the sensitivity label. Order *int32 `json:"order,omitempty"` // The rank of the sensitivity label. Rank *Rank `json:"rank,omitempty"` }
SensitivityLabel - The sensitivity label.
type ServerVulnerabilityAssessment ¶
type ServerVulnerabilityAssessment struct { // describes ServerVulnerabilityAssessment properties. Properties *ServerVulnerabilityAssessmentProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
ServerVulnerabilityAssessment - Describes the server vulnerability assessment details on a resource
type ServerVulnerabilityAssessmentClient ¶
type ServerVulnerabilityAssessmentClient struct {
// contains filtered or unexported fields
}
ServerVulnerabilityAssessmentClient contains the methods for the ServerVulnerabilityAssessment group. Don't use this type directly, use NewServerVulnerabilityAssessmentClient() instead.
func NewServerVulnerabilityAssessmentClient ¶
func NewServerVulnerabilityAssessmentClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServerVulnerabilityAssessmentClient, error)
NewServerVulnerabilityAssessmentClient creates a new instance of ServerVulnerabilityAssessmentClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ServerVulnerabilityAssessmentClient) BeginDelete ¶
func (client *ServerVulnerabilityAssessmentClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, options *ServerVulnerabilityAssessmentClientBeginDeleteOptions) (*armruntime.Poller[ServerVulnerabilityAssessmentClientDeleteResponse], error)
BeginDelete - Removing server vulnerability assessment from a resource. If the operation fails it returns an *azcore.ResponseError type. 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. options - ServerVulnerabilityAssessmentClientBeginDeleteOptions contains the optional parameters for the ServerVulnerabilityAssessmentClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewServerVulnerabilityAssessmentClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<resource-namespace>", "<resource-type>", "<resource-name>", &armsecurity.ServerVulnerabilityAssessmentClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*ServerVulnerabilityAssessmentClient) CreateOrUpdate ¶
func (client *ServerVulnerabilityAssessmentClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, options *ServerVulnerabilityAssessmentClientCreateOrUpdateOptions) (ServerVulnerabilityAssessmentClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creating a server vulnerability assessment on a resource, which will onboard a resource for having a vulnerability assessment on it If the operation fails it returns an *azcore.ResponseError type. 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. options - ServerVulnerabilityAssessmentClientCreateOrUpdateOptions contains the optional parameters for the ServerVulnerabilityAssessmentClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewServerVulnerabilityAssessmentClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.CreateOrUpdate(ctx, "<resource-group-name>", "<resource-namespace>", "<resource-type>", "<resource-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*ServerVulnerabilityAssessmentClient) Get ¶
func (client *ServerVulnerabilityAssessmentClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, options *ServerVulnerabilityAssessmentClientGetOptions) (ServerVulnerabilityAssessmentClientGetResponse, error)
Get - Gets a server vulnerability assessment onboarding statuses on a given resource. If the operation fails it returns an *azcore.ResponseError type. 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. options - ServerVulnerabilityAssessmentClientGetOptions contains the optional parameters for the ServerVulnerabilityAssessmentClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewServerVulnerabilityAssessmentClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<resource-namespace>", "<resource-type>", "<resource-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ServerVulnerabilityAssessmentClient) ListByExtendedResource ¶
func (client *ServerVulnerabilityAssessmentClient) ListByExtendedResource(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, options *ServerVulnerabilityAssessmentClientListByExtendedResourceOptions) (ServerVulnerabilityAssessmentClientListByExtendedResourceResponse, error)
ListByExtendedResource - Gets a list of server vulnerability assessment onboarding statuses on a given resource. If the operation fails it returns an *azcore.ResponseError type. 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. options - ServerVulnerabilityAssessmentClientListByExtendedResourceOptions contains the optional parameters for the ServerVulnerabilityAssessmentClient.ListByExtendedResource method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewServerVulnerabilityAssessmentClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.ListByExtendedResource(ctx, "<resource-group-name>", "<resource-namespace>", "<resource-type>", "<resource-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type ServerVulnerabilityAssessmentClientBeginDeleteOptions ¶ added in v0.3.0
type ServerVulnerabilityAssessmentClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServerVulnerabilityAssessmentClientBeginDeleteOptions contains the optional parameters for the ServerVulnerabilityAssessmentClient.BeginDelete method.
type ServerVulnerabilityAssessmentClientCreateOrUpdateOptions ¶ added in v0.3.0
type ServerVulnerabilityAssessmentClientCreateOrUpdateOptions struct { }
ServerVulnerabilityAssessmentClientCreateOrUpdateOptions contains the optional parameters for the ServerVulnerabilityAssessmentClient.CreateOrUpdate method.
type ServerVulnerabilityAssessmentClientCreateOrUpdateResponse ¶ added in v0.3.0
type ServerVulnerabilityAssessmentClientCreateOrUpdateResponse struct {
ServerVulnerabilityAssessment
}
ServerVulnerabilityAssessmentClientCreateOrUpdateResponse contains the response from method ServerVulnerabilityAssessmentClient.CreateOrUpdate.
type ServerVulnerabilityAssessmentClientDeleteResponse ¶ added in v0.3.0
type ServerVulnerabilityAssessmentClientDeleteResponse struct { }
ServerVulnerabilityAssessmentClientDeleteResponse contains the response from method ServerVulnerabilityAssessmentClient.Delete.
type ServerVulnerabilityAssessmentClientGetOptions ¶ added in v0.3.0
type ServerVulnerabilityAssessmentClientGetOptions struct { }
ServerVulnerabilityAssessmentClientGetOptions contains the optional parameters for the ServerVulnerabilityAssessmentClient.Get method.
type ServerVulnerabilityAssessmentClientGetResponse ¶ added in v0.3.0
type ServerVulnerabilityAssessmentClientGetResponse struct {
ServerVulnerabilityAssessment
}
ServerVulnerabilityAssessmentClientGetResponse contains the response from method ServerVulnerabilityAssessmentClient.Get.
type ServerVulnerabilityAssessmentClientListByExtendedResourceOptions ¶ added in v0.3.0
type ServerVulnerabilityAssessmentClientListByExtendedResourceOptions struct { }
ServerVulnerabilityAssessmentClientListByExtendedResourceOptions contains the optional parameters for the ServerVulnerabilityAssessmentClient.ListByExtendedResource method.
type ServerVulnerabilityAssessmentClientListByExtendedResourceResponse ¶ added in v0.3.0
type ServerVulnerabilityAssessmentClientListByExtendedResourceResponse struct {
ServerVulnerabilityAssessmentsList
}
ServerVulnerabilityAssessmentClientListByExtendedResourceResponse contains the response from method ServerVulnerabilityAssessmentClient.ListByExtendedResource.
type ServerVulnerabilityAssessmentProperties ¶
type ServerVulnerabilityAssessmentProperties struct { // READ-ONLY; The provisioningState of the vulnerability assessment capability on the VM ProvisioningState *ServerVulnerabilityAssessmentPropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ServerVulnerabilityAssessmentProperties - describes ServerVulnerabilityAssessment properties.
type ServerVulnerabilityAssessmentPropertiesProvisioningState ¶
type ServerVulnerabilityAssessmentPropertiesProvisioningState string
ServerVulnerabilityAssessmentPropertiesProvisioningState - The provisioningState of the vulnerability assessment capability on the VM
const ( ServerVulnerabilityAssessmentPropertiesProvisioningStateCanceled ServerVulnerabilityAssessmentPropertiesProvisioningState = "Canceled" ServerVulnerabilityAssessmentPropertiesProvisioningStateDeprovisioning ServerVulnerabilityAssessmentPropertiesProvisioningState = "Deprovisioning" ServerVulnerabilityAssessmentPropertiesProvisioningStateFailed ServerVulnerabilityAssessmentPropertiesProvisioningState = "Failed" ServerVulnerabilityAssessmentPropertiesProvisioningStateProvisioning ServerVulnerabilityAssessmentPropertiesProvisioningState = "Provisioning" ServerVulnerabilityAssessmentPropertiesProvisioningStateSucceeded ServerVulnerabilityAssessmentPropertiesProvisioningState = "Succeeded" )
func PossibleServerVulnerabilityAssessmentPropertiesProvisioningStateValues ¶
func PossibleServerVulnerabilityAssessmentPropertiesProvisioningStateValues() []ServerVulnerabilityAssessmentPropertiesProvisioningState
PossibleServerVulnerabilityAssessmentPropertiesProvisioningStateValues returns the possible values for the ServerVulnerabilityAssessmentPropertiesProvisioningState const type.
type ServerVulnerabilityAssessmentsList ¶
type ServerVulnerabilityAssessmentsList struct {
Value []*ServerVulnerabilityAssessment `json:"value,omitempty"`
}
ServerVulnerabilityAssessmentsList - List of server vulnerability assessments
func (ServerVulnerabilityAssessmentsList) MarshalJSON ¶
func (s ServerVulnerabilityAssessmentsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerVulnerabilityAssessmentsList.
type ServerVulnerabilityProperties ¶
type ServerVulnerabilityProperties struct { // REQUIRED; Sub-assessment resource type AssessedResourceType *AssessedResourceType `json:"assessedResourceType,omitempty"` // READ-ONLY; List of CVEs Cve []*CVE `json:"cve,omitempty" azure:"ro"` // READ-ONLY; Dictionary from cvss version to cvss details object Cvss map[string]*CVSS `json:"cvss,omitempty" azure:"ro"` // READ-ONLY; Indicates whether a patch is available or not Patchable *bool `json:"patchable,omitempty" azure:"ro"` // READ-ONLY; Published time PublishedTime *time.Time `json:"publishedTime,omitempty" azure:"ro"` // READ-ONLY; Threat name Threat *string `json:"threat,omitempty" azure:"ro"` // READ-ONLY; Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered Type *string `json:"type,omitempty" azure:"ro"` // READ-ONLY VendorReferences []*VendorReference `json:"vendorReferences,omitempty" azure:"ro"` }
ServerVulnerabilityProperties - Additional context fields for server vulnerability assessment
func (*ServerVulnerabilityProperties) GetAdditionalData ¶ added in v0.3.0
func (s *ServerVulnerabilityProperties) GetAdditionalData() *AdditionalData
GetAdditionalData implements the AdditionalDataClassification interface for type ServerVulnerabilityProperties.
func (ServerVulnerabilityProperties) MarshalJSON ¶
func (s ServerVulnerabilityProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerVulnerabilityProperties.
func (*ServerVulnerabilityProperties) UnmarshalJSON ¶
func (s *ServerVulnerabilityProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerVulnerabilityProperties.
type ServicePrincipalProperties ¶
type ServicePrincipalProperties struct { // Application ID of service principal. ApplicationID *string `json:"applicationId,omitempty"` // A secret string that the application uses to prove its identity, also can be referred to as application password (write // only). Secret *string `json:"secret,omitempty"` }
ServicePrincipalProperties - Details of the service principal.
type Setting ¶
type Setting struct { // REQUIRED; the kind of the settings string Kind *SettingKind `json:"kind,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Setting - The kind of the security setting
func (*Setting) GetSetting ¶
GetSetting implements the SettingClassification interface for type Setting.
type SettingClassification ¶
type SettingClassification interface { // GetSetting returns the Setting content of the underlying type. GetSetting() *Setting }
SettingClassification provides polymorphic access to related types. Call the interface's GetSetting() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AlertSyncSettings, *DataExportSettings, *Setting
type SettingKind ¶
type SettingKind string
SettingKind - the kind of the settings string
const ( SettingKindAlertSuppressionSetting SettingKind = "AlertSuppressionSetting" SettingKindAlertSyncSettings SettingKind = "AlertSyncSettings" SettingKindDataExportSettings SettingKind = "DataExportSettings" )
func PossibleSettingKindValues ¶
func PossibleSettingKindValues() []SettingKind
PossibleSettingKindValues returns the possible values for the SettingKind const type.
type SettingName ¶ added in v0.4.0
type SettingName string
const ( SettingNameMCAS SettingName = "MCAS" SettingNameSentinel SettingName = "Sentinel" SettingNameWDATP SettingName = "WDATP" SettingNameWDATPEXCLUDELINUXPUBLICPREVIEW SettingName = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW" )
func PossibleSettingNameValues ¶ added in v0.4.0
func PossibleSettingNameValues() []SettingName
PossibleSettingNameValues returns the possible values for the SettingName const type.
type SettingsClient ¶
type SettingsClient struct {
// contains filtered or unexported fields
}
SettingsClient contains the methods for the Settings group. Don't use this type directly, use NewSettingsClient() instead.
func NewSettingsClient ¶
func NewSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SettingsClient, error)
NewSettingsClient creates a new instance of SettingsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SettingsClient) Get ¶
func (client *SettingsClient) Get(ctx context.Context, settingName SettingName, options *SettingsClientGetOptions) (SettingsClientGetResponse, error)
Get - Settings of different configurations in security center If the operation fails it returns an *azcore.ResponseError type. settingName - The name of the setting options - SettingsClientGetOptions contains the optional parameters for the SettingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/examples/Settings/GetSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, armsecurity.SettingNameMCAS, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SettingsClient) List ¶
func (client *SettingsClient) List(options *SettingsClientListOptions) *runtime.Pager[SettingsClientListResponse]
List - Settings about different configurations in security center If the operation fails it returns an *azcore.ResponseError type. options - SettingsClientListOptions contains the optional parameters for the SettingsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/examples/Settings/GetSettings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SettingsClient) Update ¶
func (client *SettingsClient) Update(ctx context.Context, settingName SettingName, setting SettingClassification, options *SettingsClientUpdateOptions) (SettingsClientUpdateResponse, error)
Update - updating settings about different configurations in security center If the operation fails it returns an *azcore.ResponseError type. settingName - The name of the setting setting - Setting object options - SettingsClientUpdateOptions contains the optional parameters for the SettingsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/examples/Settings/UpdateSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, armsecurity.SettingNameMCAS, &armsecurity.DataExportSettings{ Kind: to.Ptr(armsecurity.SettingKindDataExportSettings), Properties: &armsecurity.DataExportSettingProperties{ Enabled: to.Ptr(true), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type SettingsClientGetOptions ¶ added in v0.3.0
type SettingsClientGetOptions struct { }
SettingsClientGetOptions contains the optional parameters for the SettingsClient.Get method.
type SettingsClientGetResponse ¶ added in v0.3.0
type SettingsClientGetResponse struct {
SettingClassification
}
SettingsClientGetResponse contains the response from method SettingsClient.Get.
func (*SettingsClientGetResponse) UnmarshalJSON ¶ added in v0.5.0
func (s *SettingsClientGetResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SettingsClientGetResponse.
type SettingsClientListOptions ¶ added in v0.3.0
type SettingsClientListOptions struct { }
SettingsClientListOptions contains the optional parameters for the SettingsClient.List method.
type SettingsClientListResponse ¶ added in v0.3.0
type SettingsClientListResponse struct {
SettingsList
}
SettingsClientListResponse contains the response from method SettingsClient.List.
type SettingsClientUpdateOptions ¶ added in v0.3.0
type SettingsClientUpdateOptions struct { }
SettingsClientUpdateOptions contains the optional parameters for the SettingsClient.Update method.
type SettingsClientUpdateResponse ¶ added in v0.3.0
type SettingsClientUpdateResponse struct {
SettingClassification
}
SettingsClientUpdateResponse contains the response from method SettingsClient.Update.
func (*SettingsClientUpdateResponse) UnmarshalJSON ¶ added in v0.5.0
func (s *SettingsClientUpdateResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SettingsClientUpdateResponse.
type SettingsList ¶
type SettingsList struct { // The settings list. Value []SettingClassification `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
SettingsList - Subscription settings list.
func (SettingsList) MarshalJSON ¶
func (s SettingsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SettingsList.
func (*SettingsList) UnmarshalJSON ¶
func (s *SettingsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SettingsList.
type Severity ¶
type Severity string
Severity - The sub-assessment severity level
func PossibleSeverityValues ¶
func PossibleSeverityValues() []Severity
PossibleSeverityValues returns the possible values for the Severity const type.
type SeverityEnum ¶
type SeverityEnum string
SeverityEnum - The severity to relate to the assessments generated by this assessment automation.
const ( SeverityEnumHigh SeverityEnum = "High" SeverityEnumLow SeverityEnum = "Low" SeverityEnumMedium SeverityEnum = "Medium" )
func PossibleSeverityEnumValues ¶
func PossibleSeverityEnumValues() []SeverityEnum
PossibleSeverityEnumValues returns the possible values for the SeverityEnum const type.
type Software ¶
type Software struct { // REQUIRED; Properties of the Software Inventory resource Properties *SoftwareProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Software - Represents a software data
type SoftwareInventoriesClient ¶
type SoftwareInventoriesClient struct {
// contains filtered or unexported fields
}
SoftwareInventoriesClient contains the methods for the SoftwareInventories group. Don't use this type directly, use NewSoftwareInventoriesClient() instead.
func NewSoftwareInventoriesClient ¶
func NewSoftwareInventoriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SoftwareInventoriesClient, error)
NewSoftwareInventoriesClient creates a new instance of SoftwareInventoriesClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SoftwareInventoriesClient) Get ¶
func (client *SoftwareInventoriesClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, softwareName string, options *SoftwareInventoriesClientGetOptions) (SoftwareInventoriesClientGetResponse, error)
Get - Gets a single software data of the virtual machine. If the operation fails it returns an *azcore.ResponseError type. 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. softwareName - Name of the installed software. options - SoftwareInventoriesClientGetOptions contains the optional parameters for the SoftwareInventoriesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/SoftwareInventories/GetSoftware_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSoftwareInventoriesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<resource-namespace>", "<resource-type>", "<resource-name>", "<software-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SoftwareInventoriesClient) ListByExtendedResource ¶
func (client *SoftwareInventoriesClient) ListByExtendedResource(resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, options *SoftwareInventoriesClientListByExtendedResourceOptions) *runtime.Pager[SoftwareInventoriesClientListByExtendedResourceResponse]
ListByExtendedResource - Gets the software inventory of the virtual machine. If the operation fails it returns an *azcore.ResponseError type. 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. options - SoftwareInventoriesClientListByExtendedResourceOptions contains the optional parameters for the SoftwareInventoriesClient.ListByExtendedResource method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/SoftwareInventories/ListByExtendedResourceSoftwareInventories_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSoftwareInventoriesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByExtendedResource("<resource-group-name>", "<resource-namespace>", "<resource-type>", "<resource-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SoftwareInventoriesClient) ListBySubscription ¶
func (client *SoftwareInventoriesClient) ListBySubscription(options *SoftwareInventoriesClientListBySubscriptionOptions) *runtime.Pager[SoftwareInventoriesClientListBySubscriptionResponse]
ListBySubscription - Gets the software inventory of all virtual machines in the subscriptions. If the operation fails it returns an *azcore.ResponseError type. options - SoftwareInventoriesClientListBySubscriptionOptions contains the optional parameters for the SoftwareInventoriesClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2021-05-01-preview/examples/SoftwareInventories/ListBySubscriptionSoftwareInventories_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSoftwareInventoriesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListBySubscription(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SoftwareInventoriesClientGetOptions ¶ added in v0.3.0
type SoftwareInventoriesClientGetOptions struct { }
SoftwareInventoriesClientGetOptions contains the optional parameters for the SoftwareInventoriesClient.Get method.
type SoftwareInventoriesClientGetResponse ¶ added in v0.3.0
type SoftwareInventoriesClientGetResponse struct {
Software
}
SoftwareInventoriesClientGetResponse contains the response from method SoftwareInventoriesClient.Get.
type SoftwareInventoriesClientListByExtendedResourceOptions ¶ added in v0.3.0
type SoftwareInventoriesClientListByExtendedResourceOptions struct { }
SoftwareInventoriesClientListByExtendedResourceOptions contains the optional parameters for the SoftwareInventoriesClient.ListByExtendedResource method.
type SoftwareInventoriesClientListByExtendedResourceResponse ¶ added in v0.3.0
type SoftwareInventoriesClientListByExtendedResourceResponse struct {
SoftwaresList
}
SoftwareInventoriesClientListByExtendedResourceResponse contains the response from method SoftwareInventoriesClient.ListByExtendedResource.
type SoftwareInventoriesClientListBySubscriptionOptions ¶ added in v0.3.0
type SoftwareInventoriesClientListBySubscriptionOptions struct { }
SoftwareInventoriesClientListBySubscriptionOptions contains the optional parameters for the SoftwareInventoriesClient.ListBySubscription method.
type SoftwareInventoriesClientListBySubscriptionResponse ¶ added in v0.3.0
type SoftwareInventoriesClientListBySubscriptionResponse struct {
SoftwaresList
}
SoftwareInventoriesClientListBySubscriptionResponse contains the response from method SoftwareInventoriesClient.ListBySubscription.
type SoftwareProperties ¶
type SoftwareProperties struct { // Unique identifier for the virtual machine in the service. DeviceID *string `json:"deviceId,omitempty"` // The end of support date in case the product is upcoming end of support. EndOfSupportDate *string `json:"endOfSupportDate,omitempty"` // End of support status. EndOfSupportStatus *EndOfSupportStatus `json:"endOfSupportStatus,omitempty"` // First time that the software was seen in the device. FirstSeenAt *string `json:"firstSeenAt,omitempty"` // Number of weaknesses. NumberOfKnownVulnerabilities *int32 `json:"numberOfKnownVulnerabilities,omitempty"` // Platform of the operating system running on the device. OSPlatform *string `json:"osPlatform,omitempty"` // Name of the software product. SoftwareName *string `json:"softwareName,omitempty"` // Name of the software vendor. Vendor *string `json:"vendor,omitempty"` // Version number of the software product. Version *string `json:"version,omitempty"` }
SoftwareProperties - Software Inventory resource properties
type SoftwaresList ¶
type SoftwaresList struct { Value []*Software `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
SoftwaresList - Represents the software inventory of the virtual machine.
func (SoftwaresList) MarshalJSON ¶
func (s SoftwaresList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SoftwaresList.
type Solution ¶ added in v0.3.0
type Solution struct { Properties *SolutionProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
type SolutionList ¶ added in v0.3.0
type SolutionList struct { Value []*Solution `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
func (SolutionList) MarshalJSON ¶ added in v0.3.0
func (s SolutionList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SolutionList.
type SolutionProperties ¶ added in v0.3.0
type SolutionProperties struct { // REQUIRED; The security solutions' status ProtectionStatus *string `json:"protectionStatus,omitempty"` // REQUIRED; The security family provisioning State ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` // REQUIRED; The security family of the security solution SecurityFamily *SecurityFamily `json:"securityFamily,omitempty"` // REQUIRED; The security solutions' template Template *string `json:"template,omitempty"` }
type SolutionsClient ¶ added in v0.3.0
type SolutionsClient struct {
// contains filtered or unexported fields
}
SolutionsClient contains the methods for the SecuritySolutions group. Don't use this type directly, use NewSolutionsClient() instead.
func NewSolutionsClient ¶ added in v0.3.0
func NewSolutionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SolutionsClient, error)
NewSolutionsClient creates a new instance of SolutionsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SolutionsClient) Get ¶ added in v0.3.0
func (client *SolutionsClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, securitySolutionName string, options *SolutionsClientGetOptions) (SolutionsClientGetResponse, error)
Get - Gets a specific Security Solution. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations securitySolutionName - Name of security solution. options - SolutionsClientGetOptions contains the optional parameters for the SolutionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSolutionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<asc-location>", "<security-solution-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SolutionsClient) List ¶ added in v0.3.0
func (client *SolutionsClient) List(options *SolutionsClientListOptions) *runtime.Pager[SolutionsClientListResponse]
List - Gets a list of Security Solutions for the subscription. If the operation fails it returns an *azcore.ResponseError type. options - SolutionsClientListOptions contains the optional parameters for the SolutionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSolutionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SolutionsClientGetOptions ¶ added in v0.3.0
type SolutionsClientGetOptions struct { }
SolutionsClientGetOptions contains the optional parameters for the SolutionsClient.Get method.
type SolutionsClientGetResponse ¶ added in v0.3.0
type SolutionsClientGetResponse struct {
Solution
}
SolutionsClientGetResponse contains the response from method SolutionsClient.Get.
type SolutionsClientListOptions ¶ added in v0.3.0
type SolutionsClientListOptions struct { }
SolutionsClientListOptions contains the optional parameters for the SolutionsClient.List method.
type SolutionsClientListResponse ¶ added in v0.3.0
type SolutionsClientListResponse struct {
SolutionList
}
SolutionsClientListResponse contains the response from method SolutionsClient.List.
type SolutionsReferenceData ¶ added in v0.3.0
type SolutionsReferenceData struct { // REQUIRED Properties *SolutionsReferenceDataProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
type SolutionsReferenceDataClient ¶ added in v0.3.0
type SolutionsReferenceDataClient struct {
// contains filtered or unexported fields
}
SolutionsReferenceDataClient contains the methods for the SecuritySolutionsReferenceData group. Don't use this type directly, use NewSolutionsReferenceDataClient() instead.
func NewSolutionsReferenceDataClient ¶ added in v0.3.0
func NewSolutionsReferenceDataClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SolutionsReferenceDataClient, error)
NewSolutionsReferenceDataClient creates a new instance of SolutionsReferenceDataClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SolutionsReferenceDataClient) List ¶ added in v0.3.0
func (client *SolutionsReferenceDataClient) List(ctx context.Context, options *SolutionsReferenceDataClientListOptions) (SolutionsReferenceDataClientListResponse, error)
List - Gets a list of all supported Security Solutions for the subscription. If the operation fails it returns an *azcore.ResponseError type. options - SolutionsReferenceDataClientListOptions contains the optional parameters for the SolutionsReferenceDataClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSolutionsReferenceDataClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.List(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SolutionsReferenceDataClient) ListByHomeRegion ¶ added in v0.3.0
func (client *SolutionsReferenceDataClient) ListByHomeRegion(ctx context.Context, ascLocation string, options *SolutionsReferenceDataClientListByHomeRegionOptions) (SolutionsReferenceDataClientListByHomeRegionResponse, error)
ListByHomeRegion - Gets list of all supported Security Solutions for subscription and location. If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - SolutionsReferenceDataClientListByHomeRegionOptions contains the optional parameters for the SolutionsReferenceDataClient.ListByHomeRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSolutionsReferenceDataClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.ListByHomeRegion(ctx, "<asc-location>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type SolutionsReferenceDataClientListByHomeRegionOptions ¶ added in v0.3.0
type SolutionsReferenceDataClientListByHomeRegionOptions struct { }
SolutionsReferenceDataClientListByHomeRegionOptions contains the optional parameters for the SolutionsReferenceDataClient.ListByHomeRegion method.
type SolutionsReferenceDataClientListByHomeRegionResponse ¶ added in v0.3.0
type SolutionsReferenceDataClientListByHomeRegionResponse struct {
SolutionsReferenceDataList
}
SolutionsReferenceDataClientListByHomeRegionResponse contains the response from method SolutionsReferenceDataClient.ListByHomeRegion.
type SolutionsReferenceDataClientListOptions ¶ added in v0.3.0
type SolutionsReferenceDataClientListOptions struct { }
SolutionsReferenceDataClientListOptions contains the optional parameters for the SolutionsReferenceDataClient.List method.
type SolutionsReferenceDataClientListResponse ¶ added in v0.3.0
type SolutionsReferenceDataClientListResponse struct {
SolutionsReferenceDataList
}
SolutionsReferenceDataClientListResponse contains the response from method SolutionsReferenceDataClient.List.
type SolutionsReferenceDataList ¶ added in v0.3.0
type SolutionsReferenceDataList struct {
Value []*SolutionsReferenceData `json:"value,omitempty"`
}
func (SolutionsReferenceDataList) MarshalJSON ¶ added in v0.3.0
func (s SolutionsReferenceDataList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SolutionsReferenceDataList.
type SolutionsReferenceDataProperties ¶ added in v0.3.0
type SolutionsReferenceDataProperties struct { // REQUIRED; The security solutions' vendor name AlertVendorName *string `json:"alertVendorName,omitempty"` // REQUIRED; The security solutions' package info url PackageInfoURL *string `json:"packageInfoUrl,omitempty"` // REQUIRED; The security solutions' product name ProductName *string `json:"productName,omitempty"` // REQUIRED; The security solutions' publisher Publisher *string `json:"publisher,omitempty"` // REQUIRED; The security solutions' publisher display name PublisherDisplayName *string `json:"publisherDisplayName,omitempty"` // REQUIRED; The security family of the security solution SecurityFamily *SecurityFamily `json:"securityFamily,omitempty"` // REQUIRED; The security solutions' template Template *string `json:"template,omitempty"` }
type Source ¶
type Source string
Source - The platform where the assessed resource resides
const ( // SourceAzure - Resource is in Azure SourceAzure Source = "Azure" // SourceOnPremise - Resource in an on premise machine connected to Azure cloud SourceOnPremise Source = "OnPremise" // SourceOnPremiseSQL - SQL Resource in an on premise machine connected to Azure cloud SourceOnPremiseSQL Source = "OnPremiseSql" )
func PossibleSourceValues ¶
func PossibleSourceValues() []Source
PossibleSourceValues returns the possible values for the Source const type.
type SourceSystem ¶
type SourceSystem string
SourceSystem - The source type of the machine group
const ( SourceSystemAzureAppLocker SourceSystem = "Azure_AppLocker" SourceSystemAzureAuditD SourceSystem = "Azure_AuditD" SourceSystemNonAzureAppLocker SourceSystem = "NonAzure_AppLocker" SourceSystemNonAzureAuditD SourceSystem = "NonAzure_AuditD" SourceSystemNone SourceSystem = "None" )
func PossibleSourceSystemValues ¶
func PossibleSourceSystemValues() []SourceSystem
PossibleSourceSystemValues returns the possible values for the SourceSystem const type.
type State ¶
type State string
State - Aggregative state based on the standard's supported controls states
const ( // StateFailed - At least one supported regulatory compliance control in the given standard has a state of failed StateFailed State = "Failed" // StatePassed - All supported regulatory compliance controls in the given standard have a passed state StatePassed State = "Passed" // StateSkipped - All supported regulatory compliance controls in the given standard have a state of skipped StateSkipped State = "Skipped" // StateUnsupported - No supported regulatory compliance data for the given standard StateUnsupported State = "Unsupported" )
func PossibleStateValues ¶
func PossibleStateValues() []State
PossibleStateValues returns the possible values for the State const type.
type Status ¶
type Status string
Status - The status of the port
func PossibleStatusValues ¶
func PossibleStatusValues() []Status
PossibleStatusValues returns the possible values for the Status const type.
type StatusReason ¶
type StatusReason string
StatusReason - A description of why the status has its value
const ( StatusReasonExpired StatusReason = "Expired" StatusReasonNewerRequestInitiated StatusReason = "NewerRequestInitiated" StatusReasonUserRequested StatusReason = "UserRequested" )
func PossibleStatusReasonValues ¶
func PossibleStatusReasonValues() []StatusReason
PossibleStatusReasonValues returns the possible values for the StatusReason const type.
type SubAssessment ¶ added in v0.3.0
type SubAssessment struct { // Describes properties of an sub-assessment. Properties *SubAssessmentProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
SubAssessment - Security sub-assessment on a resource
type SubAssessmentList ¶ added in v0.3.0
type SubAssessmentList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY Value []*SubAssessment `json:"value,omitempty" azure:"ro"` }
SubAssessmentList - List of security sub-assessments
func (SubAssessmentList) MarshalJSON ¶ added in v0.3.0
func (s SubAssessmentList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubAssessmentList.
type SubAssessmentProperties ¶ added in v0.3.0
type SubAssessmentProperties struct { // Details of the sub-assessment AdditionalData AdditionalDataClassification `json:"additionalData,omitempty"` // Details of the resource that was assessed ResourceDetails ResourceDetailsClassification `json:"resourceDetails,omitempty"` // Status of the sub-assessment Status *SubAssessmentStatus `json:"status,omitempty"` // READ-ONLY; Category of the sub-assessment Category *string `json:"category,omitempty" azure:"ro"` // READ-ONLY; Human readable description of the assessment status Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; User friendly display name of the sub-assessment DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; Vulnerability ID ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Description of the impact of this sub-assessment Impact *string `json:"impact,omitempty" azure:"ro"` // READ-ONLY; Information on how to remediate this sub-assessment Remediation *string `json:"remediation,omitempty" azure:"ro"` // READ-ONLY; The date and time the sub-assessment was generated TimeGenerated *time.Time `json:"timeGenerated,omitempty" azure:"ro"` }
SubAssessmentProperties - Describes properties of an sub-assessment.
func (SubAssessmentProperties) MarshalJSON ¶ added in v0.3.0
func (s SubAssessmentProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubAssessmentProperties.
func (*SubAssessmentProperties) UnmarshalJSON ¶ added in v0.3.0
func (s *SubAssessmentProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubAssessmentProperties.
type SubAssessmentStatus ¶
type SubAssessmentStatus struct { // READ-ONLY; Programmatic code for the cause of the assessment status Cause *string `json:"cause,omitempty" azure:"ro"` // READ-ONLY; Programmatic code for the status of the assessment Code *SubAssessmentStatusCode `json:"code,omitempty" azure:"ro"` // READ-ONLY; Human readable description of the assessment status Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The sub-assessment severity level Severity *Severity `json:"severity,omitempty" azure:"ro"` }
SubAssessmentStatus - Status of the sub-assessment
type SubAssessmentStatusCode ¶
type SubAssessmentStatusCode string
SubAssessmentStatusCode - Programmatic code for the status of the assessment
const ( // SubAssessmentStatusCodeHealthy - The resource is healthy SubAssessmentStatusCodeHealthy SubAssessmentStatusCode = "Healthy" // SubAssessmentStatusCodeNotApplicable - Assessment for this resource did not happen SubAssessmentStatusCodeNotApplicable SubAssessmentStatusCode = "NotApplicable" // SubAssessmentStatusCodeUnhealthy - The resource has a security issue that needs to be addressed SubAssessmentStatusCodeUnhealthy SubAssessmentStatusCode = "Unhealthy" )
func PossibleSubAssessmentStatusCodeValues ¶
func PossibleSubAssessmentStatusCodeValues() []SubAssessmentStatusCode
PossibleSubAssessmentStatusCodeValues returns the possible values for the SubAssessmentStatusCode const type.
type SubAssessmentsClient ¶
type SubAssessmentsClient struct {
// contains filtered or unexported fields
}
SubAssessmentsClient contains the methods for the SubAssessments group. Don't use this type directly, use NewSubAssessmentsClient() instead.
func NewSubAssessmentsClient ¶
func NewSubAssessmentsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*SubAssessmentsClient, error)
NewSubAssessmentsClient creates a new instance of SubAssessmentsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SubAssessmentsClient) Get ¶
func (client *SubAssessmentsClient) Get(ctx context.Context, scope string, assessmentName string, subAssessmentName string, options *SubAssessmentsClientGetOptions) (SubAssessmentsClientGetResponse, error)
Get - Get a security sub-assessment on your scanned resource If the operation fails it returns an *azcore.ResponseError type. scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). assessmentName - The Assessment Key - Unique key for the assessment type subAssessmentName - The Sub-Assessment Key - Unique key for the sub-assessment type options - SubAssessmentsClientGetOptions contains the optional parameters for the SubAssessmentsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/GetSubAssessment_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSubAssessmentsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<scope>", "<assessment-name>", "<sub-assessment-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*SubAssessmentsClient) List ¶
func (client *SubAssessmentsClient) List(scope string, assessmentName string, options *SubAssessmentsClientListOptions) *runtime.Pager[SubAssessmentsClientListResponse]
List - Get security sub-assessments on all your scanned resources inside a scope If the operation fails it returns an *azcore.ResponseError type. scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). assessmentName - The Assessment Key - Unique key for the assessment type options - SubAssessmentsClientListOptions contains the optional parameters for the SubAssessmentsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/ListSubAssessments_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSubAssessmentsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List("<scope>", "<assessment-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*SubAssessmentsClient) ListAll ¶
func (client *SubAssessmentsClient) ListAll(scope string, options *SubAssessmentsClientListAllOptions) *runtime.Pager[SubAssessmentsClientListAllResponse]
ListAll - Get security sub-assessments on all your scanned resources inside a subscription scope If the operation fails it returns an *azcore.ResponseError type. scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName). options - SubAssessmentsClientListAllOptions contains the optional parameters for the SubAssessmentsClient.ListAll method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/SubAssessments/ListSubscriptionSubAssessments_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewSubAssessmentsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListAll("<scope>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SubAssessmentsClientGetOptions ¶ added in v0.3.0
type SubAssessmentsClientGetOptions struct { }
SubAssessmentsClientGetOptions contains the optional parameters for the SubAssessmentsClient.Get method.
type SubAssessmentsClientGetResponse ¶ added in v0.3.0
type SubAssessmentsClientGetResponse struct {
SubAssessment
}
SubAssessmentsClientGetResponse contains the response from method SubAssessmentsClient.Get.
type SubAssessmentsClientListAllOptions ¶ added in v0.3.0
type SubAssessmentsClientListAllOptions struct { }
SubAssessmentsClientListAllOptions contains the optional parameters for the SubAssessmentsClient.ListAll method.
type SubAssessmentsClientListAllResponse ¶ added in v0.3.0
type SubAssessmentsClientListAllResponse struct {
SubAssessmentList
}
SubAssessmentsClientListAllResponse contains the response from method SubAssessmentsClient.ListAll.
type SubAssessmentsClientListOptions ¶ added in v0.3.0
type SubAssessmentsClientListOptions struct { }
SubAssessmentsClientListOptions contains the optional parameters for the SubAssessmentsClient.List method.
type SubAssessmentsClientListResponse ¶ added in v0.3.0
type SubAssessmentsClientListResponse struct {
SubAssessmentList
}
SubAssessmentsClientListResponse contains the response from method SubAssessmentsClient.List.
type SupportedCloudEnum ¶
type SupportedCloudEnum string
SupportedCloudEnum - Relevant cloud for the custom assessment automation.
const ( SupportedCloudEnumAWS SupportedCloudEnum = "AWS" SupportedCloudEnumGCP SupportedCloudEnum = "GCP" )
func PossibleSupportedCloudEnumValues ¶
func PossibleSupportedCloudEnumValues() []SupportedCloudEnum
PossibleSupportedCloudEnumValues returns the possible values for the SupportedCloudEnum const type.
type SuppressionAlertsScope ¶
type SuppressionAlertsScope struct { // REQUIRED; All the conditions inside need to be true in order to suppress the alert AllOf []*ScopeElement `json:"allOf,omitempty"` }
func (SuppressionAlertsScope) MarshalJSON ¶
func (s SuppressionAlertsScope) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SuppressionAlertsScope.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type Tactics ¶
type Tactics string
Tactics - Tactic of the assessment
const ( TacticsCollection Tactics = "Collection" TacticsCommandAndControl Tactics = "Command and Control" TacticsCredentialAccess Tactics = "Credential Access" TacticsDefenseEvasion Tactics = "Defense Evasion" TacticsDiscovery Tactics = "Discovery" TacticsExecution Tactics = "Execution" TacticsExfiltration Tactics = "Exfiltration" TacticsImpact Tactics = "Impact" TacticsInitialAccess Tactics = "Initial Access" TacticsLateralMovement Tactics = "Lateral Movement" TacticsPersistence Tactics = "Persistence" TacticsPrivilegeEscalation Tactics = "Privilege Escalation" TacticsReconnaissance Tactics = "Reconnaissance" TacticsResourceDevelopment Tactics = "Resource Development" )
func PossibleTacticsValues ¶
func PossibleTacticsValues() []Tactics
PossibleTacticsValues returns the possible values for the Tactics const type.
type Tags ¶
type Tags struct { // A list of key value pairs that describe the resource. Tags map[string]*string `json:"tags,omitempty"` }
Tags - A list of key value pairs that describe the resource.
func (Tags) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Tags.
type TagsResource ¶
TagsResource - A container holding only the Tags for a resource, allowing the user to update the tags.
func (TagsResource) MarshalJSON ¶
func (t TagsResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TagsResource.
type Task ¶ added in v0.3.0
type Task struct { // Describes properties of a task. Properties *TaskProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Task - Security task that we recommend to do in order to strengthen security
type TaskList ¶ added in v0.3.0
type TaskList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY Value []*Task `json:"value,omitempty" azure:"ro"` }
TaskList - List of security task recommendations
func (TaskList) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements the json.Marshaller interface for type TaskList.
type TaskParameters ¶ added in v0.3.0
type TaskParameters struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. AdditionalProperties map[string]interface{} // READ-ONLY; Name of the task type Name *string `json:"name,omitempty" azure:"ro"` }
TaskParameters - Changing set of properties, depending on the task type that is derived from the name field
func (TaskParameters) MarshalJSON ¶ added in v0.3.0
func (t TaskParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TaskParameters.
func (*TaskParameters) UnmarshalJSON ¶ added in v0.3.0
func (t *TaskParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TaskParameters.
type TaskProperties ¶ added in v0.3.0
type TaskProperties struct { // Changing set of properties, depending on the task type that is derived from the name field SecurityTaskParameters *TaskParameters `json:"securityTaskParameters,omitempty"` // READ-ONLY; The time this task was discovered in UTC CreationTimeUTC *time.Time `json:"creationTimeUtc,omitempty" azure:"ro"` // READ-ONLY; The time this task's details were last changed in UTC LastStateChangeTimeUTC *time.Time `json:"lastStateChangeTimeUtc,omitempty" azure:"ro"` // READ-ONLY; State of the task (Active, Resolved etc.) State *string `json:"state,omitempty" azure:"ro"` // READ-ONLY; Additional data on the state of the task SubState *string `json:"subState,omitempty" azure:"ro"` }
TaskProperties - Describes properties of a task.
func (TaskProperties) MarshalJSON ¶ added in v0.3.0
func (t TaskProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TaskProperties.
func (*TaskProperties) UnmarshalJSON ¶ added in v0.3.0
func (t *TaskProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TaskProperties.
type TaskUpdateActionType ¶ added in v0.4.0
type TaskUpdateActionType string
const ( TaskUpdateActionTypeActivate TaskUpdateActionType = "Activate" TaskUpdateActionTypeClose TaskUpdateActionType = "Close" TaskUpdateActionTypeDismiss TaskUpdateActionType = "Dismiss" TaskUpdateActionTypeResolve TaskUpdateActionType = "Resolve" TaskUpdateActionTypeStart TaskUpdateActionType = "Start" )
func PossibleTaskUpdateActionTypeValues ¶ added in v0.4.0
func PossibleTaskUpdateActionTypeValues() []TaskUpdateActionType
PossibleTaskUpdateActionTypeValues returns the possible values for the TaskUpdateActionType const type.
type TasksClient ¶
type TasksClient struct {
// contains filtered or unexported fields
}
TasksClient contains the methods for the Tasks group. Don't use this type directly, use NewTasksClient() instead.
func NewTasksClient ¶
func NewTasksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TasksClient, error)
NewTasksClient creates a new instance of TasksClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*TasksClient) GetResourceGroupLevelTask ¶
func (client *TasksClient) GetResourceGroupLevelTask(ctx context.Context, resourceGroupName string, ascLocation string, taskName string, options *TasksClientGetResourceGroupLevelTaskOptions) (TasksClientGetResourceGroupLevelTaskResponse, error)
GetResourceGroupLevelTask - Recommended tasks that will help improve the security of the subscription proactively If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations taskName - Name of the task object, will be a GUID options - TasksClientGetResourceGroupLevelTaskOptions contains the optional parameters for the TasksClient.GetResourceGroupLevelTask method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTaskResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTasksClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetResourceGroupLevelTask(ctx, "<resource-group-name>", "<asc-location>", "<task-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*TasksClient) GetSubscriptionLevelTask ¶
func (client *TasksClient) GetSubscriptionLevelTask(ctx context.Context, ascLocation string, taskName string, options *TasksClientGetSubscriptionLevelTaskOptions) (TasksClientGetSubscriptionLevelTaskResponse, error)
GetSubscriptionLevelTask - Recommended tasks that will help improve the security of the subscription proactively If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations taskName - Name of the task object, will be a GUID options - TasksClientGetSubscriptionLevelTaskOptions contains the optional parameters for the TasksClient.GetSubscriptionLevelTask method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTaskSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTasksClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetSubscriptionLevelTask(ctx, "<asc-location>", "<task-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*TasksClient) List ¶
func (client *TasksClient) List(options *TasksClientListOptions) *runtime.Pager[TasksClientListResponse]
List - Recommended tasks that will help improve the security of the subscription proactively If the operation fails it returns an *azcore.ResponseError type. options - TasksClientListOptions contains the optional parameters for the TasksClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTasksSubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTasksClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(&armsecurity.TasksClientListOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*TasksClient) ListByHomeRegion ¶
func (client *TasksClient) ListByHomeRegion(ascLocation string, options *TasksClientListByHomeRegionOptions) *runtime.Pager[TasksClientListByHomeRegionResponse]
ListByHomeRegion - Recommended tasks that will help improve the security of the subscription proactively If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - TasksClientListByHomeRegionOptions contains the optional parameters for the TasksClient.ListByHomeRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTasksSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTasksClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByHomeRegion("<asc-location>", &armsecurity.TasksClientListByHomeRegionOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*TasksClient) ListByResourceGroup ¶
func (client *TasksClient) ListByResourceGroup(resourceGroupName string, ascLocation string, options *TasksClientListByResourceGroupOptions) *runtime.Pager[TasksClientListByResourceGroupResponse]
ListByResourceGroup - Recommended tasks that will help improve the security of the subscription proactively If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - TasksClientListByResourceGroupOptions contains the optional parameters for the TasksClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/GetTasksResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTasksClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", "<asc-location>", &armsecurity.TasksClientListByResourceGroupOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*TasksClient) UpdateResourceGroupLevelTaskState ¶
func (client *TasksClient) UpdateResourceGroupLevelTaskState(ctx context.Context, resourceGroupName string, ascLocation string, taskName string, taskUpdateActionType TaskUpdateActionType, options *TasksClientUpdateResourceGroupLevelTaskStateOptions) (TasksClientUpdateResourceGroupLevelTaskStateResponse, error)
UpdateResourceGroupLevelTaskState - Recommended tasks that will help improve the security of the subscription proactively If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations taskName - Name of the task object, will be a GUID taskUpdateActionType - Type of the action to do on the task options - TasksClientUpdateResourceGroupLevelTaskStateOptions contains the optional parameters for the TasksClient.UpdateResourceGroupLevelTaskState method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/UpdateTaskResourceGroupLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTasksClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.UpdateResourceGroupLevelTaskState(ctx, "<resource-group-name>", "<asc-location>", "<task-name>", armsecurity.TaskUpdateActionTypeDismiss, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*TasksClient) UpdateSubscriptionLevelTaskState ¶
func (client *TasksClient) UpdateSubscriptionLevelTaskState(ctx context.Context, ascLocation string, taskName string, taskUpdateActionType TaskUpdateActionType, options *TasksClientUpdateSubscriptionLevelTaskStateOptions) (TasksClientUpdateSubscriptionLevelTaskStateResponse, error)
UpdateSubscriptionLevelTaskState - Recommended tasks that will help improve the security of the subscription proactively If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations taskName - Name of the task object, will be a GUID taskUpdateActionType - Type of the action to do on the task options - TasksClientUpdateSubscriptionLevelTaskStateOptions contains the optional parameters for the TasksClient.UpdateSubscriptionLevelTaskState method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/examples/Tasks/UpdateTaskSubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTasksClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.UpdateSubscriptionLevelTaskState(ctx, "<asc-location>", "<task-name>", armsecurity.TaskUpdateActionTypeDismiss, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
type TasksClientGetResourceGroupLevelTaskOptions ¶ added in v0.3.0
type TasksClientGetResourceGroupLevelTaskOptions struct { }
TasksClientGetResourceGroupLevelTaskOptions contains the optional parameters for the TasksClient.GetResourceGroupLevelTask method.
type TasksClientGetResourceGroupLevelTaskResponse ¶ added in v0.3.0
type TasksClientGetResourceGroupLevelTaskResponse struct {
Task
}
TasksClientGetResourceGroupLevelTaskResponse contains the response from method TasksClient.GetResourceGroupLevelTask.
type TasksClientGetSubscriptionLevelTaskOptions ¶ added in v0.3.0
type TasksClientGetSubscriptionLevelTaskOptions struct { }
TasksClientGetSubscriptionLevelTaskOptions contains the optional parameters for the TasksClient.GetSubscriptionLevelTask method.
type TasksClientGetSubscriptionLevelTaskResponse ¶ added in v0.3.0
type TasksClientGetSubscriptionLevelTaskResponse struct {
Task
}
TasksClientGetSubscriptionLevelTaskResponse contains the response from method TasksClient.GetSubscriptionLevelTask.
type TasksClientListByHomeRegionOptions ¶ added in v0.3.0
type TasksClientListByHomeRegionOptions struct { // OData filter. Optional. Filter *string }
TasksClientListByHomeRegionOptions contains the optional parameters for the TasksClient.ListByHomeRegion method.
type TasksClientListByHomeRegionResponse ¶ added in v0.3.0
type TasksClientListByHomeRegionResponse struct {
TaskList
}
TasksClientListByHomeRegionResponse contains the response from method TasksClient.ListByHomeRegion.
type TasksClientListByResourceGroupOptions ¶ added in v0.3.0
type TasksClientListByResourceGroupOptions struct { // OData filter. Optional. Filter *string }
TasksClientListByResourceGroupOptions contains the optional parameters for the TasksClient.ListByResourceGroup method.
type TasksClientListByResourceGroupResponse ¶ added in v0.3.0
type TasksClientListByResourceGroupResponse struct {
TaskList
}
TasksClientListByResourceGroupResponse contains the response from method TasksClient.ListByResourceGroup.
type TasksClientListOptions ¶ added in v0.3.0
type TasksClientListOptions struct { // OData filter. Optional. Filter *string }
TasksClientListOptions contains the optional parameters for the TasksClient.List method.
type TasksClientListResponse ¶ added in v0.3.0
type TasksClientListResponse struct {
TaskList
}
TasksClientListResponse contains the response from method TasksClient.List.
type TasksClientUpdateResourceGroupLevelTaskStateOptions ¶ added in v0.3.0
type TasksClientUpdateResourceGroupLevelTaskStateOptions struct { }
TasksClientUpdateResourceGroupLevelTaskStateOptions contains the optional parameters for the TasksClient.UpdateResourceGroupLevelTaskState method.
type TasksClientUpdateResourceGroupLevelTaskStateResponse ¶ added in v0.3.0
type TasksClientUpdateResourceGroupLevelTaskStateResponse struct { }
TasksClientUpdateResourceGroupLevelTaskStateResponse contains the response from method TasksClient.UpdateResourceGroupLevelTaskState.
type TasksClientUpdateSubscriptionLevelTaskStateOptions ¶ added in v0.3.0
type TasksClientUpdateSubscriptionLevelTaskStateOptions struct { }
TasksClientUpdateSubscriptionLevelTaskStateOptions contains the optional parameters for the TasksClient.UpdateSubscriptionLevelTaskState method.
type TasksClientUpdateSubscriptionLevelTaskStateResponse ¶ added in v0.3.0
type TasksClientUpdateSubscriptionLevelTaskStateResponse struct { }
TasksClientUpdateSubscriptionLevelTaskStateResponse contains the response from method TasksClient.UpdateSubscriptionLevelTaskState.
type Techniques ¶
type Techniques string
Techniques - Techniques of the assessment
const ( TechniquesAbuseElevationControlMechanism Techniques = "Abuse Elevation Control Mechanism" TechniquesAccessTokenManipulation Techniques = "Access Token Manipulation" TechniquesAccountDiscovery Techniques = "Account Discovery" TechniquesAccountManipulation Techniques = "Account Manipulation" TechniquesActiveScanning Techniques = "Active Scanning" TechniquesApplicationLayerProtocol Techniques = "Application Layer Protocol" TechniquesAudioCapture Techniques = "Audio Capture" TechniquesBootOrLogonAutostartExecution Techniques = "Boot or Logon Autostart Execution" TechniquesBootOrLogonInitializationScripts Techniques = "Boot or Logon Initialization Scripts" TechniquesBruteForce Techniques = "Brute Force" TechniquesCloudInfrastructureDiscovery Techniques = "Cloud Infrastructure Discovery" TechniquesCloudServiceDashboard Techniques = "Cloud Service Dashboard" TechniquesCloudServiceDiscovery Techniques = "Cloud Service Discovery" TechniquesCommandAndScriptingInterpreter Techniques = "Command and Scripting Interpreter" TechniquesCompromiseClientSoftwareBinary Techniques = "Compromise Client Software Binary" TechniquesCompromiseInfrastructure Techniques = "Compromise Infrastructure" TechniquesContainerAndResourceDiscovery Techniques = "Container and Resource Discovery" TechniquesCreateAccount Techniques = "Create Account" TechniquesCreateOrModifySystemProcess Techniques = "Create or Modify System Process" TechniquesCredentialsFromPasswordStores Techniques = "Credentials from Password Stores" TechniquesDataDestruction Techniques = "Data Destruction" TechniquesDataEncryptedForImpact Techniques = "Data Encrypted for Impact" TechniquesDataFromCloudStorageObject Techniques = "Data from Cloud Storage Object" TechniquesDataFromConfigurationRepository Techniques = "Data from Configuration Repository" TechniquesDataFromInformationRepositories Techniques = "Data from Information Repositories" TechniquesDataFromLocalSystem Techniques = "Data from Local System" TechniquesDataManipulation Techniques = "Data Manipulation" TechniquesDataStaged Techniques = "Data Staged" TechniquesDefacement Techniques = "Defacement" TechniquesDeobfuscateDecodeFilesOrInformation Techniques = "Deobfuscate/Decode Files or Information" TechniquesDiskWipe Techniques = "Disk Wipe" TechniquesDomainTrustDiscovery Techniques = "Domain Trust Discovery" TechniquesDriveByCompromise Techniques = "Drive-by Compromise" TechniquesDynamicResolution Techniques = "Dynamic Resolution" TechniquesEndpointDenialOfService Techniques = "Endpoint Denial of Service" TechniquesEventTriggeredExecution Techniques = "Event Triggered Execution" TechniquesExfiltrationOverAlternativeProtocol Techniques = "Exfiltration Over Alternative Protocol" TechniquesExploitPublicFacingApplication Techniques = "Exploit Public-Facing Application" TechniquesExploitationForClientExecution Techniques = "Exploitation for Client Execution" TechniquesExploitationForCredentialAccess Techniques = "Exploitation for Credential Access" TechniquesExploitationForDefenseEvasion Techniques = "Exploitation for Defense Evasion" TechniquesExploitationForPrivilegeEscalation Techniques = "Exploitation for Privilege Escalation" TechniquesExploitationOfRemoteServices Techniques = "Exploitation of Remote Services" TechniquesExternalRemoteServices Techniques = "External Remote Services" TechniquesFallbackChannels Techniques = "Fallback Channels" TechniquesFileAndDirectoryDiscovery Techniques = "File and Directory Discovery" TechniquesFileAndDirectoryPermissionsModification Techniques = "File and Directory Permissions Modification" TechniquesGatherVictimNetworkInformation Techniques = "Gather Victim Network Information" TechniquesHideArtifacts Techniques = "Hide Artifacts" TechniquesHijackExecutionFlow Techniques = "Hijack Execution Flow" TechniquesImpairDefenses Techniques = "Impair Defenses" TechniquesImplantContainerImage Techniques = "Implant Container Image" TechniquesIndicatorRemovalOnHost Techniques = "Indicator Removal on Host" TechniquesIndirectCommandExecution Techniques = "Indirect Command Execution" TechniquesIngressToolTransfer Techniques = "Ingress Tool Transfer" TechniquesInputCapture Techniques = "Input Capture" TechniquesInterProcessCommunication Techniques = "Inter-Process Communication" TechniquesLateralToolTransfer Techniques = "Lateral Tool Transfer" TechniquesManInTheMiddle Techniques = "Man-in-the-Middle" TechniquesMasquerading Techniques = "Masquerading" TechniquesModifyAuthenticationProcess Techniques = "Modify Authentication Process" TechniquesModifyRegistry Techniques = "Modify Registry" TechniquesNetworkDenialOfService Techniques = "Network Denial of Service" TechniquesNetworkServiceScanning Techniques = "Network Service Scanning" TechniquesNetworkSniffing Techniques = "Network Sniffing" TechniquesNonApplicationLayerProtocol Techniques = "Non-Application Layer Protocol" TechniquesNonStandardPort Techniques = "Non-Standard Port" TechniquesOSCredentialDumping Techniques = "OS Credential Dumping" TechniquesObfuscatedFilesOrInformation Techniques = "Obfuscated Files or Information" TechniquesObtainCapabilities Techniques = "Obtain Capabilities" TechniquesOfficeApplicationStartup Techniques = "Office Application Startup" TechniquesPermissionGroupsDiscovery Techniques = "Permission Groups Discovery" TechniquesPhishing Techniques = "Phishing" TechniquesPreOSBoot Techniques = "Pre-OS Boot" TechniquesProcessDiscovery Techniques = "Process Discovery" TechniquesProcessInjection Techniques = "Process Injection" TechniquesProtocolTunneling Techniques = "Protocol Tunneling" TechniquesProxy Techniques = "Proxy" TechniquesQueryRegistry Techniques = "Query Registry" TechniquesRemoteAccessSoftware Techniques = "Remote Access Software" TechniquesRemoteServiceSessionHijacking Techniques = "Remote Service Session Hijacking" TechniquesRemoteServices Techniques = "Remote Services" TechniquesRemoteSystemDiscovery Techniques = "Remote System Discovery" TechniquesResourceHijacking Techniques = "Resource Hijacking" TechniquesSQLStoredProcedures Techniques = "SQL Stored Procedures" TechniquesScheduledTaskJob Techniques = "Scheduled Task/Job" TechniquesScreenCapture Techniques = "Screen Capture" TechniquesSearchVictimOwnedWebsites Techniques = "Search Victim-Owned Websites" TechniquesServerSoftwareComponent Techniques = "Server Software Component" TechniquesServiceStop Techniques = "Service Stop" TechniquesSignedBinaryProxyExecution Techniques = "Signed Binary Proxy Execution" TechniquesSoftwareDeploymentTools Techniques = "Software Deployment Tools" TechniquesStealOrForgeKerberosTickets Techniques = "Steal or Forge Kerberos Tickets" TechniquesSubvertTrustControls Techniques = "Subvert Trust Controls" TechniquesSupplyChainCompromise Techniques = "Supply Chain Compromise" TechniquesSystemInformationDiscovery Techniques = "System Information Discovery" TechniquesTrafficSignaling Techniques = "Traffic Signaling" TechniquesTransferDataToCloudAccount Techniques = "Transfer Data to Cloud Account" TechniquesTrustedRelationship Techniques = "Trusted Relationship" TechniquesUnsecuredCredentials Techniques = "Unsecured Credentials" TechniquesUserExecution Techniques = "User Execution" TechniquesValidAccounts Techniques = "Valid Accounts" TechniquesWindowsManagementInstrumentation Techniques = "Windows Management Instrumentation" )
func PossibleTechniquesValues ¶
func PossibleTechniquesValues() []Techniques
PossibleTechniquesValues returns the possible values for the Techniques const type.
type Threats ¶
type Threats string
Threats - Threats impact of the assessment
const ( ThreatsAccountBreach Threats = "accountBreach" ThreatsDataExfiltration Threats = "dataExfiltration" ThreatsDataSpillage Threats = "dataSpillage" ThreatsDenialOfService Threats = "denialOfService" ThreatsElevationOfPrivilege Threats = "elevationOfPrivilege" ThreatsMaliciousInsider Threats = "maliciousInsider" ThreatsMissingCoverage Threats = "missingCoverage" ThreatsThreatResistance Threats = "threatResistance" )
func PossibleThreatsValues ¶
func PossibleThreatsValues() []Threats
PossibleThreatsValues returns the possible values for the Threats const type.
type ThresholdCustomAlertRule ¶
type ThresholdCustomAlertRule struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
ThresholdCustomAlertRule - A custom alert rule that checks if a value (depends on the custom alert type) is within the given range.
func (*ThresholdCustomAlertRule) GetCustomAlertRule ¶ added in v0.3.0
func (t *ThresholdCustomAlertRule) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ThresholdCustomAlertRule.
func (*ThresholdCustomAlertRule) GetThresholdCustomAlertRule ¶
func (t *ThresholdCustomAlertRule) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type ThresholdCustomAlertRule.
func (ThresholdCustomAlertRule) MarshalJSON ¶ added in v0.3.0
func (t ThresholdCustomAlertRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ThresholdCustomAlertRule.
func (*ThresholdCustomAlertRule) UnmarshalJSON ¶
func (t *ThresholdCustomAlertRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ThresholdCustomAlertRule.
type ThresholdCustomAlertRuleClassification ¶
type ThresholdCustomAlertRuleClassification interface { CustomAlertRuleClassification // GetThresholdCustomAlertRule returns the ThresholdCustomAlertRule content of the underlying type. GetThresholdCustomAlertRule() *ThresholdCustomAlertRule }
ThresholdCustomAlertRuleClassification provides polymorphic access to related types. Call the interface's GetThresholdCustomAlertRule() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ActiveConnectionsNotInAllowedRange, *AmqpC2DMessagesNotInAllowedRange, *AmqpC2DRejectedMessagesNotInAllowedRange, *AmqpD2CMessagesNotInAllowedRange, - *DirectMethodInvokesNotInAllowedRange, *FailedLocalLoginsNotInAllowedRange, *FileUploadsNotInAllowedRange, *HTTPC2DMessagesNotInAllowedRange, - *HTTPC2DRejectedMessagesNotInAllowedRange, *HTTPD2CMessagesNotInAllowedRange, *MqttC2DMessagesNotInAllowedRange, *MqttC2DRejectedMessagesNotInAllowedRange, - *MqttD2CMessagesNotInAllowedRange, *QueuePurgesNotInAllowedRange, *ThresholdCustomAlertRule, *TimeWindowCustomAlertRule, - *TwinUpdatesNotInAllowedRange, *UnauthorizedOperationsNotInAllowedRange
type TimeWindowCustomAlertRule ¶
type TimeWindowCustomAlertRule struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
TimeWindowCustomAlertRule - A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range.
func (*TimeWindowCustomAlertRule) GetCustomAlertRule ¶ added in v0.3.0
func (t *TimeWindowCustomAlertRule) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type TimeWindowCustomAlertRule.
func (*TimeWindowCustomAlertRule) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (t *TimeWindowCustomAlertRule) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type TimeWindowCustomAlertRule.
func (*TimeWindowCustomAlertRule) GetTimeWindowCustomAlertRule ¶
func (t *TimeWindowCustomAlertRule) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type TimeWindowCustomAlertRule.
func (TimeWindowCustomAlertRule) MarshalJSON ¶
func (t TimeWindowCustomAlertRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TimeWindowCustomAlertRule.
func (*TimeWindowCustomAlertRule) UnmarshalJSON ¶
func (t *TimeWindowCustomAlertRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TimeWindowCustomAlertRule.
type TimeWindowCustomAlertRuleClassification ¶
type TimeWindowCustomAlertRuleClassification interface { ThresholdCustomAlertRuleClassification // GetTimeWindowCustomAlertRule returns the TimeWindowCustomAlertRule content of the underlying type. GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule }
TimeWindowCustomAlertRuleClassification provides polymorphic access to related types. Call the interface's GetTimeWindowCustomAlertRule() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ActiveConnectionsNotInAllowedRange, *AmqpC2DMessagesNotInAllowedRange, *AmqpC2DRejectedMessagesNotInAllowedRange, *AmqpD2CMessagesNotInAllowedRange, - *DirectMethodInvokesNotInAllowedRange, *FailedLocalLoginsNotInAllowedRange, *FileUploadsNotInAllowedRange, *HTTPC2DMessagesNotInAllowedRange, - *HTTPC2DRejectedMessagesNotInAllowedRange, *HTTPD2CMessagesNotInAllowedRange, *MqttC2DMessagesNotInAllowedRange, *MqttC2DRejectedMessagesNotInAllowedRange, - *MqttD2CMessagesNotInAllowedRange, *QueuePurgesNotInAllowedRange, *TimeWindowCustomAlertRule, *TwinUpdatesNotInAllowedRange, - *UnauthorizedOperationsNotInAllowedRange
type TopologyClient ¶
type TopologyClient struct {
// contains filtered or unexported fields
}
TopologyClient contains the methods for the Topology group. Don't use this type directly, use NewTopologyClient() instead.
func NewTopologyClient ¶
func NewTopologyClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TopologyClient, error)
NewTopologyClient creates a new instance of TopologyClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*TopologyClient) Get ¶
func (client *TopologyClient) Get(ctx context.Context, resourceGroupName string, ascLocation string, topologyResourceName string, options *TopologyClientGetOptions) (TopologyClientGetResponse, error)
Get - Gets a specific topology component. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations topologyResourceName - Name of a topology resources collection. options - TopologyClientGetOptions contains the optional parameters for the TopologyClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/GetTopology_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTopologyClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<asc-location>", "<topology-resource-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*TopologyClient) List ¶
func (client *TopologyClient) List(options *TopologyClientListOptions) *runtime.Pager[TopologyClientListResponse]
List - Gets a list that allows to build a topology view of a subscription. If the operation fails it returns an *azcore.ResponseError type. options - TopologyClientListOptions contains the optional parameters for the TopologyClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/GetTopologySubscription_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTopologyClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*TopologyClient) ListByHomeRegion ¶
func (client *TopologyClient) ListByHomeRegion(ascLocation string, options *TopologyClientListByHomeRegionOptions) *runtime.Pager[TopologyClientListByHomeRegionResponse]
ListByHomeRegion - Gets a list that allows to build a topology view of a subscription and location. If the operation fails it returns an *azcore.ResponseError type. ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations options - TopologyClientListByHomeRegionOptions contains the optional parameters for the TopologyClient.ListByHomeRegion method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/Topology/GetTopologySubscriptionLocation_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewTopologyClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByHomeRegion("<asc-location>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type TopologyClientGetOptions ¶ added in v0.3.0
type TopologyClientGetOptions struct { }
TopologyClientGetOptions contains the optional parameters for the TopologyClient.Get method.
type TopologyClientGetResponse ¶ added in v0.3.0
type TopologyClientGetResponse struct {
TopologyResource
}
TopologyClientGetResponse contains the response from method TopologyClient.Get.
type TopologyClientListByHomeRegionOptions ¶ added in v0.3.0
type TopologyClientListByHomeRegionOptions struct { }
TopologyClientListByHomeRegionOptions contains the optional parameters for the TopologyClient.ListByHomeRegion method.
type TopologyClientListByHomeRegionResponse ¶ added in v0.3.0
type TopologyClientListByHomeRegionResponse struct {
TopologyList
}
TopologyClientListByHomeRegionResponse contains the response from method TopologyClient.ListByHomeRegion.
type TopologyClientListOptions ¶ added in v0.3.0
type TopologyClientListOptions struct { }
TopologyClientListOptions contains the optional parameters for the TopologyClient.List method.
type TopologyClientListResponse ¶ added in v0.3.0
type TopologyClientListResponse struct {
TopologyList
}
TopologyClientListResponse contains the response from method TopologyClient.List.
type TopologyList ¶
type TopologyList struct { // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY Value []*TopologyResource `json:"value,omitempty" azure:"ro"` }
func (TopologyList) MarshalJSON ¶
func (t TopologyList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopologyList.
type TopologyResource ¶
type TopologyResource struct { // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Location where the resource is stored Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY Properties *TopologyResourceProperties `json:"properties,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
type TopologyResourceProperties ¶
type TopologyResourceProperties struct { // READ-ONLY; The UTC time on which the topology was calculated CalculatedDateTime *time.Time `json:"calculatedDateTime,omitempty" azure:"ro"` // READ-ONLY; Azure resources which are part of this topology resource TopologyResources []*TopologySingleResource `json:"topologyResources,omitempty" azure:"ro"` }
func (TopologyResourceProperties) MarshalJSON ¶
func (t TopologyResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopologyResourceProperties.
func (*TopologyResourceProperties) UnmarshalJSON ¶
func (t *TopologyResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TopologyResourceProperties.
type TopologySingleResource ¶
type TopologySingleResource struct { // READ-ONLY; Azure resources connected to this resource which are in lower level in the topology view Children []*TopologySingleResourceChild `json:"children,omitempty" azure:"ro"` // READ-ONLY; The location of this resource Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) NetworkZones *string `json:"networkZones,omitempty" azure:"ro"` // READ-ONLY; Azure resources connected to this resource which are in higher level in the topology view Parents []*TopologySingleResourceParent `json:"parents,omitempty" azure:"ro"` // READ-ONLY; Indicates if the resource has security recommendations RecommendationsExist *bool `json:"recommendationsExist,omitempty" azure:"ro"` // READ-ONLY; Azure resource id ResourceID *string `json:"resourceId,omitempty" azure:"ro"` // READ-ONLY; The security severity of the resource Severity *string `json:"severity,omitempty" azure:"ro"` // READ-ONLY; Score of the resource based on its security severity TopologyScore *int32 `json:"topologyScore,omitempty" azure:"ro"` }
func (TopologySingleResource) MarshalJSON ¶
func (t TopologySingleResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TopologySingleResource.
type TopologySingleResourceChild ¶
type TopologySingleResourceChild struct { // READ-ONLY; Azure resource id which serves as child resource in topology view ResourceID *string `json:"resourceId,omitempty" azure:"ro"` }
type TopologySingleResourceParent ¶
type TopologySingleResourceParent struct { // READ-ONLY; Azure resource id which serves as parent resource in topology view ResourceID *string `json:"resourceId,omitempty" azure:"ro"` }
type TrackedResource ¶
type TrackedResource struct { // Entity tag is used for comparing two or more entities from the same requested resource. Etag *string `json:"etag,omitempty"` // Kind of the resource Kind *string `json:"kind,omitempty"` // Location where the resource is stored Location *string `json:"location,omitempty"` // A list of key value pairs that describe the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - Describes an Azure tracked resource.
func (TrackedResource) MarshalJSON ¶ added in v0.3.0
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
type TransportProtocol ¶
type TransportProtocol string
const ( TransportProtocolTCP TransportProtocol = "TCP" TransportProtocolUDP TransportProtocol = "UDP" )
func PossibleTransportProtocolValues ¶
func PossibleTransportProtocolValues() []TransportProtocol
PossibleTransportProtocolValues returns the possible values for the TransportProtocol const type.
type TwinUpdatesNotInAllowedRange ¶
type TwinUpdatesNotInAllowedRange struct { // REQUIRED; Status of the custom alert. IsEnabled *bool `json:"isEnabled,omitempty"` // REQUIRED; The maximum threshold. MaxThreshold *int32 `json:"maxThreshold,omitempty"` // REQUIRED; The minimum threshold. MinThreshold *int32 `json:"minThreshold,omitempty"` // REQUIRED; The type of the custom alert rule. RuleType *string `json:"ruleType,omitempty"` // REQUIRED; The time window size in iso8601 format. TimeWindowSize *string `json:"timeWindowSize,omitempty"` // READ-ONLY; The description of the custom alert. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The display name of the custom alert. DisplayName *string `json:"displayName,omitempty" azure:"ro"` }
TwinUpdatesNotInAllowedRange - Number of twin updates is not in allowed range.
func (*TwinUpdatesNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (t *TwinUpdatesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type TwinUpdatesNotInAllowedRange.
func (*TwinUpdatesNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (t *TwinUpdatesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type TwinUpdatesNotInAllowedRange.
func (*TwinUpdatesNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (t *TwinUpdatesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type TwinUpdatesNotInAllowedRange.
func (TwinUpdatesNotInAllowedRange) MarshalJSON ¶
func (t TwinUpdatesNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TwinUpdatesNotInAllowedRange.
func (*TwinUpdatesNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (t *TwinUpdatesNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TwinUpdatesNotInAllowedRange.
type UnauthorizedOperationsNotInAllowedRange ¶
type UnauthorizedOperationsNotInAllowedRange struct { bool `json:"isEnabled,omitempty"` MaxThreshold *int32 `json:"maxThreshold,omitempty"` MinThreshold *int32 `json:"minThreshold,omitempty"` RuleType *string `json:"ruleType,omitempty"` TimeWindowSize *string `json:"timeWindowSize,omitempty"` Description *string `json:"description,omitempty" azure:"ro"` DisplayName *string `json:"displayName,omitempty" azure:"ro"` }IsEnabled *
UnauthorizedOperationsNotInAllowedRange - Number of unauthorized operations is not in allowed range.
func (*UnauthorizedOperationsNotInAllowedRange) GetCustomAlertRule ¶ added in v0.3.0
func (u *UnauthorizedOperationsNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule
GetCustomAlertRule implements the CustomAlertRuleClassification interface for type UnauthorizedOperationsNotInAllowedRange.
func (*UnauthorizedOperationsNotInAllowedRange) GetThresholdCustomAlertRule ¶ added in v0.3.0
func (u *UnauthorizedOperationsNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule
GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type UnauthorizedOperationsNotInAllowedRange.
func (*UnauthorizedOperationsNotInAllowedRange) GetTimeWindowCustomAlertRule ¶ added in v0.3.0
func (u *UnauthorizedOperationsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule
GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type UnauthorizedOperationsNotInAllowedRange.
func (UnauthorizedOperationsNotInAllowedRange) MarshalJSON ¶
func (u UnauthorizedOperationsNotInAllowedRange) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UnauthorizedOperationsNotInAllowedRange.
func (*UnauthorizedOperationsNotInAllowedRange) UnmarshalJSON ¶ added in v0.3.0
func (u *UnauthorizedOperationsNotInAllowedRange) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UnauthorizedOperationsNotInAllowedRange.
type UnmaskedIPLoggingStatus ¶
type UnmaskedIPLoggingStatus string
UnmaskedIPLoggingStatus - Unmasked IP address logging status
const ( // UnmaskedIPLoggingStatusDisabled - Unmasked IP logging is disabled UnmaskedIPLoggingStatusDisabled UnmaskedIPLoggingStatus = "Disabled" // UnmaskedIPLoggingStatusEnabled - Unmasked IP logging is enabled UnmaskedIPLoggingStatusEnabled UnmaskedIPLoggingStatus = "Enabled" )
func PossibleUnmaskedIPLoggingStatusValues ¶
func PossibleUnmaskedIPLoggingStatusValues() []UnmaskedIPLoggingStatus
PossibleUnmaskedIPLoggingStatusValues returns the possible values for the UnmaskedIPLoggingStatus const type.
type UpdateIoTSecuritySolutionProperties ¶
type UpdateIoTSecuritySolutionProperties struct { // List of the configuration status for each recommendation type. RecommendationsConfiguration []*RecommendationConfigurationProperties `json:"recommendationsConfiguration,omitempty"` // Properties of the IoT Security solution's user defined resources. UserDefinedResources *UserDefinedResourcesProperties `json:"userDefinedResources,omitempty"` }
UpdateIoTSecuritySolutionProperties - Update Security Solution setting data
func (UpdateIoTSecuritySolutionProperties) MarshalJSON ¶
func (u UpdateIoTSecuritySolutionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateIoTSecuritySolutionProperties.
type UpdateIotSecuritySolutionData ¶
type UpdateIotSecuritySolutionData struct { // Security Solution data Properties *UpdateIoTSecuritySolutionProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` }
func (UpdateIotSecuritySolutionData) MarshalJSON ¶
func (u UpdateIotSecuritySolutionData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateIotSecuritySolutionData.
type UserDefinedResourcesProperties ¶
type UserDefinedResourcesProperties struct { // REQUIRED; Azure Resource Graph query which represents the security solution's user defined resources. Required to start // with "where type != "Microsoft.Devices/IotHubs"" Query *string `json:"query,omitempty"` // REQUIRED; List of Azure subscription ids on which the user defined resources query should be executed. QuerySubscriptions []*string `json:"querySubscriptions,omitempty"` }
UserDefinedResourcesProperties - Properties of the IoT Security solution's user defined resources.
func (UserDefinedResourcesProperties) MarshalJSON ¶
func (u UserDefinedResourcesProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserDefinedResourcesProperties.
type UserImpact ¶
type UserImpact string
UserImpact - The user impact of the assessment
const ( UserImpactHigh UserImpact = "High" UserImpactLow UserImpact = "Low" UserImpactModerate UserImpact = "Moderate" )
func PossibleUserImpactValues ¶
func PossibleUserImpactValues() []UserImpact
PossibleUserImpactValues returns the possible values for the UserImpact const type.
type UserRecommendation ¶
type UserRecommendation struct { // The recommendation action of the machine or rule RecommendationAction *RecommendationAction `json:"recommendationAction,omitempty"` // Represents a user that is recommended to be allowed for a certain rule Username *string `json:"username,omitempty"` }
UserRecommendation - Represents a user that is recommended to be allowed for a certain rule
type VMRecommendation ¶
type VMRecommendation struct { // The configuration status of the machines group or machine or rule ConfigurationStatus *ConfigurationStatus `json:"configurationStatus,omitempty"` // The machine supportability of Enforce feature EnforcementSupport *EnforcementSupport `json:"enforcementSupport,omitempty"` // The recommendation action of the machine or rule RecommendationAction *RecommendationAction `json:"recommendationAction,omitempty"` // The full resource id of the machine ResourceID *string `json:"resourceId,omitempty"` }
VMRecommendation - Represents a machine that is part of a machine group
type VaRule ¶
type VaRule struct { // The benchmark references. BenchmarkReferences []*BenchmarkReference `json:"benchmarkReferences,omitempty"` // The rule category. Category *string `json:"category,omitempty"` // The rule description. Description *string `json:"description,omitempty"` // The rule query details. QueryCheck *QueryCheck `json:"queryCheck,omitempty"` // The rule rationale. Rationale *string `json:"rationale,omitempty"` // The rule Id. RuleID *string `json:"ruleId,omitempty"` // The rule type. RuleType *RuleType `json:"ruleType,omitempty"` // The rule severity. Severity *RuleSeverity `json:"severity,omitempty"` // The rule title. Title *string `json:"title,omitempty"` }
VaRule - vulnerability assessment rule metadata details.
func (VaRule) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type VaRule.
type ValueType ¶
type ValueType string
ValueType - The value type of the items in the list.
func PossibleValueTypeValues ¶
func PossibleValueTypeValues() []ValueType
PossibleValueTypeValues returns the possible values for the ValueType const type.
type VendorReference ¶
type VendorReference struct { // READ-ONLY; Link url Link *string `json:"link,omitempty" azure:"ro"` // READ-ONLY; Link title Title *string `json:"title,omitempty" azure:"ro"` }
VendorReference - Vendor reference
type WorkspaceSetting ¶
type WorkspaceSetting struct { // Workspace setting data Properties *WorkspaceSettingProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
WorkspaceSetting - Configures where to store the OMS agent data for workspaces under a scope
func (WorkspaceSetting) MarshalJSON ¶
func (w WorkspaceSetting) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceSetting.
type WorkspaceSettingList ¶
type WorkspaceSettingList struct { // REQUIRED; List of workspace settings Value []*WorkspaceSetting `json:"value,omitempty"` // READ-ONLY; The URI to fetch the next page. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
WorkspaceSettingList - List of workspace settings response
func (WorkspaceSettingList) MarshalJSON ¶
func (w WorkspaceSettingList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceSettingList.
type WorkspaceSettingProperties ¶
type WorkspaceSettingProperties struct { // REQUIRED; All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting // with more specific scope Scope *string `json:"scope,omitempty"` // REQUIRED; The full Azure ID of the workspace to save the data in WorkspaceID *string `json:"workspaceId,omitempty"` }
WorkspaceSettingProperties - Workspace setting data
type WorkspaceSettingsClient ¶
type WorkspaceSettingsClient struct {
// contains filtered or unexported fields
}
WorkspaceSettingsClient contains the methods for the WorkspaceSettings group. Don't use this type directly, use NewWorkspaceSettingsClient() instead.
func NewWorkspaceSettingsClient ¶
func NewWorkspaceSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceSettingsClient, error)
NewWorkspaceSettingsClient creates a new instance of WorkspaceSettingsClient with the specified values. subscriptionID - Azure subscription ID credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*WorkspaceSettingsClient) Create ¶
func (client *WorkspaceSettingsClient) Create(ctx context.Context, workspaceSettingName string, workspaceSetting WorkspaceSetting, options *WorkspaceSettingsClientCreateOptions) (WorkspaceSettingsClientCreateResponse, error)
Create - creating settings about where we should store your security data and logs If the operation fails it returns an *azcore.ResponseError type. workspaceSettingName - Name of the security setting workspaceSetting - Security data setting object options - WorkspaceSettingsClientCreateOptions contains the optional parameters for the WorkspaceSettingsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/CreateWorkspaceSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewWorkspaceSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Create(ctx, "<workspace-setting-name>", armsecurity.WorkspaceSetting{ Name: to.Ptr("<name>"), Type: to.Ptr("<type>"), ID: to.Ptr("<id>"), Properties: &armsecurity.WorkspaceSettingProperties{ Scope: to.Ptr("<scope>"), WorkspaceID: to.Ptr("<workspace-id>"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*WorkspaceSettingsClient) Delete ¶
func (client *WorkspaceSettingsClient) Delete(ctx context.Context, workspaceSettingName string, options *WorkspaceSettingsClientDeleteOptions) (WorkspaceSettingsClientDeleteResponse, error)
Delete - Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace If the operation fails it returns an *azcore.ResponseError type. workspaceSettingName - Name of the security setting options - WorkspaceSettingsClientDeleteOptions contains the optional parameters for the WorkspaceSettingsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/DeleteWorkspaceSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewWorkspaceSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<workspace-setting-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*WorkspaceSettingsClient) Get ¶
func (client *WorkspaceSettingsClient) Get(ctx context.Context, workspaceSettingName string, options *WorkspaceSettingsClientGetOptions) (WorkspaceSettingsClientGetResponse, error)
Get - Settings about where we should store your security data and logs. If the result is empty, it means that no custom-workspace configuration was set If the operation fails it returns an *azcore.ResponseError type. workspaceSettingName - Name of the security setting options - WorkspaceSettingsClientGetOptions contains the optional parameters for the WorkspaceSettingsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/GetWorkspaceSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewWorkspaceSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<workspace-setting-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*WorkspaceSettingsClient) List ¶
func (client *WorkspaceSettingsClient) List(options *WorkspaceSettingsClientListOptions) *runtime.Pager[WorkspaceSettingsClientListResponse]
List - Settings about where we should store your security data and logs. If the result is empty, it means that no custom-workspace configuration was set If the operation fails it returns an *azcore.ResponseError type. options - WorkspaceSettingsClientListOptions contains the optional parameters for the WorkspaceSettingsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/GetWorkspaceSettings_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewWorkspaceSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*WorkspaceSettingsClient) Update ¶
func (client *WorkspaceSettingsClient) Update(ctx context.Context, workspaceSettingName string, workspaceSetting WorkspaceSetting, options *WorkspaceSettingsClientUpdateOptions) (WorkspaceSettingsClientUpdateResponse, error)
Update - Settings about where we should store your security data and logs If the operation fails it returns an *azcore.ResponseError type. workspaceSettingName - Name of the security setting workspaceSetting - Security data setting object options - WorkspaceSettingsClientUpdateOptions contains the optional parameters for the WorkspaceSettingsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/examples/WorkspaceSettings/UpdateWorkspaceSetting_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armsecurity.NewWorkspaceSettingsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<workspace-setting-name>", armsecurity.WorkspaceSetting{ Name: to.Ptr("<name>"), Type: to.Ptr("<type>"), ID: to.Ptr("<id>"), Properties: &armsecurity.WorkspaceSettingProperties{ WorkspaceID: to.Ptr("<workspace-id>"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type WorkspaceSettingsClientCreateOptions ¶ added in v0.3.0
type WorkspaceSettingsClientCreateOptions struct { }
WorkspaceSettingsClientCreateOptions contains the optional parameters for the WorkspaceSettingsClient.Create method.
type WorkspaceSettingsClientCreateResponse ¶ added in v0.3.0
type WorkspaceSettingsClientCreateResponse struct {
WorkspaceSetting
}
WorkspaceSettingsClientCreateResponse contains the response from method WorkspaceSettingsClient.Create.
type WorkspaceSettingsClientDeleteOptions ¶ added in v0.3.0
type WorkspaceSettingsClientDeleteOptions struct { }
WorkspaceSettingsClientDeleteOptions contains the optional parameters for the WorkspaceSettingsClient.Delete method.
type WorkspaceSettingsClientDeleteResponse ¶ added in v0.3.0
type WorkspaceSettingsClientDeleteResponse struct { }
WorkspaceSettingsClientDeleteResponse contains the response from method WorkspaceSettingsClient.Delete.
type WorkspaceSettingsClientGetOptions ¶ added in v0.3.0
type WorkspaceSettingsClientGetOptions struct { }
WorkspaceSettingsClientGetOptions contains the optional parameters for the WorkspaceSettingsClient.Get method.
type WorkspaceSettingsClientGetResponse ¶ added in v0.3.0
type WorkspaceSettingsClientGetResponse struct {
WorkspaceSetting
}
WorkspaceSettingsClientGetResponse contains the response from method WorkspaceSettingsClient.Get.
type WorkspaceSettingsClientListOptions ¶ added in v0.3.0
type WorkspaceSettingsClientListOptions struct { }
WorkspaceSettingsClientListOptions contains the optional parameters for the WorkspaceSettingsClient.List method.
type WorkspaceSettingsClientListResponse ¶ added in v0.3.0
type WorkspaceSettingsClientListResponse struct {
WorkspaceSettingList
}
WorkspaceSettingsClientListResponse contains the response from method WorkspaceSettingsClient.List.
type WorkspaceSettingsClientUpdateOptions ¶ added in v0.3.0
type WorkspaceSettingsClientUpdateOptions struct { }
WorkspaceSettingsClientUpdateOptions contains the optional parameters for the WorkspaceSettingsClient.Update method.
type WorkspaceSettingsClientUpdateResponse ¶ added in v0.3.0
type WorkspaceSettingsClientUpdateResponse struct {
WorkspaceSetting
}
WorkspaceSettingsClientUpdateResponse contains the response from method WorkspaceSettingsClient.Update.
Source Files
¶
- build.go
- zz_generated_accountconnectors_client.go
- zz_generated_adaptiveapplicationcontrols_client.go
- zz_generated_adaptivenetworkhardenings_client.go
- zz_generated_advancedthreatprotection_client.go
- zz_generated_alerts_client.go
- zz_generated_alertssuppressionrules_client.go
- zz_generated_allowedconnections_client.go
- zz_generated_assessments_client.go
- zz_generated_assessmentsmetadata_client.go
- zz_generated_automations_client.go
- zz_generated_autoprovisioningsettings_client.go
- zz_generated_complianceresults_client.go
- zz_generated_compliances_client.go
- zz_generated_connectors_client.go
- zz_generated_constants.go
- zz_generated_contacts_client.go
- zz_generated_customassessmentautomations_client.go
- zz_generated_customentitystoreassignments_client.go
- zz_generated_date_type.go
- zz_generated_devicesecuritygroups_client.go
- zz_generated_discoveredsecuritysolutions_client.go
- zz_generated_externalsecuritysolutions_client.go
- zz_generated_informationprotectionpolicies_client.go
- zz_generated_ingestionsettings_client.go
- zz_generated_iotsecuritysolution_client.go
- zz_generated_iotsecuritysolutionanalytics_client.go
- zz_generated_iotsecuritysolutionsanalyticsaggregatedalert_client.go
- zz_generated_iotsecuritysolutionsanalyticsrecommendation_client.go
- zz_generated_jitnetworkaccesspolicies_client.go
- zz_generated_locations_client.go
- zz_generated_mdeonboardings_client.go
- zz_generated_models.go
- zz_generated_models_serde.go
- zz_generated_operations_client.go
- zz_generated_polymorphic_helpers.go
- zz_generated_pricings_client.go
- zz_generated_regulatorycomplianceassessments_client.go
- zz_generated_regulatorycompliancecontrols_client.go
- zz_generated_regulatorycompliancestandards_client.go
- zz_generated_response_types.go
- zz_generated_securescorecontroldefinitions_client.go
- zz_generated_securescorecontrols_client.go
- zz_generated_securescores_client.go
- zz_generated_servervulnerabilityassessment_client.go
- zz_generated_settings_client.go
- zz_generated_softwareinventories_client.go
- zz_generated_solutions_client.go
- zz_generated_solutionsreferencedata_client.go
- zz_generated_sqlvulnerabilityassessmentbaselinerules_client.go
- zz_generated_sqlvulnerabilityassessmentscanresults_client.go
- zz_generated_sqlvulnerabilityassessmentscans_client.go
- zz_generated_subassessments_client.go
- zz_generated_tasks_client.go
- zz_generated_time_rfc3339.go
- zz_generated_topology_client.go
- zz_generated_workspacesettings_client.go