applicationwhitelistings

package
v0.20240108.1121319 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/applicationwhitelistings Documentation

The applicationwhitelistings SDK allows for interaction with the Azure Resource Manager Service security (API Version 2020-01-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2020-01-01/applicationwhitelistings"

Client Initialization

client := applicationwhitelistings.NewApplicationWhitelistingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ApplicationWhitelistingsClient.AdaptiveApplicationControlsDelete

ctx := context.TODO()
id := applicationwhitelistings.NewApplicationWhitelistingID("12345678-1234-9876-4563-123456789012", "locationValue", "applicationWhitelistingValue")

read, err := client.AdaptiveApplicationControlsDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ApplicationWhitelistingsClient.AdaptiveApplicationControlsGet

ctx := context.TODO()
id := applicationwhitelistings.NewApplicationWhitelistingID("12345678-1234-9876-4563-123456789012", "locationValue", "applicationWhitelistingValue")

read, err := client.AdaptiveApplicationControlsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ApplicationWhitelistingsClient.AdaptiveApplicationControlsList

ctx := context.TODO()
id := applicationwhitelistings.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.AdaptiveApplicationControlsList(ctx, id, applicationwhitelistings.DefaultAdaptiveApplicationControlsListOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ApplicationWhitelistingsClient.AdaptiveApplicationControlsPut

ctx := context.TODO()
id := applicationwhitelistings.NewApplicationWhitelistingID("12345678-1234-9876-4563-123456789012", "locationValue", "applicationWhitelistingValue")

payload := applicationwhitelistings.AdaptiveApplicationControlGroup{
	// ...
}


read, err := client.AdaptiveApplicationControlsPut(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAction

func PossibleValuesForAction() []string

func PossibleValuesForConfigurationStatus

func PossibleValuesForConfigurationStatus() []string

func PossibleValuesForEnforcementMode

func PossibleValuesForEnforcementMode() []string

func PossibleValuesForEnforcementSupport

func PossibleValuesForEnforcementSupport() []string

func PossibleValuesForExe

func PossibleValuesForExe() []string

func PossibleValuesForExecutable

func PossibleValuesForExecutable() []string

func PossibleValuesForFileType

func PossibleValuesForFileType() []string

func PossibleValuesForIssue

func PossibleValuesForIssue() []string

func PossibleValuesForMsi

func PossibleValuesForMsi() []string

func PossibleValuesForRecommendationAction

func PossibleValuesForRecommendationAction() []string

func PossibleValuesForRecommendationStatus

func PossibleValuesForRecommendationStatus() []string

func PossibleValuesForScript

func PossibleValuesForScript() []string

func PossibleValuesForSourceSystem

func PossibleValuesForSourceSystem() []string

func PossibleValuesForType

func PossibleValuesForType() []string

func ValidateApplicationWhitelistingID

func ValidateApplicationWhitelistingID(input interface{}, key string) (warnings []string, errors []error)

ValidateApplicationWhitelistingID checks that 'input' can be parsed as a Application Whitelisting ID

Types

type Action

type Action string
const (
	ActionAdd         Action = "Add"
	ActionRecommended Action = "Recommended"
	ActionRemove      Action = "Remove"
)

type AdaptiveApplicationControlGroup

type AdaptiveApplicationControlGroup struct {
	Id         *string                             `json:"id,omitempty"`
	Location   *string                             `json:"location,omitempty"`
	Name       *string                             `json:"name,omitempty"`
	Properties AdaptiveApplicationControlGroupData `json:"properties"`
	Type       *string                             `json:"type,omitempty"`
}

type AdaptiveApplicationControlGroupData

type AdaptiveApplicationControlGroupData struct {
	ConfigurationStatus  *ConfigurationStatus                      `json:"configurationStatus,omitempty"`
	EnforcementMode      *EnforcementMode                          `json:"enforcementMode,omitempty"`
	Issues               *[]AdaptiveApplicationControlIssueSummary `json:"issues,omitempty"`
	PathRecommendations  *[]PathRecommendation                     `json:"pathRecommendations,omitempty"`
	ProtectionMode       *ProtectionMode                           `json:"protectionMode,omitempty"`
	RecommendationStatus *RecommendationStatus                     `json:"recommendationStatus,omitempty"`
	SourceSystem         *SourceSystem                             `json:"sourceSystem,omitempty"`
	VMRecommendations    *[]VMRecommendation                       `json:"vmRecommendations,omitempty"`
}

type AdaptiveApplicationControlGroups

type AdaptiveApplicationControlGroups struct {
	Value *[]AdaptiveApplicationControlGroup `json:"value,omitempty"`
}

type AdaptiveApplicationControlIssueSummary

type AdaptiveApplicationControlIssueSummary struct {
	Issue       *Issue   `json:"issue,omitempty"`
	NumberOfVMs *float64 `json:"numberOfVms,omitempty"`
}

type AdaptiveApplicationControlsDeleteOperationResponse

type AdaptiveApplicationControlsDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type AdaptiveApplicationControlsGetOperationResponse

type AdaptiveApplicationControlsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *AdaptiveApplicationControlGroup
}

type AdaptiveApplicationControlsListOperationOptions

type AdaptiveApplicationControlsListOperationOptions struct {
	IncludePathRecommendations *bool
	Summary                    *bool
}

func DefaultAdaptiveApplicationControlsListOperationOptions

func DefaultAdaptiveApplicationControlsListOperationOptions() AdaptiveApplicationControlsListOperationOptions

type AdaptiveApplicationControlsListOperationResponse

type AdaptiveApplicationControlsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *AdaptiveApplicationControlGroups
}

type AdaptiveApplicationControlsPutOperationResponse

type AdaptiveApplicationControlsPutOperationResponse struct {
	HttpResponse *http.Response
	Model        *AdaptiveApplicationControlGroup
}

type ApplicationWhitelistingId

type ApplicationWhitelistingId struct {
	SubscriptionId              string
	LocationName                string
	ApplicationWhitelistingName string
}

ApplicationWhitelistingId is a struct representing the Resource ID for a Application Whitelisting

func NewApplicationWhitelistingID

func NewApplicationWhitelistingID(subscriptionId string, locationName string, applicationWhitelistingName string) ApplicationWhitelistingId

NewApplicationWhitelistingID returns a new ApplicationWhitelistingId struct

func ParseApplicationWhitelistingID

func ParseApplicationWhitelistingID(input string) (*ApplicationWhitelistingId, error)

ParseApplicationWhitelistingID parses 'input' into a ApplicationWhitelistingId

func ParseApplicationWhitelistingIDInsensitively

func ParseApplicationWhitelistingIDInsensitively(input string) (*ApplicationWhitelistingId, error)

ParseApplicationWhitelistingIDInsensitively parses 'input' case-insensitively into a ApplicationWhitelistingId note: this method should only be used for API response data and not user input

func (*ApplicationWhitelistingId) FromParseResult added in v0.20231127.1171502

func (id *ApplicationWhitelistingId) FromParseResult(input resourceids.ParseResult) error

func (ApplicationWhitelistingId) ID

ID returns the formatted Application Whitelisting ID

func (ApplicationWhitelistingId) Segments

Segments returns a slice of Resource ID Segments which comprise this Application Whitelisting ID

func (ApplicationWhitelistingId) String

func (id ApplicationWhitelistingId) String() string

String returns a human-readable description of this Application Whitelisting ID

type ApplicationWhitelistingsClient

type ApplicationWhitelistingsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewApplicationWhitelistingsClientWithBaseURI

func NewApplicationWhitelistingsClientWithBaseURI(endpoint string) ApplicationWhitelistingsClient

func (ApplicationWhitelistingsClient) AdaptiveApplicationControlsDelete

AdaptiveApplicationControlsDelete ...

func (ApplicationWhitelistingsClient) AdaptiveApplicationControlsGet

AdaptiveApplicationControlsGet ...

func (ApplicationWhitelistingsClient) AdaptiveApplicationControlsList

AdaptiveApplicationControlsList ...

func (ApplicationWhitelistingsClient) AdaptiveApplicationControlsPut

AdaptiveApplicationControlsPut ...

type ConfigurationStatus

type ConfigurationStatus string
const (
	ConfigurationStatusConfigured    ConfigurationStatus = "Configured"
	ConfigurationStatusFailed        ConfigurationStatus = "Failed"
	ConfigurationStatusInProgress    ConfigurationStatus = "InProgress"
	ConfigurationStatusNoStatus      ConfigurationStatus = "NoStatus"
	ConfigurationStatusNotConfigured ConfigurationStatus = "NotConfigured"
)

type EnforcementMode

type EnforcementMode string
const (
	EnforcementModeAudit   EnforcementMode = "Audit"
	EnforcementModeEnforce EnforcementMode = "Enforce"
	EnforcementModeNone    EnforcementMode = "None"
)

type EnforcementSupport

type EnforcementSupport string
const (
	EnforcementSupportNotSupported EnforcementSupport = "NotSupported"
	EnforcementSupportSupported    EnforcementSupport = "Supported"
	EnforcementSupportUnknown      EnforcementSupport = "Unknown"
)

type Exe

type Exe string
const (
	ExeAudit   Exe = "Audit"
	ExeEnforce Exe = "Enforce"
	ExeNone    Exe = "None"
)

type Executable

type Executable string
const (
	ExecutableAudit   Executable = "Audit"
	ExecutableEnforce Executable = "Enforce"
	ExecutableNone    Executable = "None"
)

type FileType

type FileType string
const (
	FileTypeDll        FileType = "Dll"
	FileTypeExe        FileType = "Exe"
	FileTypeExecutable FileType = "Executable"
	FileTypeMsi        FileType = "Msi"
	FileTypeScript     FileType = "Script"
	FileTypeUnknown    FileType = "Unknown"
)

type Issue

type Issue string
const (
	IssueExecutableViolationsAudited   Issue = "ExecutableViolationsAudited"
	IssueMsiAndScriptViolationsAudited Issue = "MsiAndScriptViolationsAudited"
	IssueMsiAndScriptViolationsBlocked Issue = "MsiAndScriptViolationsBlocked"
	IssueRulesViolatedManually         Issue = "RulesViolatedManually"
	IssueViolationsAudited             Issue = "ViolationsAudited"
	IssueViolationsBlocked             Issue = "ViolationsBlocked"
)

type Msi

type Msi string
const (
	MsiAudit   Msi = "Audit"
	MsiEnforce Msi = "Enforce"
	MsiNone    Msi = "None"
)

type PathRecommendation

type PathRecommendation struct {
	Action              *Action               `json:"action,omitempty"`
	Common              *bool                 `json:"common,omitempty"`
	ConfigurationStatus *ConfigurationStatus  `json:"configurationStatus,omitempty"`
	FileType            *FileType             `json:"fileType,omitempty"`
	Path                *string               `json:"path,omitempty"`
	PublisherInfo       *PublisherInfo        `json:"publisherInfo,omitempty"`
	Type                *Type                 `json:"type,omitempty"`
	UserSids            *[]string             `json:"userSids,omitempty"`
	Usernames           *[]UserRecommendation `json:"usernames,omitempty"`
}

type ProtectionMode

type ProtectionMode struct {
	Exe        *Exe        `json:"exe,omitempty"`
	Executable *Executable `json:"executable,omitempty"`
	Msi        *Msi        `json:"msi,omitempty"`
	Script     *Script     `json:"script,omitempty"`
}

type PublisherInfo

type PublisherInfo struct {
	BinaryName    *string `json:"binaryName,omitempty"`
	ProductName   *string `json:"productName,omitempty"`
	PublisherName *string `json:"publisherName,omitempty"`
	Version       *string `json:"version,omitempty"`
}

type RecommendationAction

type RecommendationAction string
const (
	RecommendationActionAdd         RecommendationAction = "Add"
	RecommendationActionRecommended RecommendationAction = "Recommended"
	RecommendationActionRemove      RecommendationAction = "Remove"
)

type RecommendationStatus

type RecommendationStatus string
const (
	RecommendationStatusNoStatus       RecommendationStatus = "NoStatus"
	RecommendationStatusNotAvailable   RecommendationStatus = "NotAvailable"
	RecommendationStatusNotRecommended RecommendationStatus = "NotRecommended"
	RecommendationStatusRecommended    RecommendationStatus = "Recommended"
)

type Script

type Script string
const (
	ScriptAudit   Script = "Audit"
	ScriptEnforce Script = "Enforce"
	ScriptNone    Script = "None"
)

type SourceSystem

type SourceSystem string
const (
	SourceSystemAzureAppLocker    SourceSystem = "Azure_AppLocker"
	SourceSystemAzureAuditD       SourceSystem = "Azure_AuditD"
	SourceSystemNonAzureAppLocker SourceSystem = "NonAzure_AppLocker"
	SourceSystemNonAzureAuditD    SourceSystem = "NonAzure_AuditD"
	SourceSystemNone              SourceSystem = "None"
)

type Type

type Type string
const (
	TypeBinarySignature          Type = "BinarySignature"
	TypeFile                     Type = "File"
	TypeFileHash                 Type = "FileHash"
	TypeProductSignature         Type = "ProductSignature"
	TypePublisherSignature       Type = "PublisherSignature"
	TypeVersionAndAboveSignature Type = "VersionAndAboveSignature"
)

type UserRecommendation

type UserRecommendation struct {
	RecommendationAction *RecommendationAction `json:"recommendationAction,omitempty"`
	Username             *string               `json:"username,omitempty"`
}

type VMRecommendation

type VMRecommendation struct {
	ConfigurationStatus  *ConfigurationStatus  `json:"configurationStatus,omitempty"`
	EnforcementSupport   *EnforcementSupport   `json:"enforcementSupport,omitempty"`
	RecommendationAction *RecommendationAction `json:"recommendationAction,omitempty"`
	ResourceId           *string               `json:"resourceId,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL