Documentation ¶
Overview ¶
Package posturemanagementv2 : Operations and models for the PostureManagementV2 service
Index ¶
- Constants
- func ConstructServiceURL(providedUrlVariables map[string]string) (string, error)
- func GetServiceURLForRegion(region string) (string, error)
- func UnmarshalApplicabilityCriteria(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalBasicResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCollector(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCollectorList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCollectorUpdate(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalControl(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalControlItem(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalControlList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCredential(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCredentialDisplayFields(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCredentialGroup(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalCredentialList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalEventItem(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalEventList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalGoal(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalGoalApplicabilityCriteria(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalGoalItem(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalNewCredentialDisplayFields(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalPageLink(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalProfile(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalProfileItem(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalProfileList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalProfileResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResourceStatistics(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScanItem(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScanList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScanResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScope(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScopeCollector(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScopeCredential(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScopeDetailsAssetData(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScopeDetailsCredential(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScopeDetailsCredentialDisplayFields(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScopeDetailsGatewayTask(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScopeItem(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScopeList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalScopeTaskStatus(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalSummary(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalSummaryItem(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalSummaryList(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalTaskLogs(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalUpdateCredentialDisplayFields(m map[string]json.RawMessage, result interface{}) (err error)
- type ApplicabilityCriteria
- type BasicResult
- type Collector
- type CollectorList
- type CollectorUpdate
- type Control
- type ControlItem
- type ControlList
- type CreateCollectorOptions
- func (_options *CreateCollectorOptions) SetAccountID(accountID string) *CreateCollectorOptions
- func (_options *CreateCollectorOptions) SetDescription(description string) *CreateCollectorOptions
- func (options *CreateCollectorOptions) SetHeaders(param map[string]string) *CreateCollectorOptions
- func (_options *CreateCollectorOptions) SetIsPublic(isPublic bool) *CreateCollectorOptions
- func (_options *CreateCollectorOptions) SetIsUbiImage(isUbiImage bool) *CreateCollectorOptions
- func (_options *CreateCollectorOptions) SetManagedBy(managedBy string) *CreateCollectorOptions
- func (_options *CreateCollectorOptions) SetName(name string) *CreateCollectorOptions
- func (_options *CreateCollectorOptions) SetPassphrase(passphrase string) *CreateCollectorOptions
- func (_options *CreateCollectorOptions) SetTransactionID(transactionID string) *CreateCollectorOptions
- type CreateCredentialOptions
- func (_options *CreateCredentialOptions) SetAccountID(accountID string) *CreateCredentialOptions
- func (_options *CreateCredentialOptions) SetDescription(description string) *CreateCredentialOptions
- func (_options *CreateCredentialOptions) SetDisplayFields(displayFields *NewCredentialDisplayFields) *CreateCredentialOptions
- func (_options *CreateCredentialOptions) SetEnabled(enabled bool) *CreateCredentialOptions
- func (_options *CreateCredentialOptions) SetGroup(group *CredentialGroup) *CreateCredentialOptions
- func (options *CreateCredentialOptions) SetHeaders(param map[string]string) *CreateCredentialOptions
- func (_options *CreateCredentialOptions) SetName(name string) *CreateCredentialOptions
- func (_options *CreateCredentialOptions) SetPurpose(purpose string) *CreateCredentialOptions
- func (_options *CreateCredentialOptions) SetTransactionID(transactionID string) *CreateCredentialOptions
- func (_options *CreateCredentialOptions) SetType(typeVar string) *CreateCredentialOptions
- type CreateScopeOptions
- func (_options *CreateScopeOptions) SetAccountID(accountID string) *CreateScopeOptions
- func (_options *CreateScopeOptions) SetCollectorIds(collectorIds []string) *CreateScopeOptions
- func (_options *CreateScopeOptions) SetCredentialID(credentialID string) *CreateScopeOptions
- func (_options *CreateScopeOptions) SetCredentialType(credentialType string) *CreateScopeOptions
- func (_options *CreateScopeOptions) SetDescription(description string) *CreateScopeOptions
- func (options *CreateScopeOptions) SetHeaders(param map[string]string) *CreateScopeOptions
- func (_options *CreateScopeOptions) SetInterval(interval int64) *CreateScopeOptions
- func (_options *CreateScopeOptions) SetIsDiscoveryScheduled(isDiscoveryScheduled bool) *CreateScopeOptions
- func (_options *CreateScopeOptions) SetName(name string) *CreateScopeOptions
- func (_options *CreateScopeOptions) SetTransactionID(transactionID string) *CreateScopeOptions
- type CreateValidationOptions
- func (_options *CreateValidationOptions) SetAccountID(accountID string) *CreateValidationOptions
- func (_options *CreateValidationOptions) SetGroupProfileID(groupProfileID string) *CreateValidationOptions
- func (options *CreateValidationOptions) SetHeaders(param map[string]string) *CreateValidationOptions
- func (_options *CreateValidationOptions) SetProfileID(profileID string) *CreateValidationOptions
- func (_options *CreateValidationOptions) SetScopeID(scopeID string) *CreateValidationOptions
- func (_options *CreateValidationOptions) SetTransactionID(transactionID string) *CreateValidationOptions
- type Credential
- type CredentialDisplayFields
- type CredentialGroup
- type CredentialList
- type DeleteCollectorOptions
- func (_options *DeleteCollectorOptions) SetAccountID(accountID string) *DeleteCollectorOptions
- func (options *DeleteCollectorOptions) SetHeaders(param map[string]string) *DeleteCollectorOptions
- func (_options *DeleteCollectorOptions) SetID(id string) *DeleteCollectorOptions
- func (_options *DeleteCollectorOptions) SetTransactionID(transactionID string) *DeleteCollectorOptions
- type DeleteCredentialOptions
- func (_options *DeleteCredentialOptions) SetAccountID(accountID string) *DeleteCredentialOptions
- func (options *DeleteCredentialOptions) SetHeaders(param map[string]string) *DeleteCredentialOptions
- func (_options *DeleteCredentialOptions) SetID(id string) *DeleteCredentialOptions
- func (_options *DeleteCredentialOptions) SetTransactionID(transactionID string) *DeleteCredentialOptions
- type DeleteProfileOptions
- func (_options *DeleteProfileOptions) SetAccountID(accountID string) *DeleteProfileOptions
- func (options *DeleteProfileOptions) SetHeaders(param map[string]string) *DeleteProfileOptions
- func (_options *DeleteProfileOptions) SetID(id string) *DeleteProfileOptions
- func (_options *DeleteProfileOptions) SetTransactionID(transactionID string) *DeleteProfileOptions
- type DeleteScopeOptions
- func (_options *DeleteScopeOptions) SetAccountID(accountID string) *DeleteScopeOptions
- func (options *DeleteScopeOptions) SetHeaders(param map[string]string) *DeleteScopeOptions
- func (_options *DeleteScopeOptions) SetID(id string) *DeleteScopeOptions
- func (_options *DeleteScopeOptions) SetTransactionID(transactionID string) *DeleteScopeOptions
- type EventItem
- type EventList
- type GetCollectorOptions
- func (_options *GetCollectorOptions) SetAccountID(accountID string) *GetCollectorOptions
- func (options *GetCollectorOptions) SetHeaders(param map[string]string) *GetCollectorOptions
- func (_options *GetCollectorOptions) SetID(id string) *GetCollectorOptions
- func (_options *GetCollectorOptions) SetTransactionID(transactionID string) *GetCollectorOptions
- type GetCorrelationIDOptions
- func (_options *GetCorrelationIDOptions) SetAccountID(accountID string) *GetCorrelationIDOptions
- func (_options *GetCorrelationIDOptions) SetCorrelationID(correlationID string) *GetCorrelationIDOptions
- func (options *GetCorrelationIDOptions) SetHeaders(param map[string]string) *GetCorrelationIDOptions
- func (_options *GetCorrelationIDOptions) SetTransactionID(transactionID string) *GetCorrelationIDOptions
- type GetCredentialOptions
- func (_options *GetCredentialOptions) SetAccountID(accountID string) *GetCredentialOptions
- func (options *GetCredentialOptions) SetHeaders(param map[string]string) *GetCredentialOptions
- func (_options *GetCredentialOptions) SetID(id string) *GetCredentialOptions
- func (_options *GetCredentialOptions) SetTransactionID(transactionID string) *GetCredentialOptions
- type GetGroupProfileControlsOptions
- func (_options *GetGroupProfileControlsOptions) SetAccountID(accountID string) *GetGroupProfileControlsOptions
- func (_options *GetGroupProfileControlsOptions) SetGroupID(groupID string) *GetGroupProfileControlsOptions
- func (options *GetGroupProfileControlsOptions) SetHeaders(param map[string]string) *GetGroupProfileControlsOptions
- func (_options *GetGroupProfileControlsOptions) SetLimit(limit int64) *GetGroupProfileControlsOptions
- func (_options *GetGroupProfileControlsOptions) SetOffset(offset int64) *GetGroupProfileControlsOptions
- func (_options *GetGroupProfileControlsOptions) SetTransactionID(transactionID string) *GetGroupProfileControlsOptions
- type GetProfileControlsOptions
- func (_options *GetProfileControlsOptions) SetAccountID(accountID string) *GetProfileControlsOptions
- func (options *GetProfileControlsOptions) SetHeaders(param map[string]string) *GetProfileControlsOptions
- func (_options *GetProfileControlsOptions) SetLimit(limit int64) *GetProfileControlsOptions
- func (_options *GetProfileControlsOptions) SetOffset(offset int64) *GetProfileControlsOptions
- func (_options *GetProfileControlsOptions) SetProfileID(profileID string) *GetProfileControlsOptions
- func (_options *GetProfileControlsOptions) SetTransactionID(transactionID string) *GetProfileControlsOptions
- type GetProfileOptions
- func (_options *GetProfileOptions) SetAccountID(accountID string) *GetProfileOptions
- func (options *GetProfileOptions) SetHeaders(param map[string]string) *GetProfileOptions
- func (_options *GetProfileOptions) SetID(id string) *GetProfileOptions
- func (_options *GetProfileOptions) SetProfileType(profileType string) *GetProfileOptions
- func (_options *GetProfileOptions) SetTransactionID(transactionID string) *GetProfileOptions
- type GetScopeDetailsCollectorOptions
- func (_options *GetScopeDetailsCollectorOptions) SetAccountID(accountID string) *GetScopeDetailsCollectorOptions
- func (options *GetScopeDetailsCollectorOptions) SetHeaders(param map[string]string) *GetScopeDetailsCollectorOptions
- func (_options *GetScopeDetailsCollectorOptions) SetScopeID(scopeID string) *GetScopeDetailsCollectorOptions
- func (_options *GetScopeDetailsCollectorOptions) SetTransactionID(transactionID string) *GetScopeDetailsCollectorOptions
- type GetScopeDetailsCredentialsOptions
- func (_options *GetScopeDetailsCredentialsOptions) SetAccountID(accountID string) *GetScopeDetailsCredentialsOptions
- func (options *GetScopeDetailsCredentialsOptions) SetHeaders(param map[string]string) *GetScopeDetailsCredentialsOptions
- func (_options *GetScopeDetailsCredentialsOptions) SetScopeID(scopeID string) *GetScopeDetailsCredentialsOptions
- func (_options *GetScopeDetailsCredentialsOptions) SetTransactionID(transactionID string) *GetScopeDetailsCredentialsOptions
- type GetScopeDetailsOptions
- func (_options *GetScopeDetailsOptions) SetAccountID(accountID string) *GetScopeDetailsOptions
- func (options *GetScopeDetailsOptions) SetHeaders(param map[string]string) *GetScopeDetailsOptions
- func (_options *GetScopeDetailsOptions) SetID(id string) *GetScopeDetailsOptions
- func (_options *GetScopeDetailsOptions) SetTransactionID(transactionID string) *GetScopeDetailsOptions
- type GetScopeTimelineOptions
- func (_options *GetScopeTimelineOptions) SetAccountID(accountID string) *GetScopeTimelineOptions
- func (options *GetScopeTimelineOptions) SetHeaders(param map[string]string) *GetScopeTimelineOptions
- func (_options *GetScopeTimelineOptions) SetScopeID(scopeID string) *GetScopeTimelineOptions
- func (_options *GetScopeTimelineOptions) SetTransactionID(transactionID string) *GetScopeTimelineOptions
- type Goal
- type GoalApplicabilityCriteria
- type GoalItem
- type ImportProfilesOptions
- func (_options *ImportProfilesOptions) SetAccountID(accountID string) *ImportProfilesOptions
- func (_options *ImportProfilesOptions) SetFile(file io.ReadCloser) *ImportProfilesOptions
- func (options *ImportProfilesOptions) SetHeaders(param map[string]string) *ImportProfilesOptions
- func (_options *ImportProfilesOptions) SetTransactionID(transactionID string) *ImportProfilesOptions
- type ListCollectorsOptions
- type ListCredentialsOptions
- func (_options *ListCredentialsOptions) SetAccountID(accountID string) *ListCredentialsOptions
- func (options *ListCredentialsOptions) SetHeaders(param map[string]string) *ListCredentialsOptions
- func (_options *ListCredentialsOptions) SetLimit(limit int64) *ListCredentialsOptions
- func (_options *ListCredentialsOptions) SetOffset(offset int64) *ListCredentialsOptions
- func (_options *ListCredentialsOptions) SetTransactionID(transactionID string) *ListCredentialsOptions
- type ListLatestScansOptions
- func (_options *ListLatestScansOptions) SetAccountID(accountID string) *ListLatestScansOptions
- func (options *ListLatestScansOptions) SetHeaders(param map[string]string) *ListLatestScansOptions
- func (_options *ListLatestScansOptions) SetLimit(limit int64) *ListLatestScansOptions
- func (_options *ListLatestScansOptions) SetOffset(offset int64) *ListLatestScansOptions
- func (_options *ListLatestScansOptions) SetTransactionID(transactionID string) *ListLatestScansOptions
- type ListProfilesOptions
- func (_options *ListProfilesOptions) SetAccountID(accountID string) *ListProfilesOptions
- func (options *ListProfilesOptions) SetHeaders(param map[string]string) *ListProfilesOptions
- func (_options *ListProfilesOptions) SetLimit(limit int64) *ListProfilesOptions
- func (_options *ListProfilesOptions) SetOffset(offset int64) *ListProfilesOptions
- func (_options *ListProfilesOptions) SetTransactionID(transactionID string) *ListProfilesOptions
- type ListScopesOptions
- type NewCredentialDisplayFields
- type PageLink
- type PostureManagementV2
- func (postureManagement *PostureManagementV2) Clone() *PostureManagementV2
- func (postureManagement *PostureManagementV2) CreateCollector(createCollectorOptions *CreateCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) CreateCollectorWithContext(ctx context.Context, createCollectorOptions *CreateCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) CreateCredential(createCredentialOptions *CreateCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) CreateCredentialWithContext(ctx context.Context, createCredentialOptions *CreateCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) CreateScope(createScopeOptions *CreateScopeOptions) (result *Scope, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) CreateScopeWithContext(ctx context.Context, createScopeOptions *CreateScopeOptions) (result *Scope, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) CreateValidation(createValidationOptions *CreateValidationOptions) (result *Result, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) CreateValidationWithContext(ctx context.Context, createValidationOptions *CreateValidationOptions) (result *Result, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) DeleteCollector(deleteCollectorOptions *DeleteCollectorOptions) (response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) DeleteCollectorWithContext(ctx context.Context, deleteCollectorOptions *DeleteCollectorOptions) (response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) DeleteCredential(deleteCredentialOptions *DeleteCredentialOptions) (response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) DeleteCredentialWithContext(ctx context.Context, deleteCredentialOptions *DeleteCredentialOptions) (response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) DeleteProfile(deleteProfileOptions *DeleteProfileOptions) (response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) DeleteProfileWithContext(ctx context.Context, deleteProfileOptions *DeleteProfileOptions) (response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) DeleteScope(deleteScopeOptions *DeleteScopeOptions) (response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) DeleteScopeWithContext(ctx context.Context, deleteScopeOptions *DeleteScopeOptions) (response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) DisableRetries()
- func (postureManagement *PostureManagementV2) EnableRetries(maxRetries int, maxRetryInterval time.Duration)
- func (postureManagement *PostureManagementV2) GetCollector(getCollectorOptions *GetCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetCollectorWithContext(ctx context.Context, getCollectorOptions *GetCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetCorrelationID(getCorrelationIDOptions *GetCorrelationIDOptions) (result *ScopeTaskStatus, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetCorrelationIDWithContext(ctx context.Context, getCorrelationIDOptions *GetCorrelationIDOptions) (result *ScopeTaskStatus, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetCredential(getCredentialOptions *GetCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetCredentialWithContext(ctx context.Context, getCredentialOptions *GetCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetEnableGzipCompression() bool
- func (postureManagement *PostureManagementV2) GetGroupProfileControls(getGroupProfileControlsOptions *GetGroupProfileControlsOptions) (result *ControlList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetGroupProfileControlsWithContext(ctx context.Context, ...) (result *ControlList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetProfile(getProfileOptions *GetProfileOptions) (result *Profile, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetProfileControls(getProfileControlsOptions *GetProfileControlsOptions) (result *ControlList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetProfileControlsWithContext(ctx context.Context, getProfileControlsOptions *GetProfileControlsOptions) (result *ControlList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetProfileWithContext(ctx context.Context, getProfileOptions *GetProfileOptions) (result *Profile, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetScopeDetails(getScopeDetailsOptions *GetScopeDetailsOptions) (result *Scope, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetScopeDetailsCollector(getScopeDetailsCollectorOptions *GetScopeDetailsCollectorOptions) (result *ScopeCollector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetScopeDetailsCollectorWithContext(ctx context.Context, ...) (result *ScopeCollector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetScopeDetailsCredentials(getScopeDetailsCredentialsOptions *GetScopeDetailsCredentialsOptions) (result *ScopeCredential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetScopeDetailsCredentialsWithContext(ctx context.Context, ...) (result *ScopeCredential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetScopeDetailsWithContext(ctx context.Context, getScopeDetailsOptions *GetScopeDetailsOptions) (result *Scope, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetScopeTimeline(getScopeTimelineOptions *GetScopeTimelineOptions) (result *EventList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetScopeTimelineWithContext(ctx context.Context, getScopeTimelineOptions *GetScopeTimelineOptions) (result *EventList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) GetServiceURL() string
- func (postureManagement *PostureManagementV2) ImportProfiles(importProfilesOptions *ImportProfilesOptions) (result *BasicResult, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ImportProfilesWithContext(ctx context.Context, importProfilesOptions *ImportProfilesOptions) (result *BasicResult, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListCollectors(listCollectorsOptions *ListCollectorsOptions) (result *CollectorList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListCollectorsWithContext(ctx context.Context, listCollectorsOptions *ListCollectorsOptions) (result *CollectorList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListCredentials(listCredentialsOptions *ListCredentialsOptions) (result *CredentialList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListCredentialsWithContext(ctx context.Context, listCredentialsOptions *ListCredentialsOptions) (result *CredentialList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListLatestScans(listLatestScansOptions *ListLatestScansOptions) (result *ScanList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListLatestScansWithContext(ctx context.Context, listLatestScansOptions *ListLatestScansOptions) (result *ScanList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListProfiles(listProfilesOptions *ListProfilesOptions) (result *ProfileList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListProfilesWithContext(ctx context.Context, listProfilesOptions *ListProfilesOptions) (result *ProfileList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListScopes(listScopesOptions *ListScopesOptions) (result *ScopeList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ListScopesWithContext(ctx context.Context, listScopesOptions *ListScopesOptions) (result *ScopeList, response *core.DetailedResponse, err error)
- func (*PostureManagementV2) NewCreateCollectorOptions(name string, isPublic bool, managedBy string) *CreateCollectorOptions
- func (*PostureManagementV2) NewCreateCredentialOptions(enabled bool, typeVar string, name string, description string, ...) *CreateCredentialOptions
- func (*PostureManagementV2) NewCreateScopeOptions(name string, description string, collectorIds []string, credentialID string, ...) *CreateScopeOptions
- func (*PostureManagementV2) NewCreateValidationOptions(scopeID string, profileID string) *CreateValidationOptions
- func (*PostureManagementV2) NewCredentialGroup(id string, passphrase string) (_model *CredentialGroup, err error)
- func (*PostureManagementV2) NewDeleteCollectorOptions(id string) *DeleteCollectorOptions
- func (*PostureManagementV2) NewDeleteCredentialOptions(id string) *DeleteCredentialOptions
- func (*PostureManagementV2) NewDeleteProfileOptions(id string) *DeleteProfileOptions
- func (*PostureManagementV2) NewDeleteScopeOptions(id string) *DeleteScopeOptions
- func (*PostureManagementV2) NewGetCollectorOptions(id string) *GetCollectorOptions
- func (*PostureManagementV2) NewGetCorrelationIDOptions(correlationID string) *GetCorrelationIDOptions
- func (*PostureManagementV2) NewGetCredentialOptions(id string) *GetCredentialOptions
- func (*PostureManagementV2) NewGetGroupProfileControlsOptions(groupID string) *GetGroupProfileControlsOptions
- func (*PostureManagementV2) NewGetProfileControlsOptions(profileID string) *GetProfileControlsOptions
- func (*PostureManagementV2) NewGetProfileOptions(id string, profileType string) *GetProfileOptions
- func (*PostureManagementV2) NewGetScopeDetailsCollectorOptions(scopeID string) *GetScopeDetailsCollectorOptions
- func (*PostureManagementV2) NewGetScopeDetailsCredentialsOptions(scopeID string) *GetScopeDetailsCredentialsOptions
- func (*PostureManagementV2) NewGetScopeDetailsOptions(id string) *GetScopeDetailsOptions
- func (*PostureManagementV2) NewGetScopeTimelineOptions(scopeID string) *GetScopeTimelineOptions
- func (*PostureManagementV2) NewImportProfilesOptions(file io.ReadCloser) *ImportProfilesOptions
- func (*PostureManagementV2) NewListCollectorsOptions() *ListCollectorsOptions
- func (*PostureManagementV2) NewListCredentialsOptions() *ListCredentialsOptions
- func (*PostureManagementV2) NewListLatestScansOptions() *ListLatestScansOptions
- func (*PostureManagementV2) NewListProfilesOptions() *ListProfilesOptions
- func (*PostureManagementV2) NewListScopesOptions() *ListScopesOptions
- func (*PostureManagementV2) NewReplaceScopeDetailsCollectorOptions(scopeID string, collectorIds []string) *ReplaceScopeDetailsCollectorOptions
- func (*PostureManagementV2) NewReplaceScopeDetailsCredentialsOptions(scopeID string, credentialID string) *ReplaceScopeDetailsCredentialsOptions
- func (*PostureManagementV2) NewScanSummariesOptions(reportSettingID string) *ScanSummariesOptions
- func (*PostureManagementV2) NewScansSummaryOptions(scanID string, profileID string) *ScansSummaryOptions
- func (*PostureManagementV2) NewScopeCollector(collectorIds []string) (_model *ScopeCollector, err error)
- func (*PostureManagementV2) NewScopeCredential(credentialID string) (_model *ScopeCredential, err error)
- func (*PostureManagementV2) NewUpdateCollectorOptions(id string, collector map[string]interface{}) *UpdateCollectorOptions
- func (*PostureManagementV2) NewUpdateCredentialOptions(id string) *UpdateCredentialOptions
- func (*PostureManagementV2) NewUpdateProfilesOptions(id string) *UpdateProfilesOptions
- func (*PostureManagementV2) NewUpdateScopeDetailsOptions(id string) *UpdateScopeDetailsOptions
- func (postureManagement *PostureManagementV2) ReplaceScopeDetailsCollector(replaceScopeDetailsCollectorOptions *ReplaceScopeDetailsCollectorOptions) (result *ScopeCollector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ReplaceScopeDetailsCollectorWithContext(ctx context.Context, ...) (result *ScopeCollector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ReplaceScopeDetailsCredentials(replaceScopeDetailsCredentialsOptions *ReplaceScopeDetailsCredentialsOptions) (result *ScopeCredential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ReplaceScopeDetailsCredentialsWithContext(ctx context.Context, ...) (result *ScopeCredential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ScanSummaries(scanSummariesOptions *ScanSummariesOptions) (result *SummaryList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ScanSummariesWithContext(ctx context.Context, scanSummariesOptions *ScanSummariesOptions) (result *SummaryList, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ScansSummary(scansSummaryOptions *ScansSummaryOptions) (result *Summary, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) ScansSummaryWithContext(ctx context.Context, scansSummaryOptions *ScansSummaryOptions) (result *Summary, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) SetDefaultHeaders(headers http.Header)
- func (postureManagement *PostureManagementV2) SetEnableGzipCompression(enableGzip bool)
- func (postureManagement *PostureManagementV2) SetServiceURL(url string) error
- func (postureManagement *PostureManagementV2) UpdateCollector(updateCollectorOptions *UpdateCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) UpdateCollectorWithContext(ctx context.Context, updateCollectorOptions *UpdateCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) UpdateCredential(updateCredentialOptions *UpdateCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) UpdateCredentialWithContext(ctx context.Context, updateCredentialOptions *UpdateCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) UpdateProfiles(updateProfilesOptions *UpdateProfilesOptions) (result *Profile, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) UpdateProfilesWithContext(ctx context.Context, updateProfilesOptions *UpdateProfilesOptions) (result *Profile, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) UpdateScopeDetails(updateScopeDetailsOptions *UpdateScopeDetailsOptions) (result *Scope, response *core.DetailedResponse, err error)
- func (postureManagement *PostureManagementV2) UpdateScopeDetailsWithContext(ctx context.Context, updateScopeDetailsOptions *UpdateScopeDetailsOptions) (result *Scope, response *core.DetailedResponse, err error)
- type PostureManagementV2Options
- type Profile
- type ProfileItem
- type ProfileList
- type ProfileResult
- type ReplaceScopeDetailsCollectorOptions
- func (_options *ReplaceScopeDetailsCollectorOptions) SetAccountID(accountID string) *ReplaceScopeDetailsCollectorOptions
- func (_options *ReplaceScopeDetailsCollectorOptions) SetCollectorIds(collectorIds []string) *ReplaceScopeDetailsCollectorOptions
- func (options *ReplaceScopeDetailsCollectorOptions) SetHeaders(param map[string]string) *ReplaceScopeDetailsCollectorOptions
- func (_options *ReplaceScopeDetailsCollectorOptions) SetScopeID(scopeID string) *ReplaceScopeDetailsCollectorOptions
- func (_options *ReplaceScopeDetailsCollectorOptions) SetTransactionID(transactionID string) *ReplaceScopeDetailsCollectorOptions
- type ReplaceScopeDetailsCredentialsOptions
- func (_options *ReplaceScopeDetailsCredentialsOptions) SetAccountID(accountID string) *ReplaceScopeDetailsCredentialsOptions
- func (_options *ReplaceScopeDetailsCredentialsOptions) SetCredentialAttribute(credentialAttribute string) *ReplaceScopeDetailsCredentialsOptions
- func (_options *ReplaceScopeDetailsCredentialsOptions) SetCredentialID(credentialID string) *ReplaceScopeDetailsCredentialsOptions
- func (options *ReplaceScopeDetailsCredentialsOptions) SetHeaders(param map[string]string) *ReplaceScopeDetailsCredentialsOptions
- func (_options *ReplaceScopeDetailsCredentialsOptions) SetScopeID(scopeID string) *ReplaceScopeDetailsCredentialsOptions
- func (_options *ReplaceScopeDetailsCredentialsOptions) SetTransactionID(transactionID string) *ReplaceScopeDetailsCredentialsOptions
- type ResourceResult
- type ResourceStatistics
- type Result
- type ScanItem
- type ScanList
- type ScanResult
- type ScanSummariesOptions
- func (_options *ScanSummariesOptions) SetAccountID(accountID string) *ScanSummariesOptions
- func (options *ScanSummariesOptions) SetHeaders(param map[string]string) *ScanSummariesOptions
- func (_options *ScanSummariesOptions) SetLimit(limit int64) *ScanSummariesOptions
- func (_options *ScanSummariesOptions) SetOffset(offset int64) *ScanSummariesOptions
- func (_options *ScanSummariesOptions) SetReportSettingID(reportSettingID string) *ScanSummariesOptions
- func (_options *ScanSummariesOptions) SetTransactionID(transactionID string) *ScanSummariesOptions
- type ScansSummaryOptions
- func (_options *ScansSummaryOptions) SetAccountID(accountID string) *ScansSummaryOptions
- func (options *ScansSummaryOptions) SetHeaders(param map[string]string) *ScansSummaryOptions
- func (_options *ScansSummaryOptions) SetProfileID(profileID string) *ScansSummaryOptions
- func (_options *ScansSummaryOptions) SetScanID(scanID string) *ScansSummaryOptions
- func (_options *ScansSummaryOptions) SetTransactionID(transactionID string) *ScansSummaryOptions
- type Scope
- type ScopeCollector
- type ScopeCredential
- type ScopeDetailsAssetData
- type ScopeDetailsCredential
- type ScopeDetailsCredentialDisplayFields
- type ScopeDetailsGatewayTask
- type ScopeItem
- type ScopeList
- type ScopeTaskStatus
- type Summary
- type SummaryItem
- type SummaryList
- type TaskLogs
- type UpdateCollectorOptions
- func (_options *UpdateCollectorOptions) SetAccountID(accountID string) *UpdateCollectorOptions
- func (_options *UpdateCollectorOptions) SetCollector(collector map[string]interface{}) *UpdateCollectorOptions
- func (options *UpdateCollectorOptions) SetHeaders(param map[string]string) *UpdateCollectorOptions
- func (_options *UpdateCollectorOptions) SetID(id string) *UpdateCollectorOptions
- func (_options *UpdateCollectorOptions) SetTransactionID(transactionID string) *UpdateCollectorOptions
- type UpdateCredentialDisplayFields
- type UpdateCredentialOptions
- func (_options *UpdateCredentialOptions) SetAccountID(accountID string) *UpdateCredentialOptions
- func (_options *UpdateCredentialOptions) SetDescription(description string) *UpdateCredentialOptions
- func (_options *UpdateCredentialOptions) SetDisplayFields(displayFields *UpdateCredentialDisplayFields) *UpdateCredentialOptions
- func (_options *UpdateCredentialOptions) SetEnabled(enabled bool) *UpdateCredentialOptions
- func (options *UpdateCredentialOptions) SetHeaders(param map[string]string) *UpdateCredentialOptions
- func (_options *UpdateCredentialOptions) SetID(id string) *UpdateCredentialOptions
- func (_options *UpdateCredentialOptions) SetName(name string) *UpdateCredentialOptions
- func (_options *UpdateCredentialOptions) SetPurpose(purpose string) *UpdateCredentialOptions
- func (_options *UpdateCredentialOptions) SetTransactionID(transactionID string) *UpdateCredentialOptions
- func (_options *UpdateCredentialOptions) SetType(typeVar string) *UpdateCredentialOptions
- type UpdateProfilesOptions
- func (_options *UpdateProfilesOptions) SetAccountID(accountID string) *UpdateProfilesOptions
- func (_options *UpdateProfilesOptions) SetBaseProfile(baseProfile string) *UpdateProfilesOptions
- func (_options *UpdateProfilesOptions) SetControlIds(controlIds []string) *UpdateProfilesOptions
- func (_options *UpdateProfilesOptions) SetDescription(description string) *UpdateProfilesOptions
- func (options *UpdateProfilesOptions) SetHeaders(param map[string]string) *UpdateProfilesOptions
- func (_options *UpdateProfilesOptions) SetID(id string) *UpdateProfilesOptions
- func (_options *UpdateProfilesOptions) SetIsEnabled(isEnabled bool) *UpdateProfilesOptions
- func (_options *UpdateProfilesOptions) SetName(name string) *UpdateProfilesOptions
- func (_options *UpdateProfilesOptions) SetTransactionID(transactionID string) *UpdateProfilesOptions
- func (_options *UpdateProfilesOptions) SetType(typeVar string) *UpdateProfilesOptions
- type UpdateScopeDetailsOptions
- func (_options *UpdateScopeDetailsOptions) SetAccountID(accountID string) *UpdateScopeDetailsOptions
- func (_options *UpdateScopeDetailsOptions) SetDescription(description string) *UpdateScopeDetailsOptions
- func (options *UpdateScopeDetailsOptions) SetHeaders(param map[string]string) *UpdateScopeDetailsOptions
- func (_options *UpdateScopeDetailsOptions) SetID(id string) *UpdateScopeDetailsOptions
- func (_options *UpdateScopeDetailsOptions) SetName(name string) *UpdateScopeDetailsOptions
- func (_options *UpdateScopeDetailsOptions) SetTransactionID(transactionID string) *UpdateScopeDetailsOptions
Constants ¶
const ( CollectorStatusActiveConst = "active" CollectorStatusApprovalRequiredConst = "approval_required" CollectorStatusApprovedDownloadInProgressConst = "approved_download_in_progress" CollectorStatusApprovedInstallInProgressConst = "approved_install_in_progress" CollectorStatusCoreDownloadedConst = "core_downloaded" CollectorStatusInstallInProgressConst = "install_in_progress" CollectorStatusInstallationFailedConst = "installation_failed" CollectorStatusInstalledConst = "installed" CollectorStatusInstalledAssigningCredentialsConst = "installed_assigning_credentials" CollectorStatusInstalledCredentialsRequiredConst = "installed_credentials_required" CollectorStatusReadyToInstallConst = "ready_to_install" CollectorStatusSuspendedConst = "suspended" CollectorStatusUnableToConnectConst = "unable_to_connect" CollectorStatusWaitingForUpgradeConst = "waiting_for_upgrade" )
Constants associated with the Collector.Status property. The status of collector.
const ( CollectorTypeRestrictedConst = "restricted" CollectorTypeUnrestrictedConst = "unrestricted" )
Constants associated with the Collector.Type property. The type of the collector.
const ( CollectorManagedByCustomerConst = "customer" CollectorManagedByIBMConst = "ibm" )
Constants associated with the Collector.ManagedBy property. The entity that manages the collector.
const ( ControlStatusPassConst = "pass" ControlStatusUnableToPerformConst = "unable_to_perform" )
Constants associated with the Control.Status property. The control status.
const ( CreateCollectorOptionsManagedByCustomerConst = "customer" CreateCollectorOptionsManagedByIBMConst = "ibm" )
Constants associated with the CreateCollectorOptions.ManagedBy property. Determines whether the collector is an IBM or customer-managed virtual machine. Use `ibm` to allow Security and Compliance Center to create, install, and manage the collector on your behalf. The collector is installed in an OpenShift cluster and approved automatically for use. Use `customer` if you would like to install the collector by using your own virtual machine. For more information, check out the [docs](https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-collector).
const ( CreateCredentialOptionsTypeAwsCloudConst = "aws_cloud" CreateCredentialOptionsTypeAzureCloudConst = "azure_cloud" CreateCredentialOptionsTypeDatabaseConst = "database" CreateCredentialOptionsTypeIBMCloudConst = "ibm_cloud" CreateCredentialOptionsTypeKerberosWindowsConst = "kerberos_windows" CreateCredentialOptionsTypeMs365Const = "ms_365" CreateCredentialOptionsTypeOpenstackCloudConst = "openstack_cloud" CreateCredentialOptionsTypeUsernamePasswordConst = "username_password" )
Constants associated with the CreateCredentialOptions.Type property. Credentials type.
const ( CreateCredentialOptionsPurposeDiscoveryCollectionConst = "discovery_collection" CreateCredentialOptionsPurposeDiscoveryCollectionRemediationConst = "discovery_collection_remediation" CreateCredentialOptionsPurposeDiscoveryFactCollectionConst = "discovery_fact_collection" CreateCredentialOptionsPurposeDiscoveryFactCollectionRemediationConst = "discovery_fact_collection_remediation" CreateCredentialOptionsPurposeRemediationConst = "remediation" )
Constants associated with the CreateCredentialOptions.Purpose property. Purpose for which the credential is created.
const ( CreateScopeOptionsCredentialTypeAwsConst = "aws" CreateScopeOptionsCredentialTypeAzureConst = "azure" CreateScopeOptionsCredentialTypeGcpConst = "gcp" CreateScopeOptionsCredentialTypeHostedConst = "hosted" CreateScopeOptionsCredentialTypeIBMConst = "ibm" CreateScopeOptionsCredentialTypeOnPremiseConst = "on_premise" CreateScopeOptionsCredentialTypeOpenstackConst = "openstack" CreateScopeOptionsCredentialTypeServicesConst = "services" )
Constants associated with the CreateScopeOptions.CredentialType property. The environment that the scope is targeted to.
const ( CredentialTypeAwsCloudConst = "aws_cloud" CredentialTypeAzureCloudConst = "azure_cloud" CredentialTypeDatabaseConst = "database" CredentialTypeIBMCloudConst = "ibm_cloud" CredentialTypeKerberosWindowsConst = "kerberos_windows" CredentialTypeMs365Const = "ms_365" CredentialTypeOpenstackCloudConst = "openstack_cloud" CredentialTypeUsernamePasswordConst = "username_password" )
Constants associated with the Credential.Type property. Credentials type.
const ( CredentialPurposeDiscoveryCollectionConst = "discovery_collection" CredentialPurposeDiscoveryCollectionRemediationConst = "discovery_collection_remediation" CredentialPurposeDiscoveryFactCollectionConst = "discovery_fact_collection" CredentialPurposeDiscoveryFactCollectionRemediationConst = "discovery_fact_collection_remediation" CredentialPurposeRemediationConst = "remediation" )
Constants associated with the Credential.Purpose property. Purpose for which the credential is created.
const ( EventItemTaskTypeDiscoveryConst = "discovery" EventItemTaskTypeFactCollectionConst = "fact_collection" )
Constants associated with the EventItem.TaskType property. Task type.This will have 2 values - fact_collection and discovery.
const ( EventItemStatusAbortTaskRequestCompletedConst = "abort_task_request_completed" EventItemStatusAbortTaskRequestFailedConst = "abort_task_request_failed" EventItemStatusAbortTaskRequestReceivedConst = "abort_task_request_received" EventItemStatusCertRegularValidationCompletedConst = "cert_regular_validation_completed" EventItemStatusCertRegularValidationErrorConst = "cert_regular_validation_error" EventItemStatusCertRegularValidationStartedConst = "cert_regular_validation_started" EventItemStatusCertValidationCompletedConst = "cert_validation_completed" EventItemStatusCertValidationErrorConst = "cert_validation_error" EventItemStatusCertValidationStartedConst = "cert_validation_started" EventItemStatusControllerAbortedConst = "controller_aborted" EventItemStatusCveRegularValidationCompletedConst = "cve_regular_validation_completed" EventItemStatusCveRegularValidationErrorConst = "cve_regular_validation_error" EventItemStatusCveRegularValidationStartedConst = "cve_regular_validation_started" EventItemStatusCveValidationCompletedConst = "cve_validation_completed" EventItemStatusCveValidationErrorConst = "cve_validation_error" EventItemStatusCveValidationStartedConst = "cve_validation_started" EventItemStatusDiscoveryCompletedConst = "discovery_completed" EventItemStatusDiscoveryInProgressConst = "discovery_in_progress" EventItemStatusDiscoveryResultPostedNoErrorConst = "discovery_result_posted_no_error" EventItemStatusDiscoveryResultPostedWithErrorConst = "discovery_result_posted_with_error" EventItemStatusEolRegularValidationCompletedConst = "eol_regular_validation_completed" EventItemStatusEolRegularValidationErrorConst = "eol_regular_validation_error" EventItemStatusEolRegularValidationStartedConst = "eol_regular_validation_started" EventItemStatusEolValidationCompletedConst = "eol_validation_completed" EventItemStatusEolValidationErrorConst = "eol_validation_error" EventItemStatusEolValidationStartedConst = "eol_validation_started" EventItemStatusErrorInAbortTaskRequestConst = "error_in_abort_task_request" EventItemStatusErrorInDiscoveryConst = "error_in_discovery" EventItemStatusErrorInFactCollectionConst = "error_in_fact_collection" EventItemStatusErrorInFactValidationConst = "error_in_fact_validation" EventItemStatusErrorInInventoryConst = "error_in_inventory" EventItemStatusErrorInRemediationConst = "error_in_remediation" EventItemStatusErrorInValidationConst = "error_in_validation" EventItemStatusFactCollectionCompletedConst = "fact_collection_completed" EventItemStatusFactCollectionInProgressConst = "fact_collection_in_progress" EventItemStatusFactCollectionStartedConst = "fact_collection_started" EventItemStatusFactValidationCompletedConst = "fact_validation_completed" EventItemStatusFactValidationInProgressConst = "fact_validation_in_progress" EventItemStatusFactValidationStartedConst = "fact_validation_started" EventItemStatusGatewayAbortedConst = "gateway_aborted" EventItemStatusInventoryCompletedConst = "inventory_completed" EventItemStatusInventoryCompletedWithErrorConst = "inventory_completed_with_error" EventItemStatusInventoryInProgressConst = "inventory_in_progress" EventItemStatusInventoryStartedConst = "inventory_started" EventItemStatusLocationChangeAbortedConst = "location_change_aborted" EventItemStatusNotAcceptedConst = "not_accepted" EventItemStatusPendingConst = "pending" EventItemStatusRemediationCompletedConst = "remediation_completed" EventItemStatusRemediationInProgressConst = "remediation_in_progress" EventItemStatusRemediationStartedConst = "remediation_started" EventItemStatusSentToCollectorConst = "sent_to_collector" EventItemStatusUserAbortedConst = "user_aborted" EventItemStatusValidationCompletedConst = "validation_completed" EventItemStatusValidationInProgressConst = "validation_in_progress" EventItemStatusValidationResultPostedNoErrorConst = "validation_result_posted_no_error" EventItemStatusValidationResultPostedWithErrorConst = "validation_result_posted_with_error" EventItemStatusValidationStartedConst = "validation_started" EventItemStatusWaitingForRefineConst = "waiting_for_refine" )
Constants associated with the EventItem.Status property. The status of the event .
const ( GoalStatusFailConst = "fail" GoalStatusPassConst = "pass" )
Constants associated with the Goal.Status property. The goal status.
const ( ProfileTypeCustomConst = "custom" ProfileTypePredefinedConst = "predefined" ProfileTypeTemplateGroupConst = "template_group" )
Constants associated with the Profile.Type property. The type of profile.
const ( ProfileItemTypeCustomConst = "custom" ProfileItemTypePredefinedConst = "predefined" ProfileItemTypeTemplateGroupConst = "template_group" )
Constants associated with the ProfileItem.Type property. The type of profile.
const ( ProfileResultTypeAuthoredConst = "authored" ProfileResultTypeCustomConst = "custom" ProfileResultTypePredefinedConst = "predefined" ProfileResultTypeStandardConst = "standard" ProfileResultTypeStandardCertificateConst = "standard_certificate" ProfileResultTypeStandardCvConst = "standard_cv" ProfileResultTypeTemmplategroupConst = "temmplategroup" )
Constants associated with the ProfileResult.Type property. The type of profile. To learn more about profile types, check out the [docs] (https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-profiles).
const ( ResourceResultStatusPassConst = "pass" ResourceResultStatusUnableToPerformConst = "unable_to_perform" )
Constants associated with the ResourceResult.Status property. The resource control result status.
const ( ScopeStatusAbortTaskRequestCompletedConst = "abort_task_request_completed" ScopeStatusAbortTaskRequestFailedConst = "abort_task_request_failed" ScopeStatusAbortTaskRequestReceivedConst = "abort_task_request_received" ScopeStatusCertRegularValidationCompletedConst = "cert_regular_validation_completed" ScopeStatusCertRegularValidationErrorConst = "cert_regular_validation_error" ScopeStatusCertRegularValidationStartedConst = "cert_regular_validation_started" ScopeStatusCertValidationCompletedConst = "cert_validation_completed" ScopeStatusCertValidationErrorConst = "cert_validation_error" ScopeStatusCertValidationStartedConst = "cert_validation_started" ScopeStatusControllerAbortedConst = "controller_aborted" ScopeStatusCveRegularValidationCompletedConst = "cve_regular_validation_completed" ScopeStatusCveRegularValidationErrorConst = "cve_regular_validation_error" ScopeStatusCveRegularValidationStartedConst = "cve_regular_validation_started" ScopeStatusCveValidationCompletedConst = "cve_validation_completed" ScopeStatusCveValidationErrorConst = "cve_validation_error" ScopeStatusCveValidationStartedConst = "cve_validation_started" ScopeStatusDiscoveryCompletedConst = "discovery_completed" ScopeStatusDiscoveryInProgressConst = "discovery_in_progress" ScopeStatusDiscoveryResultPostedNoErrorConst = "discovery_result_posted_no_error" ScopeStatusDiscoveryResultPostedWithErrorConst = "discovery_result_posted_with_error" ScopeStatusDiscoveryStartedConst = "discovery_started" ScopeStatusEolRegularValidationCompletedConst = "eol_regular_validation_completed" ScopeStatusEolRegularValidationErrorConst = "eol_regular_validation_error" ScopeStatusEolRegularValidationStartedConst = "eol_regular_validation_started" ScopeStatusEolValidationCompletedConst = "eol_validation_completed" ScopeStatusEolValidationErrorConst = "eol_validation_error" ScopeStatusEolValidationStartedConst = "eol_validation_started" ScopeStatusErrorInAbortTaskRequestConst = "error_in_abort_task_request" ScopeStatusErrorInDiscoverConst = "error_in_discover" ScopeStatusErrorInFactCollectionConst = "error_in_fact_collection" ScopeStatusErrorInFactValidationConst = "error_in_fact_validation" ScopeStatusErrorInInventoryConst = "error_in_inventory" ScopeStatusErrorInRemediationConst = "error_in_remediation" ScopeStatusErrorInValidationConst = "error_in_validation" ScopeStatusFactCollectionCompletedConst = "fact_collection_completed" ScopeStatusFactCollectionInProgressConst = "fact_collection_in_progress" ScopeStatusFactCollectionStartedConst = "fact_collection_started" ScopeStatusFactValidationCompletedConst = "fact_validation_completed" ScopeStatusFactValidationInProgressConst = "fact_validation_in_progress" ScopeStatusFactValidationStartedConst = "fact_validation_started" ScopeStatusGatewayAbortedConst = "gateway_aborted" ScopeStatusInventoryCompletedConst = "inventory_completed" ScopeStatusInventoryCompletedWithErrorConst = "inventory_completed_with_error" ScopeStatusInventoryInProgressConst = "inventory_in_progress" ScopeStatusInventoryStartedConst = "inventory_started" ScopeStatusLocationChangeAbortedConst = "location_change_aborted" ScopeStatusNotAcceptedConst = "not_accepted" ScopeStatusPendingConst = "pending" ScopeStatusRemediationCompletedConst = "remediation_completed" ScopeStatusRemediationInProgressConst = "remediation_in_progress" ScopeStatusRemediationStartedConst = "remediation_started" ScopeStatusSentToCollectorConst = "sent_to_collector" ScopeStatusUserAbortedConst = "user_aborted" ScopeStatusValidationCompletedConst = "validation_completed" ScopeStatusValidationInProgressConst = "validation_in_progress" ScopeStatusValidationResultPostedNoErrorConst = "validation_result_posted_no_error" ScopeStatusValidationResultPostedWithErrorConst = "validation_result_posted_with_error" ScopeStatusValidationStartedConst = "validation_started" ScopeStatusWaitingForRefineConst = "waiting_for_refine" )
Constants associated with the Scope.Status property. Stores the value of scope_status .Will be displayed only when value exists.
const ( ScopeTaskTypeAborttasksConst = "aborttasks" ScopeTaskTypeCertRegularValidationConst = "cert_regular_validation" ScopeTaskTypeCertValidationConst = "cert_validation" ScopeTaskTypeCveRegularValidationConst = "cve_regular_validation" ScopeTaskTypeCveValidationConst = "cve_validation" ScopeTaskTypeDiscoverConst = "discover" ScopeTaskTypeEolRegularValidationConst = "eol_regular_validation" ScopeTaskTypeEolValidationConst = "eol_validation" ScopeTaskTypeEvidenceConst = "evidence" ScopeTaskTypeFactcollectionConst = "factcollection" ScopeTaskTypeFactvalidationConst = "factvalidation" ScopeTaskTypeInventoryConst = "inventory" ScopeTaskTypeNopConst = "nop" ScopeTaskTypeRemediationConst = "remediation" ScopeTaskTypeScriptConst = "script" ScopeTaskTypeSubsetvalidateConst = "subsetvalidate" ScopeTaskTypeTldiscoverConst = "tldiscover" )
Constants associated with the Scope.TaskType property. Stores the value of scope_task_type .Will be displayed only when value exists.
const ( ScopeTypeInventoryConst = "inventory" ScopeTypeValidationConst = "validation" )
Constants associated with the Scope.Type property. Stores the value of scope_type .Will be displayed only when value exists.
const ( ScopeDetailsGatewayTaskTaskTaskTypeAborttasksConst = "aborttasks" ScopeDetailsGatewayTaskTaskTaskTypeCertRegularValidationConst = "cert_regular_validation" ScopeDetailsGatewayTaskTaskTaskTypeCertValidationConst = "cert_validation" ScopeDetailsGatewayTaskTaskTaskTypeCveRegularValidationConst = "cve_regular_validation" ScopeDetailsGatewayTaskTaskTaskTypeCveValidationConst = "cve_validation" ScopeDetailsGatewayTaskTaskTaskTypeDiscoverConst = "discover" ScopeDetailsGatewayTaskTaskTaskTypeEolRegularValidationConst = "eol_regular_validation" ScopeDetailsGatewayTaskTaskTaskTypeEolValidationConst = "eol_validation" ScopeDetailsGatewayTaskTaskTaskTypeEvidenceConst = "evidence" ScopeDetailsGatewayTaskTaskTaskTypeFactcollectionConst = "factcollection" ScopeDetailsGatewayTaskTaskTaskTypeFactvalidationConst = "factvalidation" ScopeDetailsGatewayTaskTaskTaskTypeInventoryConst = "inventory" ScopeDetailsGatewayTaskTaskTaskTypeNopConst = "nop" ScopeDetailsGatewayTaskTaskTaskTypeRemediationConst = "remediation" ScopeDetailsGatewayTaskTaskTaskTypeScriptConst = "script" ScopeDetailsGatewayTaskTaskTaskTypeSubsetvalidateConst = "subsetvalidate" ScopeDetailsGatewayTaskTaskTaskTypeTldiscoverConst = "tldiscover" )
Constants associated with the ScopeDetailsGatewayTask.TaskTaskType property. Stores the value of task_task_type .
const ( ScopeDetailsGatewayTaskTaskStatusAbortTaskRequestCompletedConst = "abort_task_request_completed" ScopeDetailsGatewayTaskTaskStatusAbortTaskRequestFailedConst = "abort_task_request_failed" ScopeDetailsGatewayTaskTaskStatusAbortTaskRequestReceivedConst = "abort_task_request_received" ScopeDetailsGatewayTaskTaskStatusCertRegularValidationCompletedConst = "cert_regular_validation_completed" ScopeDetailsGatewayTaskTaskStatusCertRegularValidationErrorConst = "cert_regular_validation_error" ScopeDetailsGatewayTaskTaskStatusCertRegularValidationStartedConst = "cert_regular_validation_started" ScopeDetailsGatewayTaskTaskStatusCertValidationCompletedConst = "cert_validation_completed" ScopeDetailsGatewayTaskTaskStatusCertValidationErrorConst = "cert_validation_error" ScopeDetailsGatewayTaskTaskStatusCertValidationStartedConst = "cert_validation_started" ScopeDetailsGatewayTaskTaskStatusControllerAbortedConst = "controller_aborted" ScopeDetailsGatewayTaskTaskStatusCveRegularValidationCompletedConst = "cve_regular_validation_completed" ScopeDetailsGatewayTaskTaskStatusCveRegularValidationErrorConst = "cve_regular_validation_error" ScopeDetailsGatewayTaskTaskStatusCveRegularValidationStartedConst = "cve_regular_validation_started" ScopeDetailsGatewayTaskTaskStatusCveValidationCompletedConst = "cve_validation_completed" ScopeDetailsGatewayTaskTaskStatusCveValidationErrorConst = "cve_validation_error" ScopeDetailsGatewayTaskTaskStatusCveValidationStartedConst = "cve_validation_started" ScopeDetailsGatewayTaskTaskStatusDiscoveryCompletedConst = "discovery_completed" ScopeDetailsGatewayTaskTaskStatusDiscoveryInProgressConst = "discovery_in_progress" ScopeDetailsGatewayTaskTaskStatusDiscoveryResultPostedNoErrorConst = "discovery_result_posted_no_error" ScopeDetailsGatewayTaskTaskStatusDiscoveryResultPostedWithErrorConst = "discovery_result_posted_with_error" ScopeDetailsGatewayTaskTaskStatusDiscoveryStartedConst = "discovery_started" ScopeDetailsGatewayTaskTaskStatusEolRegularValidationCompletedConst = "eol_regular_validation_completed" ScopeDetailsGatewayTaskTaskStatusEolRegularValidationErrorConst = "eol_regular_validation_error" ScopeDetailsGatewayTaskTaskStatusEolRegularValidationStartedConst = "eol_regular_validation_started" ScopeDetailsGatewayTaskTaskStatusEolValidationCompletedConst = "eol_validation_completed" ScopeDetailsGatewayTaskTaskStatusEolValidationErrorConst = "eol_validation_error" ScopeDetailsGatewayTaskTaskStatusEolValidationStartedConst = "eol_validation_started" ScopeDetailsGatewayTaskTaskStatusErrorInAbortTaskRequestConst = "error_in_abort_task_request" ScopeDetailsGatewayTaskTaskStatusErrorInDiscoverConst = "error_in_discover" ScopeDetailsGatewayTaskTaskStatusErrorInFactCollectionConst = "error_in_fact_collection" ScopeDetailsGatewayTaskTaskStatusErrorInFactValidationConst = "error_in_fact_validation" ScopeDetailsGatewayTaskTaskStatusErrorInInventoryConst = "error_in_inventory" ScopeDetailsGatewayTaskTaskStatusErrorInRemediationConst = "error_in_remediation" ScopeDetailsGatewayTaskTaskStatusErrorInValidationConst = "error_in_validation" ScopeDetailsGatewayTaskTaskStatusFactCollectionCompletedConst = "fact_collection_completed" ScopeDetailsGatewayTaskTaskStatusFactCollectionInProgressConst = "fact_collection_in_progress" ScopeDetailsGatewayTaskTaskStatusFactCollectionStartedConst = "fact_collection_started" ScopeDetailsGatewayTaskTaskStatusFactValidationCompletedConst = "fact_validation_completed" ScopeDetailsGatewayTaskTaskStatusFactValidationInProgressConst = "fact_validation_in_progress" ScopeDetailsGatewayTaskTaskStatusFactValidationStartedConst = "fact_validation_started" ScopeDetailsGatewayTaskTaskStatusGatewayAbortedConst = "gateway_aborted" ScopeDetailsGatewayTaskTaskStatusInventoryCompletedConst = "inventory_completed" ScopeDetailsGatewayTaskTaskStatusInventoryCompletedWithErrorConst = "inventory_completed_with_error" ScopeDetailsGatewayTaskTaskStatusInventoryInProgressConst = "inventory_in_progress" ScopeDetailsGatewayTaskTaskStatusInventoryStartedConst = "inventory_started" ScopeDetailsGatewayTaskTaskStatusLocationChangeAbortedConst = "location_change_aborted" ScopeDetailsGatewayTaskTaskStatusNotAcceptedConst = "not_accepted" ScopeDetailsGatewayTaskTaskStatusPendingConst = "pending" ScopeDetailsGatewayTaskTaskStatusRemediationCompletedConst = "remediation_completed" ScopeDetailsGatewayTaskTaskStatusRemediationInProgressConst = "remediation_in_progress" ScopeDetailsGatewayTaskTaskStatusRemediationStartedConst = "remediation_started" ScopeDetailsGatewayTaskTaskStatusSentToCollectorConst = "sent_to_collector" ScopeDetailsGatewayTaskTaskStatusUserAbortedConst = "user_aborted" ScopeDetailsGatewayTaskTaskStatusValidationCompletedConst = "validation_completed" ScopeDetailsGatewayTaskTaskStatusValidationInProgressConst = "validation_in_progress" ScopeDetailsGatewayTaskTaskStatusValidationResultPostedNoErrorConst = "validation_result_posted_no_error" ScopeDetailsGatewayTaskTaskStatusValidationResultPostedWithErrorConst = "validation_result_posted_with_error" ScopeDetailsGatewayTaskTaskStatusValidationStartedConst = "validation_started" ScopeDetailsGatewayTaskTaskStatusWaitingForRefineConst = "waiting_for_refine" )
Constants associated with the ScopeDetailsGatewayTask.TaskStatus property. Stores the value of task_status .
const ( ScopeDetailsGatewayTaskTaskDerivedStatusAbortTaskRequestCompletedConst = "abort_task_request_completed" ScopeDetailsGatewayTaskTaskDerivedStatusAbortTaskRequestFailedConst = "abort_task_request_failed" ScopeDetailsGatewayTaskTaskDerivedStatusAbortTaskRequestReceivedConst = "abort_task_request_received" ScopeDetailsGatewayTaskTaskDerivedStatusCertRegularValidationCompletedConst = "cert_regular_validation_completed" ScopeDetailsGatewayTaskTaskDerivedStatusCertRegularValidationErrorConst = "cert_regular_validation_error" ScopeDetailsGatewayTaskTaskDerivedStatusCertRegularValidationStartedConst = "cert_regular_validation_started" ScopeDetailsGatewayTaskTaskDerivedStatusCertValidationCompletedConst = "cert_validation_completed" ScopeDetailsGatewayTaskTaskDerivedStatusCertValidationErrorConst = "cert_validation_error" ScopeDetailsGatewayTaskTaskDerivedStatusCertValidationStartedConst = "cert_validation_started" ScopeDetailsGatewayTaskTaskDerivedStatusControllerAbortedConst = "controller_aborted" ScopeDetailsGatewayTaskTaskDerivedStatusCveRegularValidationCompletedConst = "cve_regular_validation_completed" ScopeDetailsGatewayTaskTaskDerivedStatusCveRegularValidationErrorConst = "cve_regular_validation_error" ScopeDetailsGatewayTaskTaskDerivedStatusCveRegularValidationStartedConst = "cve_regular_validation_started" ScopeDetailsGatewayTaskTaskDerivedStatusCveValidationCompletedConst = "cve_validation_completed" ScopeDetailsGatewayTaskTaskDerivedStatusCveValidationErrorConst = "cve_validation_error" ScopeDetailsGatewayTaskTaskDerivedStatusCveValidationStartedConst = "cve_validation_started" ScopeDetailsGatewayTaskTaskDerivedStatusDiscoveryCompletedConst = "discovery_completed" ScopeDetailsGatewayTaskTaskDerivedStatusDiscoveryInProgressConst = "discovery_in_progress" ScopeDetailsGatewayTaskTaskDerivedStatusDiscoveryResultPostedNoErrorConst = "discovery_result_posted_no_error" ScopeDetailsGatewayTaskTaskDerivedStatusDiscoveryResultPostedWithErrorConst = "discovery_result_posted_with_error" ScopeDetailsGatewayTaskTaskDerivedStatusDiscoveryStartedConst = "discovery_started" ScopeDetailsGatewayTaskTaskDerivedStatusEolRegularValidationCompletedConst = "eol_regular_validation_completed" ScopeDetailsGatewayTaskTaskDerivedStatusEolRegularValidationErrorConst = "eol_regular_validation_error" ScopeDetailsGatewayTaskTaskDerivedStatusEolRegularValidationStartedConst = "eol_regular_validation_started" ScopeDetailsGatewayTaskTaskDerivedStatusEolValidationCompletedConst = "eol_validation_completed" ScopeDetailsGatewayTaskTaskDerivedStatusEolValidationErrorConst = "eol_validation_error" ScopeDetailsGatewayTaskTaskDerivedStatusEolValidationStartedConst = "eol_validation_started" ScopeDetailsGatewayTaskTaskDerivedStatusErrorInAbortTaskRequestConst = "error_in_abort_task_request" ScopeDetailsGatewayTaskTaskDerivedStatusErrorInDiscoverConst = "error_in_discover" ScopeDetailsGatewayTaskTaskDerivedStatusErrorInFactCollectionConst = "error_in_fact_collection" ScopeDetailsGatewayTaskTaskDerivedStatusErrorInFactValidationConst = "error_in_fact_validation" ScopeDetailsGatewayTaskTaskDerivedStatusErrorInInventoryConst = "error_in_inventory" ScopeDetailsGatewayTaskTaskDerivedStatusErrorInRemediationConst = "error_in_remediation" ScopeDetailsGatewayTaskTaskDerivedStatusErrorInValidationConst = "error_in_validation" ScopeDetailsGatewayTaskTaskDerivedStatusFactCollectionCompletedConst = "fact_collection_completed" ScopeDetailsGatewayTaskTaskDerivedStatusFactCollectionInProgressConst = "fact_collection_in_progress" ScopeDetailsGatewayTaskTaskDerivedStatusFactCollectionStartedConst = "fact_collection_started" ScopeDetailsGatewayTaskTaskDerivedStatusFactValidationCompletedConst = "fact_validation_completed" ScopeDetailsGatewayTaskTaskDerivedStatusFactValidationInProgressConst = "fact_validation_in_progress" ScopeDetailsGatewayTaskTaskDerivedStatusFactValidationStartedConst = "fact_validation_started" ScopeDetailsGatewayTaskTaskDerivedStatusGatewayAbortedConst = "gateway_aborted" ScopeDetailsGatewayTaskTaskDerivedStatusInventoryCompletedConst = "inventory_completed" ScopeDetailsGatewayTaskTaskDerivedStatusInventoryCompletedWithErrorConst = "inventory_completed_with_error" ScopeDetailsGatewayTaskTaskDerivedStatusInventoryInProgressConst = "inventory_in_progress" ScopeDetailsGatewayTaskTaskDerivedStatusInventoryStartedConst = "inventory_started" ScopeDetailsGatewayTaskTaskDerivedStatusLocationChangeAbortedConst = "location_change_aborted" ScopeDetailsGatewayTaskTaskDerivedStatusNotAcceptedConst = "not_accepted" ScopeDetailsGatewayTaskTaskDerivedStatusPendingConst = "pending" ScopeDetailsGatewayTaskTaskDerivedStatusRemediationCompletedConst = "remediation_completed" ScopeDetailsGatewayTaskTaskDerivedStatusRemediationInProgressConst = "remediation_in_progress" ScopeDetailsGatewayTaskTaskDerivedStatusRemediationStartedConst = "remediation_started" ScopeDetailsGatewayTaskTaskDerivedStatusSentToCollectorConst = "sent_to_collector" ScopeDetailsGatewayTaskTaskDerivedStatusUserAbortedConst = "user_aborted" ScopeDetailsGatewayTaskTaskDerivedStatusValidationCompletedConst = "validation_completed" ScopeDetailsGatewayTaskTaskDerivedStatusValidationInProgressConst = "validation_in_progress" ScopeDetailsGatewayTaskTaskDerivedStatusValidationResultPostedNoErrorConst = "validation_result_posted_no_error" ScopeDetailsGatewayTaskTaskDerivedStatusValidationResultPostedWithErrorConst = "validation_result_posted_with_error" ScopeDetailsGatewayTaskTaskDerivedStatusValidationStartedConst = "validation_started" ScopeDetailsGatewayTaskTaskDerivedStatusWaitingForRefineConst = "waiting_for_refine" )
Constants associated with the ScopeDetailsGatewayTask.TaskDerivedStatus property. Stores the value of task_derived_status .
const ( ScopeItemCredentialTypeAwsConst = "aws" ScopeItemCredentialTypeAzureConst = "azure" ScopeItemCredentialTypeGcpConst = "gcp" ScopeItemCredentialTypeHostedConst = "hosted" ScopeItemCredentialTypeIBMConst = "ibm" ScopeItemCredentialTypeOnPremiseConst = "on_premise" ScopeItemCredentialTypeOpenstackConst = "openstack" ScopeItemCredentialTypeServicesConst = "services" )
Constants associated with the ScopeItem.CredentialType property. The environment that the scope is targeted to.
const ( SummaryItemStatusAbortTaskRequestCompletedConst = "abort_task_request_completed" SummaryItemStatusAbortTaskRequestFailedConst = "abort_task_request_failed" SummaryItemStatusAbortTaskRequestReceivedConst = "abort_task_request_received" SummaryItemStatusControllerAbortedConst = "controller_aborted" SummaryItemStatusDiscoveryCompletedConst = "discovery_completed" SummaryItemStatusDiscoveryInProgressConst = "discovery_in_progress" SummaryItemStatusDiscoveryResultPostedNoErrorConst = "discovery_result_posted_no_error" SummaryItemStatusDiscoveryResultPostedWithErrorConst = "discovery_result_posted_with_error" SummaryItemStatusDiscoveryStartedConst = "discovery_started" SummaryItemStatusErrorInAbortTaskRequestConst = "error_in_abort_task_request" SummaryItemStatusErrorInDiscoveryConst = "error_in_discovery" SummaryItemStatusErrorInFactCollectionConst = "error_in_fact_collection" SummaryItemStatusErrorInFactValidationConst = "error_in_fact_validation" SummaryItemStatusErrorInInventoryConst = "error_in_inventory" SummaryItemStatusErrorInRemediationConst = "error_in_remediation" SummaryItemStatusErrorInValidationConst = "error_in_validation" SummaryItemStatusFactCollectionCompletedConst = "fact_collection_completed" SummaryItemStatusFactCollectionInProgressConst = "fact_collection_in_progress" SummaryItemStatusFactCollectionStartedConst = "fact_collection_started" SummaryItemStatusFactValidationCompletedConst = "fact_validation_completed" SummaryItemStatusFactValidationInProgressConst = "fact_validation_in_progress" SummaryItemStatusFactValidationStartedConst = "fact_validation_started" SummaryItemStatusGatewayAbortedConst = "gateway_aborted" SummaryItemStatusInventoryCompletedConst = "inventory_completed" SummaryItemStatusInventoryCompletedWithErrorConst = "inventory_completed_with_error" SummaryItemStatusInventoryInProgressConst = "inventory_in_progress" SummaryItemStatusInventoryStartedConst = "inventory_started" SummaryItemStatusNotAcceptedConst = "not_accepted" SummaryItemStatusPendingConst = "pending" SummaryItemStatusRemediationCompletedConst = "remediation_completed" SummaryItemStatusRemediationInProgressConst = "remediation_in_progress" SummaryItemStatusRemediationStartedConst = "remediation_started" SummaryItemStatusSentToCollectorConst = "sent_to_collector" SummaryItemStatusUserAbortedConst = "user_aborted" SummaryItemStatusValidationCompletedConst = "validation_completed" SummaryItemStatusValidationInProgressConst = "validation_in_progress" SummaryItemStatusValidationResultPostedNoErrorConst = "validation_result_posted_no_error" SummaryItemStatusValidationResultPostedWithErrorConst = "validation_result_posted_with_error" SummaryItemStatusValidationStartedConst = "validation_started" SummaryItemStatusWaitingForRefineConst = "waiting_for_refine" )
Constants associated with the SummaryItem.Status property. The status of the collector as it completes a scan.
const ( UpdateCredentialOptionsTypeAwsCloudConst = "aws_cloud" UpdateCredentialOptionsTypeAzureCloudConst = "azure_cloud" UpdateCredentialOptionsTypeDatabaseConst = "database" UpdateCredentialOptionsTypeIBMCloudConst = "ibm_cloud" UpdateCredentialOptionsTypeKerberosWindowsConst = "kerberos_windows" UpdateCredentialOptionsTypeMs365Const = "ms_365" UpdateCredentialOptionsTypeOpenstackCloudConst = "openstack_cloud" UpdateCredentialOptionsTypeUsernamePasswordConst = "username_password" )
Constants associated with the UpdateCredentialOptions.Type property. Credentials type.
const ( UpdateCredentialOptionsPurposeDiscoveryCollectionConst = "discovery_collection" UpdateCredentialOptionsPurposeDiscoveryCollectionRemediationConst = "discovery_collection_remediation" UpdateCredentialOptionsPurposeDiscoveryFactCollectionConst = "discovery_fact_collection" UpdateCredentialOptionsPurposeDiscoveryFactCollectionRemediationConst = "discovery_fact_collection_remediation" UpdateCredentialOptionsPurposeRemediationConst = "remediation" )
Constants associated with the UpdateCredentialOptions.Purpose property. Purpose for which the credential is created.
const ( UpdateProfilesOptionsTypeCustomConst = "custom" UpdateProfilesOptionsTypePredefinedConst = "predefined" )
Constants associated with the UpdateProfilesOptions.Type property. The type of profile. Seed profiles will have type as 'predefined',user generated profiles will be of type 'custom'.
const DefaultServiceName = "posture_management"
DefaultServiceName is the default key used to find external configuration information.
const DefaultServiceURL = "https://us.compliance.cloud.ibm.com"
DefaultServiceURL is the default URL to make service requests to.
const ParameterizedServiceURL = "https://{environment}.cloud.ibm.com"
const (
ScopeSubCategoriesByTypeMs365Const = "ms_365"
)
Constants associated with the Scope.SubCategoriesByType property. Stores the value of scope_sub_categories_by_type .Will be displayed only when value exists.
Variables ¶
This section is empty.
Functions ¶
func ConstructServiceURL ¶
ConstructServiceURL constructs a service URL from the parameterized URL.
func GetServiceURLForRegion ¶
GetServiceURLForRegion returns the service URL to be used for the specified region
func UnmarshalApplicabilityCriteria ¶
func UnmarshalApplicabilityCriteria(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalApplicabilityCriteria unmarshals an instance of ApplicabilityCriteria from the specified map of raw messages.
func UnmarshalBasicResult ¶
func UnmarshalBasicResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalBasicResult unmarshals an instance of BasicResult from the specified map of raw messages.
func UnmarshalCollector ¶
func UnmarshalCollector(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCollector unmarshals an instance of Collector from the specified map of raw messages.
func UnmarshalCollectorList ¶
func UnmarshalCollectorList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCollectorList unmarshals an instance of CollectorList from the specified map of raw messages.
func UnmarshalCollectorUpdate ¶
func UnmarshalCollectorUpdate(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCollectorUpdate unmarshals an instance of CollectorUpdate from the specified map of raw messages.
func UnmarshalControl ¶
func UnmarshalControl(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalControl unmarshals an instance of Control from the specified map of raw messages.
func UnmarshalControlItem ¶
func UnmarshalControlItem(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalControlItem unmarshals an instance of ControlItem from the specified map of raw messages.
func UnmarshalControlList ¶
func UnmarshalControlList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalControlList unmarshals an instance of ControlList from the specified map of raw messages.
func UnmarshalCredential ¶
func UnmarshalCredential(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCredential unmarshals an instance of Credential from the specified map of raw messages.
func UnmarshalCredentialDisplayFields ¶
func UnmarshalCredentialDisplayFields(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCredentialDisplayFields unmarshals an instance of CredentialDisplayFields from the specified map of raw messages.
func UnmarshalCredentialGroup ¶
func UnmarshalCredentialGroup(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCredentialGroup unmarshals an instance of CredentialGroup from the specified map of raw messages.
func UnmarshalCredentialList ¶
func UnmarshalCredentialList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalCredentialList unmarshals an instance of CredentialList from the specified map of raw messages.
func UnmarshalEventItem ¶
func UnmarshalEventItem(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalEventItem unmarshals an instance of EventItem from the specified map of raw messages.
func UnmarshalEventList ¶
func UnmarshalEventList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalEventList unmarshals an instance of EventList from the specified map of raw messages.
func UnmarshalGoal ¶
func UnmarshalGoal(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalGoal unmarshals an instance of Goal from the specified map of raw messages.
func UnmarshalGoalApplicabilityCriteria ¶
func UnmarshalGoalApplicabilityCriteria(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalGoalApplicabilityCriteria unmarshals an instance of GoalApplicabilityCriteria from the specified map of raw messages.
func UnmarshalGoalItem ¶
func UnmarshalGoalItem(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalGoalItem unmarshals an instance of GoalItem from the specified map of raw messages.
func UnmarshalNewCredentialDisplayFields ¶
func UnmarshalNewCredentialDisplayFields(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalNewCredentialDisplayFields unmarshals an instance of NewCredentialDisplayFields from the specified map of raw messages.
func UnmarshalPageLink ¶
func UnmarshalPageLink(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalPageLink unmarshals an instance of PageLink from the specified map of raw messages.
func UnmarshalProfile ¶
func UnmarshalProfile(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalProfile unmarshals an instance of Profile from the specified map of raw messages.
func UnmarshalProfileItem ¶
func UnmarshalProfileItem(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalProfileItem unmarshals an instance of ProfileItem from the specified map of raw messages.
func UnmarshalProfileList ¶
func UnmarshalProfileList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalProfileList unmarshals an instance of ProfileList from the specified map of raw messages.
func UnmarshalProfileResult ¶
func UnmarshalProfileResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalProfileResult unmarshals an instance of ProfileResult from the specified map of raw messages.
func UnmarshalResourceResult ¶
func UnmarshalResourceResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceResult unmarshals an instance of ResourceResult from the specified map of raw messages.
func UnmarshalResourceStatistics ¶
func UnmarshalResourceStatistics(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResourceStatistics unmarshals an instance of ResourceStatistics from the specified map of raw messages.
func UnmarshalResult ¶
func UnmarshalResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResult unmarshals an instance of Result from the specified map of raw messages.
func UnmarshalScanItem ¶
func UnmarshalScanItem(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScanItem unmarshals an instance of ScanItem from the specified map of raw messages.
func UnmarshalScanList ¶
func UnmarshalScanList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScanList unmarshals an instance of ScanList from the specified map of raw messages.
func UnmarshalScanResult ¶
func UnmarshalScanResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScanResult unmarshals an instance of ScanResult from the specified map of raw messages.
func UnmarshalScope ¶
func UnmarshalScope(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScope unmarshals an instance of Scope from the specified map of raw messages.
func UnmarshalScopeCollector ¶
func UnmarshalScopeCollector(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScopeCollector unmarshals an instance of ScopeCollector from the specified map of raw messages.
func UnmarshalScopeCredential ¶
func UnmarshalScopeCredential(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScopeCredential unmarshals an instance of ScopeCredential from the specified map of raw messages.
func UnmarshalScopeDetailsAssetData ¶
func UnmarshalScopeDetailsAssetData(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScopeDetailsAssetData unmarshals an instance of ScopeDetailsAssetData from the specified map of raw messages.
func UnmarshalScopeDetailsCredential ¶
func UnmarshalScopeDetailsCredential(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScopeDetailsCredential unmarshals an instance of ScopeDetailsCredential from the specified map of raw messages.
func UnmarshalScopeDetailsCredentialDisplayFields ¶
func UnmarshalScopeDetailsCredentialDisplayFields(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScopeDetailsCredentialDisplayFields unmarshals an instance of ScopeDetailsCredentialDisplayFields from the specified map of raw messages.
func UnmarshalScopeDetailsGatewayTask ¶
func UnmarshalScopeDetailsGatewayTask(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScopeDetailsGatewayTask unmarshals an instance of ScopeDetailsGatewayTask from the specified map of raw messages.
func UnmarshalScopeItem ¶
func UnmarshalScopeItem(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScopeItem unmarshals an instance of ScopeItem from the specified map of raw messages.
func UnmarshalScopeList ¶
func UnmarshalScopeList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScopeList unmarshals an instance of ScopeList from the specified map of raw messages.
func UnmarshalScopeTaskStatus ¶
func UnmarshalScopeTaskStatus(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalScopeTaskStatus unmarshals an instance of ScopeTaskStatus from the specified map of raw messages.
func UnmarshalSummary ¶
func UnmarshalSummary(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalSummary unmarshals an instance of Summary from the specified map of raw messages.
func UnmarshalSummaryItem ¶
func UnmarshalSummaryItem(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalSummaryItem unmarshals an instance of SummaryItem from the specified map of raw messages.
func UnmarshalSummaryList ¶
func UnmarshalSummaryList(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalSummaryList unmarshals an instance of SummaryList from the specified map of raw messages.
func UnmarshalTaskLogs ¶
func UnmarshalTaskLogs(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalTaskLogs unmarshals an instance of TaskLogs from the specified map of raw messages.
func UnmarshalUpdateCredentialDisplayFields ¶
func UnmarshalUpdateCredentialDisplayFields(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalUpdateCredentialDisplayFields unmarshals an instance of UpdateCredentialDisplayFields from the specified map of raw messages.
Types ¶
type ApplicabilityCriteria ¶
type ApplicabilityCriteria struct { // A list of environments that a profile can be applied to. Environment []string `json:"environment,omitempty"` // A list of resources that a profile can be used with. Resource []string `json:"resource,omitempty"` // The type of environment that a profile is able to be applied to. EnvironmentCategory []string `json:"environment_category,omitempty"` // The type of resource that a profile is able to be applied to. ResourceCategory []string `json:"resource_category,omitempty"` // The resource type that the profile applies to. ResourceType []string `json:"resource_type,omitempty"` // The software that the profile applies to. SoftwareDetails interface{} `json:"software_details,omitempty"` // The operatoring system that the profile applies to. OsDetails interface{} `json:"os_details,omitempty"` // Any additional details about the profile. AdditionalDetails interface{} `json:"additional_details,omitempty"` // The type of environment that your scope is targeted to. EnvironmentCategoryDescription map[string]string `json:"environment_category_description,omitempty"` // The environment that your scope is targeted to. EnvironmentDescription map[string]string `json:"environment_description,omitempty"` // The type of resource that your scope is targeted to. ResourceCategoryDescription map[string]string `json:"resource_category_description,omitempty"` // A further classification of the type of resource that your scope is targeted to. ResourceTypeDescription map[string]string `json:"resource_type_description,omitempty"` // The resource that is scanned as part of your scope. ResourceDescription map[string]string `json:"resource_description,omitempty"` }
ApplicabilityCriteria : The criteria that defines how a profile applies.
type BasicResult ¶
type BasicResult struct { // A message. Message *string `json:"message" validate:"required"` // The result of the operation. Result *bool `json:"result" validate:"required"` }
BasicResult : A basic response.
type Collector ¶
type Collector struct { // The id of the collector. ID *string `json:"id" validate:"required"` // The user-friendly name of the collector. DisplayName *string `json:"display_name" validate:"required"` // The name of the collector. Name *string `json:"name" validate:"required"` // The public key of the collector.Will be used for ssl communciation between collector and orchestrator .This will be // populated when collector is installed. PublicKey *string `json:"public_key,omitempty"` // Stores the heartbeat time of a controller . This value exists when collector is installed and running. LastHeartbeat *strfmt.DateTime `json:"last_heartbeat,omitempty"` // The status of collector. Status *string `json:"status" validate:"required"` // The collector version. This field is populated when collector is installed. CollectorVersion *string `json:"collector_version,omitempty"` // The image version of the collector. This field is populated when collector is installed. ". ImageVersion *string `json:"image_version,omitempty"` // The description of the collector. Description *string `json:"description" validate:"required"` // The id of the user that created the collector. CreatedBy *string `json:"created_by" validate:"required"` // The ISO Date/Time the collector was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` // The id of the user that modified the collector. UpdatedBy *string `json:"updated_by" validate:"required"` // The ISO Date/Time the collector was modified. UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"` // Identifies whether the collector is enabled or not(deleted). Enabled *bool `json:"enabled" validate:"required"` // The registration code of the collector.This is will be used for initial authentication during installation of // collector. RegistrationCode *string `json:"registration_code" validate:"required"` // The type of the collector. Type *string `json:"type" validate:"required"` // The credential public key. CredentialPublicKey *string `json:"credential_public_key,omitempty"` // The number of times the collector has failed. FailureCount *int64 `json:"failure_count" validate:"required"` // The approved local gateway ip of the collector. This field will be populated only when collector is installed. ApprovedLocalGatewayIP *string `json:"approved_local_gateway_ip,omitempty"` // The approved internet gateway ip of the collector. This field will be populated only when collector is installed. ApprovedInternetGatewayIP *string `json:"approved_internet_gateway_ip,omitempty"` // The failed local gateway ip. This field will be populated only when collector is installed. LastFailedLocalGatewayIP *string `json:"last_failed_local_gateway_ip,omitempty"` // The reason for the collector reset .User resets the collector with a reason for reset. The reason entered by the // user is saved in this field . ResetReason *string `json:"reset_reason,omitempty"` // The collector host name. This field will be populated when collector is installed.This will have fully qualified // domain name. Hostname *string `json:"hostname,omitempty"` // The installation path of the collector. This field will be populated when collector is installed.The value will be // folder path. InstallPath *string `json:"install_path,omitempty"` // Whether the collector should use a public or private endpoint. This value is generated based on is_public field // value during collector creation. If is_public is set to true, this value will be false. UsePrivateEndpoint *bool `json:"use_private_endpoint" validate:"required"` // The entity that manages the collector. ManagedBy *string `json:"managed_by" validate:"required"` // The trial expiry. This holds the expiry date of registration_code. This field will be populated when collector is // installed. TrialExpiry *strfmt.DateTime `json:"trial_expiry,omitempty"` // The failed internet gateway ip of the collector. LastFailedInternetGatewayIP *string `json:"last_failed_internet_gateway_ip,omitempty"` // The collector status. StatusDescription *string `json:"status_description" validate:"required"` // The ISO Date/Time of the collector reset. This value will be populated when a collector is reset. The data-time when // the reset event is occured is captured in this field. ResetTime *strfmt.DateTime `json:"reset_time,omitempty"` // Determines whether the collector endpoint is accessible on a public network.If set to `true`, the collector connects // to resources in your account over a public network. If set to `false`, the collector connects to resources by using // a private IP that is accessible only through the IBM Cloud private network. IsPublic *bool `json:"is_public" validate:"required"` // Determines whether the collector has a Ubi image. IsUbiImage *bool `json:"is_ubi_image,omitempty"` }
Collector : The details of a collector.
type CollectorList ¶
type CollectorList struct { // The offset from the start of the list (0-based). Offset *int64 `json:"offset" validate:"required"` // The number of items to return. Limit *int64 `json:"limit" validate:"required"` // The total number of items in the list. This will have value as 0 when no collectors are available and below values // will not be populated in that case. TotalCount *int64 `json:"total_count" validate:"required"` // The URL of a page. First *PageLink `json:"first" validate:"required"` // The URL of a page. Last *PageLink `json:"last" validate:"required"` // The URL of a page. Next *PageLink `json:"next,omitempty"` // The URL of a page. Previous *PageLink `json:"previous,omitempty"` // The array of items returned. Collectors []Collector `json:"collectors" validate:"required"` }
CollectorList : The response to a list collectors request.
type CollectorUpdate ¶
type CollectorUpdate struct { // The user-friendly name of the collector. DisplayName *string `json:"display_name,omitempty"` // The desciption of the collector. Description *string `json:"description,omitempty"` }
CollectorUpdate : The instance of the collector update.
func (*CollectorUpdate) AsPatch ¶
func (collectorUpdate *CollectorUpdate) AsPatch() (_patch map[string]interface{}, err error)
AsPatch returns a generic map representation of the CollectorUpdate
type Control ¶
type Control struct { // The scan summary control ID. ID *string `json:"id,omitempty"` // The control status. Status *string `json:"status,omitempty"` // The external control ID. ExternalControlID *string `json:"external_control_id,omitempty"` // The scan profile name. Desciption *string `json:"desciption,omitempty"` // The list of goals on the control. Goals []Goal `json:"goals,omitempty"` // A scans summary controls. ResourceStatistics *ResourceStatistics `json:"resource_statistics,omitempty"` }
Control : A scans summary controls.
type ControlItem ¶
type ControlItem struct { // The identifier number of the control. ID *string `json:"id" validate:"required"` // The description of the control. Description *string `json:"description" validate:"required"` // The external identifier number of the control. ExternalControlID *string `json:"external_control_id" validate:"required"` // Mapped goals aganist the control identifier. Goals []GoalItem `json:"goals" validate:"required"` }
ControlItem : The details of the profile.
type ControlList ¶
type ControlList struct { // The offset of the page. Offset *int64 `json:"offset" validate:"required"` // The number of profiles displayed per page. Limit *int64 `json:"limit" validate:"required"` // The total number of profiles.If no profiles are available this will be 0 and below fields will not be populated. TotalCount *int64 `json:"total_count" validate:"required"` // The URL of a page. First *PageLink `json:"first" validate:"required"` // The URL of a page. Last *PageLink `json:"last" validate:"required"` // The URL of a page. Previous *PageLink `json:"previous,omitempty"` // The URL of a page. Next *PageLink `json:"next,omitempty"` // Profiles array. Controls []ControlItem `json:"controls" validate:"required"` }
ControlList : The details of controls for the given profile.
func (*ControlList) GetNextOffset ¶
func (resp *ControlList) GetNextOffset() (*int64, error)
Retrieve the value to be passed to a request to access the next page of results
type CreateCollectorOptions ¶
type CreateCollectorOptions struct { // A unique name for your collector. Name *string `json:"name" validate:"required"` // Determines whether the collector endpoint is accessible on a public network. If set to `true`, the collector // connects to resources in your account over a public network. If set to `false`, the collector connects to resources // by using a private IP that is accessible only through the IBM Cloud private network. IsPublic *bool `json:"is_public" validate:"required"` // Determines whether the collector is an IBM or customer-managed virtual machine. Use `ibm` to allow Security and // Compliance Center to create, install, and manage the collector on your behalf. The collector is installed in an // OpenShift cluster and approved automatically for use. Use `customer` if you would like to install the collector by // using your own virtual machine. For more information, check out the // [docs](https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-collector). ManagedBy *string `json:"managed_by" validate:"required"` // A detailed description of the collector. Description *string `json:"description,omitempty"` // To protect the credentials that you add to the service, a passphrase is used to generate a data encryption key. The // key is used to securely store your credentials and prevent anyone from accessing them. Passphrase *string `json:"passphrase,omitempty"` // Determines whether the collector has a Ubi image. IsUbiImage *bool `json:"is_ubi_image,omitempty"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
CreateCollectorOptions : The CreateCollector options.
func (*CreateCollectorOptions) SetAccountID ¶
func (_options *CreateCollectorOptions) SetAccountID(accountID string) *CreateCollectorOptions
SetAccountID : Allow user to set AccountID
func (*CreateCollectorOptions) SetDescription ¶
func (_options *CreateCollectorOptions) SetDescription(description string) *CreateCollectorOptions
SetDescription : Allow user to set Description
func (*CreateCollectorOptions) SetHeaders ¶
func (options *CreateCollectorOptions) SetHeaders(param map[string]string) *CreateCollectorOptions
SetHeaders : Allow user to set Headers
func (*CreateCollectorOptions) SetIsPublic ¶
func (_options *CreateCollectorOptions) SetIsPublic(isPublic bool) *CreateCollectorOptions
SetIsPublic : Allow user to set IsPublic
func (*CreateCollectorOptions) SetIsUbiImage ¶
func (_options *CreateCollectorOptions) SetIsUbiImage(isUbiImage bool) *CreateCollectorOptions
SetIsUbiImage : Allow user to set IsUbiImage
func (*CreateCollectorOptions) SetManagedBy ¶
func (_options *CreateCollectorOptions) SetManagedBy(managedBy string) *CreateCollectorOptions
SetManagedBy : Allow user to set ManagedBy
func (*CreateCollectorOptions) SetName ¶
func (_options *CreateCollectorOptions) SetName(name string) *CreateCollectorOptions
SetName : Allow user to set Name
func (*CreateCollectorOptions) SetPassphrase ¶
func (_options *CreateCollectorOptions) SetPassphrase(passphrase string) *CreateCollectorOptions
SetPassphrase : Allow user to set Passphrase
func (*CreateCollectorOptions) SetTransactionID ¶
func (_options *CreateCollectorOptions) SetTransactionID(transactionID string) *CreateCollectorOptions
SetTransactionID : Allow user to set TransactionID
type CreateCredentialOptions ¶
type CreateCredentialOptions struct { // Credentials status enabled/disbaled. Enabled *bool `json:"enabled" validate:"required"` // Credentials type. Type *string `json:"type" validate:"required"` // Credentials name. Name *string `json:"name" validate:"required"` // Credentials description. Description *string `json:"description" validate:"required"` // Details the fields on the credential. This will change as per credential type selected. DisplayFields *NewCredentialDisplayFields `json:"display_fields" validate:"required"` // Credential group details. Group *CredentialGroup `json:"group" validate:"required"` // Purpose for which the credential is created. Purpose *string `json:"purpose" validate:"required"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
CreateCredentialOptions : The CreateCredential options.
func (*CreateCredentialOptions) SetAccountID ¶
func (_options *CreateCredentialOptions) SetAccountID(accountID string) *CreateCredentialOptions
SetAccountID : Allow user to set AccountID
func (*CreateCredentialOptions) SetDescription ¶
func (_options *CreateCredentialOptions) SetDescription(description string) *CreateCredentialOptions
SetDescription : Allow user to set Description
func (*CreateCredentialOptions) SetDisplayFields ¶
func (_options *CreateCredentialOptions) SetDisplayFields(displayFields *NewCredentialDisplayFields) *CreateCredentialOptions
SetDisplayFields : Allow user to set DisplayFields
func (*CreateCredentialOptions) SetEnabled ¶
func (_options *CreateCredentialOptions) SetEnabled(enabled bool) *CreateCredentialOptions
SetEnabled : Allow user to set Enabled
func (*CreateCredentialOptions) SetGroup ¶
func (_options *CreateCredentialOptions) SetGroup(group *CredentialGroup) *CreateCredentialOptions
SetGroup : Allow user to set Group
func (*CreateCredentialOptions) SetHeaders ¶
func (options *CreateCredentialOptions) SetHeaders(param map[string]string) *CreateCredentialOptions
SetHeaders : Allow user to set Headers
func (*CreateCredentialOptions) SetName ¶
func (_options *CreateCredentialOptions) SetName(name string) *CreateCredentialOptions
SetName : Allow user to set Name
func (*CreateCredentialOptions) SetPurpose ¶
func (_options *CreateCredentialOptions) SetPurpose(purpose string) *CreateCredentialOptions
SetPurpose : Allow user to set Purpose
func (*CreateCredentialOptions) SetTransactionID ¶
func (_options *CreateCredentialOptions) SetTransactionID(transactionID string) *CreateCredentialOptions
SetTransactionID : Allow user to set TransactionID
func (*CreateCredentialOptions) SetType ¶
func (_options *CreateCredentialOptions) SetType(typeVar string) *CreateCredentialOptions
SetType : Allow user to set Type
type CreateScopeOptions ¶
type CreateScopeOptions struct { // A unique name for your scope. Name *string `json:"name" validate:"required"` // A detailed description of the scope. Description *string `json:"description" validate:"required"` // The unique IDs of the collectors that are attached to the scope. CollectorIds []string `json:"collector_ids" validate:"required"` // The unique identifier of the credential. CredentialID *string `json:"credential_id" validate:"required"` // The environment that the scope is targeted to. CredentialType *string `json:"credential_type" validate:"required"` // Stores the value of Frequency. This is used in case of on-prem Scope if the user wants to schedule a discovery // task.The unit is seconds. Example if a user wants to trigger discovery every hour, this value will be set to 3600. Interval *int64 `json:"interval,omitempty"` // Stores the value of Discovery Scheduled.This is used in case of on-prem Scope if the user wants to schedule a // discovery task. IsDiscoveryScheduled *bool `json:"is_discovery_scheduled,omitempty"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
CreateScopeOptions : The CreateScope options.
func (*CreateScopeOptions) SetAccountID ¶
func (_options *CreateScopeOptions) SetAccountID(accountID string) *CreateScopeOptions
SetAccountID : Allow user to set AccountID
func (*CreateScopeOptions) SetCollectorIds ¶
func (_options *CreateScopeOptions) SetCollectorIds(collectorIds []string) *CreateScopeOptions
SetCollectorIds : Allow user to set CollectorIds
func (*CreateScopeOptions) SetCredentialID ¶
func (_options *CreateScopeOptions) SetCredentialID(credentialID string) *CreateScopeOptions
SetCredentialID : Allow user to set CredentialID
func (*CreateScopeOptions) SetCredentialType ¶
func (_options *CreateScopeOptions) SetCredentialType(credentialType string) *CreateScopeOptions
SetCredentialType : Allow user to set CredentialType
func (*CreateScopeOptions) SetDescription ¶
func (_options *CreateScopeOptions) SetDescription(description string) *CreateScopeOptions
SetDescription : Allow user to set Description
func (*CreateScopeOptions) SetHeaders ¶
func (options *CreateScopeOptions) SetHeaders(param map[string]string) *CreateScopeOptions
SetHeaders : Allow user to set Headers
func (*CreateScopeOptions) SetInterval ¶
func (_options *CreateScopeOptions) SetInterval(interval int64) *CreateScopeOptions
SetInterval : Allow user to set Interval
func (*CreateScopeOptions) SetIsDiscoveryScheduled ¶
func (_options *CreateScopeOptions) SetIsDiscoveryScheduled(isDiscoveryScheduled bool) *CreateScopeOptions
SetIsDiscoveryScheduled : Allow user to set IsDiscoveryScheduled
func (*CreateScopeOptions) SetName ¶
func (_options *CreateScopeOptions) SetName(name string) *CreateScopeOptions
SetName : Allow user to set Name
func (*CreateScopeOptions) SetTransactionID ¶
func (_options *CreateScopeOptions) SetTransactionID(transactionID string) *CreateScopeOptions
SetTransactionID : Allow user to set TransactionID
type CreateValidationOptions ¶
type CreateValidationOptions struct { // The unique ID of the scope. ScopeID *string `json:"scope_id" validate:"required"` // The unique ID of the profile. ProfileID *string `json:"profile_id" validate:"required"` // The ID of the profile group. GroupProfileID *string `json:"group_profile_id,omitempty"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
CreateValidationOptions : The CreateValidation options.
func (*CreateValidationOptions) SetAccountID ¶
func (_options *CreateValidationOptions) SetAccountID(accountID string) *CreateValidationOptions
SetAccountID : Allow user to set AccountID
func (*CreateValidationOptions) SetGroupProfileID ¶
func (_options *CreateValidationOptions) SetGroupProfileID(groupProfileID string) *CreateValidationOptions
SetGroupProfileID : Allow user to set GroupProfileID
func (*CreateValidationOptions) SetHeaders ¶
func (options *CreateValidationOptions) SetHeaders(param map[string]string) *CreateValidationOptions
SetHeaders : Allow user to set Headers
func (*CreateValidationOptions) SetProfileID ¶
func (_options *CreateValidationOptions) SetProfileID(profileID string) *CreateValidationOptions
SetProfileID : Allow user to set ProfileID
func (*CreateValidationOptions) SetScopeID ¶
func (_options *CreateValidationOptions) SetScopeID(scopeID string) *CreateValidationOptions
SetScopeID : Allow user to set ScopeID
func (*CreateValidationOptions) SetTransactionID ¶
func (_options *CreateValidationOptions) SetTransactionID(transactionID string) *CreateValidationOptions
SetTransactionID : Allow user to set TransactionID
type Credential ¶
type Credential struct { // Credentials status enabled/disbaled. Enabled *bool `json:"enabled" validate:"required"` // Credentials ID. ID *string `json:"id" validate:"required"` // Credentials type. Type *string `json:"type" validate:"required"` // Credentials name. Name *string `json:"name" validate:"required"` // Credentials description. Description *string `json:"description" validate:"required"` // Details the fields on the credential. This will change as per credential type selected. DisplayFields *CredentialDisplayFields `json:"display_fields" validate:"required"` // ID of the user who created the credentials. CreatedBy *string `json:"created_by" validate:"required"` // The time that the credentials was created in UTC. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` // The modified time that the credentials was modified in UTC. UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"` // ID of the user who modified the credentials. UpdatedBy *string `json:"updated_by" validate:"required"` // Credential group details. Group *CredentialGroup `json:"group" validate:"required"` // Purpose for which the credential is created. Purpose *string `json:"purpose" validate:"required"` }
Credential : gets the credential details.
type CredentialDisplayFields ¶
type CredentialDisplayFields struct { // The IBM Cloud API Key. This is mandatory for IBM Credential Type. IBMAPIKey *string `json:"ibm_api_key,omitempty"` // AWS client Id.This is mandatory for AWS Cloud. AwsClientID *string `json:"aws_client_id,omitempty"` // AWS client secret.This is mandatory for AWS Cloud. AwsClientSecret *string `json:"aws_client_secret,omitempty"` // AWS region. AwsRegion *string `json:"aws_region,omitempty"` // AWS arn value. AwsArn *string `json:"aws_arn,omitempty"` // username of the user.This is mandatory for DataBase, Kerbros,OpenStack Credentials. Username *string `json:"username,omitempty"` // password of the user.This is mandatory for DataBase, Kerbros,OpenStack Credentials. Password *string `json:"password,omitempty"` // Azure client Id. This is mandatory for Azure Credential type. AzureClientID *string `json:"azure_client_id,omitempty"` // Azure client secret.This is mandatory for Azure Credential type. AzureClientSecret *string `json:"azure_client_secret,omitempty"` // Azure subscription Id.This is mandatory for Azure Credential type. AzureSubscriptionID *string `json:"azure_subscription_id,omitempty"` // Azure resource group. AzureResourceGroup *string `json:"azure_resource_group,omitempty"` // Database name.This is mandatory for Database Credential type. DatabaseName *string `json:"database_name,omitempty"` // Kerberos windows auth type.This is mandatory for Windows Kerberos Credential type. WinrmAuthtype *string `json:"winrm_authtype,omitempty"` // Kerberos windows ssl.This is mandatory for Windows Kerberos Credential type. WinrmUsessl *string `json:"winrm_usessl,omitempty"` // Kerberos windows port.This is mandatory for Windows Kerberos Credential type. WinrmPort *string `json:"winrm_port,omitempty"` // The MS365 client Id.This is mandatory for Windows MS365 Credential type. Ms365ClientID *string `json:"ms_365_client_id,omitempty"` // The MS365 client secret.This is mandatory for Windows MS365 Credential type. Ms365ClientSecret *string `json:"ms_365_client_secret,omitempty"` // The MS365 tenantId.This is mandatory for Windows MS365 Credential type. Ms365TenantID *string `json:"ms_365_tenant_id,omitempty"` // auth url of the Open Stack cloud.This is mandatory for Open Stack Credential type. AuthURL *string `json:"auth_url,omitempty"` // Project name of the Open Stack cloud.This is mandatory for Open Stack Credential type. ProjectName *string `json:"project_name,omitempty"` // user domain name of the Open Stack cloud.This is mandatory for Open Stack Credential type. UserDomainName *string `json:"user_domain_name,omitempty"` // project domain name of the Open Stack cloud.This is mandatory for Open Stack Credential type. ProjectDomainName *string `json:"project_domain_name,omitempty"` }
CredentialDisplayFields : Details the fields on the credential. This will change as per credential type selected.
type CredentialGroup ¶
type CredentialGroup struct { // credential group id. ID *string `json:"id" validate:"required"` // passphase of the credential. Passphrase *string `json:"passphrase" validate:"required"` }
CredentialGroup : Credential group details.
type CredentialList ¶
type CredentialList struct { // The offset of the page. Offset *int64 `json:"offset" validate:"required"` // The number of credentials displayed per page. Limit *int64 `json:"limit" validate:"required"` // The total number of credentials in the list.This will be 0 if no credentials are available and below fields will not // be populated in that case. TotalCount *int64 `json:"total_count" validate:"required"` // The URL of a page. First *PageLink `json:"first" validate:"required"` // The URL of a page. Last *PageLink `json:"last" validate:"required"` // The URL of a page. Previous *PageLink `json:"previous,omitempty"` // The URL of a page. Next *PageLink `json:"next,omitempty"` // The details of a credentials. Credentials []Credential `json:"credentials" validate:"required"` }
CredentialList : A list of credentials.
func (*CredentialList) GetNextOffset ¶
func (resp *CredentialList) GetNextOffset() (*int64, error)
Retrieve the value to be passed to a request to access the next page of results
type DeleteCollectorOptions ¶
type DeleteCollectorOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
DeleteCollectorOptions : The DeleteCollector options.
func (*DeleteCollectorOptions) SetAccountID ¶
func (_options *DeleteCollectorOptions) SetAccountID(accountID string) *DeleteCollectorOptions
SetAccountID : Allow user to set AccountID
func (*DeleteCollectorOptions) SetHeaders ¶
func (options *DeleteCollectorOptions) SetHeaders(param map[string]string) *DeleteCollectorOptions
SetHeaders : Allow user to set Headers
func (*DeleteCollectorOptions) SetID ¶
func (_options *DeleteCollectorOptions) SetID(id string) *DeleteCollectorOptions
SetID : Allow user to set ID
func (*DeleteCollectorOptions) SetTransactionID ¶
func (_options *DeleteCollectorOptions) SetTransactionID(transactionID string) *DeleteCollectorOptions
SetTransactionID : Allow user to set TransactionID
type DeleteCredentialOptions ¶
type DeleteCredentialOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
DeleteCredentialOptions : The DeleteCredential options.
func (*DeleteCredentialOptions) SetAccountID ¶
func (_options *DeleteCredentialOptions) SetAccountID(accountID string) *DeleteCredentialOptions
SetAccountID : Allow user to set AccountID
func (*DeleteCredentialOptions) SetHeaders ¶
func (options *DeleteCredentialOptions) SetHeaders(param map[string]string) *DeleteCredentialOptions
SetHeaders : Allow user to set Headers
func (*DeleteCredentialOptions) SetID ¶
func (_options *DeleteCredentialOptions) SetID(id string) *DeleteCredentialOptions
SetID : Allow user to set ID
func (*DeleteCredentialOptions) SetTransactionID ¶
func (_options *DeleteCredentialOptions) SetTransactionID(transactionID string) *DeleteCredentialOptions
SetTransactionID : Allow user to set TransactionID
type DeleteProfileOptions ¶
type DeleteProfileOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
DeleteProfileOptions : The DeleteProfile options.
func (*DeleteProfileOptions) SetAccountID ¶
func (_options *DeleteProfileOptions) SetAccountID(accountID string) *DeleteProfileOptions
SetAccountID : Allow user to set AccountID
func (*DeleteProfileOptions) SetHeaders ¶
func (options *DeleteProfileOptions) SetHeaders(param map[string]string) *DeleteProfileOptions
SetHeaders : Allow user to set Headers
func (*DeleteProfileOptions) SetID ¶
func (_options *DeleteProfileOptions) SetID(id string) *DeleteProfileOptions
SetID : Allow user to set ID
func (*DeleteProfileOptions) SetTransactionID ¶
func (_options *DeleteProfileOptions) SetTransactionID(transactionID string) *DeleteProfileOptions
SetTransactionID : Allow user to set TransactionID
type DeleteScopeOptions ¶
type DeleteScopeOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
DeleteScopeOptions : The DeleteScope options.
func (*DeleteScopeOptions) SetAccountID ¶
func (_options *DeleteScopeOptions) SetAccountID(accountID string) *DeleteScopeOptions
SetAccountID : Allow user to set AccountID
func (*DeleteScopeOptions) SetHeaders ¶
func (options *DeleteScopeOptions) SetHeaders(param map[string]string) *DeleteScopeOptions
SetHeaders : Allow user to set Headers
func (*DeleteScopeOptions) SetID ¶
func (_options *DeleteScopeOptions) SetID(id string) *DeleteScopeOptions
SetID : Allow user to set ID
func (*DeleteScopeOptions) SetTransactionID ¶
func (_options *DeleteScopeOptions) SetTransactionID(transactionID string) *DeleteScopeOptions
SetTransactionID : Allow user to set TransactionID
type EventItem ¶
type EventItem struct { // The eventId for the given scope . ID *string `json:"id" validate:"required"` // The time that the event was created in UTC for this scope. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` // The time that the event was last updated in UTC for this scope. UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"` // Task type.This will have 2 values - fact_collection and discovery. TaskType *string `json:"task_type" validate:"required"` // The status of the event . Status *string `json:"status" validate:"required"` // Indicates whether data is available for this event . DataAvailable *bool `json:"data_available" validate:"required"` // The status of the event . StatusMessage *string `json:"status_message" validate:"required"` }
EventItem : Event.
type EventList ¶
type EventList struct { // Events for a given scope. Events []EventItem `json:"events,omitempty"` }
EventList : Event list.
type GetCollectorOptions ¶
type GetCollectorOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetCollectorOptions : The GetCollector options.
func (*GetCollectorOptions) SetAccountID ¶
func (_options *GetCollectorOptions) SetAccountID(accountID string) *GetCollectorOptions
SetAccountID : Allow user to set AccountID
func (*GetCollectorOptions) SetHeaders ¶
func (options *GetCollectorOptions) SetHeaders(param map[string]string) *GetCollectorOptions
SetHeaders : Allow user to set Headers
func (*GetCollectorOptions) SetID ¶
func (_options *GetCollectorOptions) SetID(id string) *GetCollectorOptions
SetID : Allow user to set ID
func (*GetCollectorOptions) SetTransactionID ¶
func (_options *GetCollectorOptions) SetTransactionID(transactionID string) *GetCollectorOptions
SetTransactionID : Allow user to set TransactionID
type GetCorrelationIDOptions ¶
type GetCorrelationIDOptions struct { // A correlation_Id is created when a scope is created and discovery task is triggered or when a validation is // triggered on a Scope. This is used to get the status of the task(discovery or validation). CorrelationID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetCorrelationIDOptions : The GetCorrelationID options.
func (*GetCorrelationIDOptions) SetAccountID ¶
func (_options *GetCorrelationIDOptions) SetAccountID(accountID string) *GetCorrelationIDOptions
SetAccountID : Allow user to set AccountID
func (*GetCorrelationIDOptions) SetCorrelationID ¶
func (_options *GetCorrelationIDOptions) SetCorrelationID(correlationID string) *GetCorrelationIDOptions
SetCorrelationID : Allow user to set CorrelationID
func (*GetCorrelationIDOptions) SetHeaders ¶
func (options *GetCorrelationIDOptions) SetHeaders(param map[string]string) *GetCorrelationIDOptions
SetHeaders : Allow user to set Headers
func (*GetCorrelationIDOptions) SetTransactionID ¶
func (_options *GetCorrelationIDOptions) SetTransactionID(transactionID string) *GetCorrelationIDOptions
SetTransactionID : Allow user to set TransactionID
type GetCredentialOptions ¶
type GetCredentialOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetCredentialOptions : The GetCredential options.
func (*GetCredentialOptions) SetAccountID ¶
func (_options *GetCredentialOptions) SetAccountID(accountID string) *GetCredentialOptions
SetAccountID : Allow user to set AccountID
func (*GetCredentialOptions) SetHeaders ¶
func (options *GetCredentialOptions) SetHeaders(param map[string]string) *GetCredentialOptions
SetHeaders : Allow user to set Headers
func (*GetCredentialOptions) SetID ¶
func (_options *GetCredentialOptions) SetID(id string) *GetCredentialOptions
SetID : Allow user to set ID
func (*GetCredentialOptions) SetTransactionID ¶
func (_options *GetCredentialOptions) SetTransactionID(transactionID string) *GetCredentialOptions
SetTransactionID : Allow user to set TransactionID
type GetGroupProfileControlsOptions ¶
type GetGroupProfileControlsOptions struct { // The group ID. This can be obtained from Profile list API call. In Profile list API call, the records which have // type='profile_group' are the groups. The Id of that object gives group_id. GroupID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // The offset of the profiles. Offset *int64 `json:"-"` // The number of profiles that are included per page. Limit *int64 `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetGroupProfileControlsOptions : The GetGroupProfileControls options.
func (*GetGroupProfileControlsOptions) SetAccountID ¶
func (_options *GetGroupProfileControlsOptions) SetAccountID(accountID string) *GetGroupProfileControlsOptions
SetAccountID : Allow user to set AccountID
func (*GetGroupProfileControlsOptions) SetGroupID ¶
func (_options *GetGroupProfileControlsOptions) SetGroupID(groupID string) *GetGroupProfileControlsOptions
SetGroupID : Allow user to set GroupID
func (*GetGroupProfileControlsOptions) SetHeaders ¶
func (options *GetGroupProfileControlsOptions) SetHeaders(param map[string]string) *GetGroupProfileControlsOptions
SetHeaders : Allow user to set Headers
func (*GetGroupProfileControlsOptions) SetLimit ¶
func (_options *GetGroupProfileControlsOptions) SetLimit(limit int64) *GetGroupProfileControlsOptions
SetLimit : Allow user to set Limit
func (*GetGroupProfileControlsOptions) SetOffset ¶
func (_options *GetGroupProfileControlsOptions) SetOffset(offset int64) *GetGroupProfileControlsOptions
SetOffset : Allow user to set Offset
func (*GetGroupProfileControlsOptions) SetTransactionID ¶
func (_options *GetGroupProfileControlsOptions) SetTransactionID(transactionID string) *GetGroupProfileControlsOptions
SetTransactionID : Allow user to set TransactionID
type GetProfileControlsOptions ¶
type GetProfileControlsOptions struct { // The profile ID. This can be obtained from the Security and Compliance Center UI by clicking on the profile name. The // URL contains the ID. ProfileID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // The offset of the profiles. Offset *int64 `json:"-"` // The number of profiles that are included per page. Limit *int64 `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetProfileControlsOptions : The GetProfileControls options.
func (*GetProfileControlsOptions) SetAccountID ¶
func (_options *GetProfileControlsOptions) SetAccountID(accountID string) *GetProfileControlsOptions
SetAccountID : Allow user to set AccountID
func (*GetProfileControlsOptions) SetHeaders ¶
func (options *GetProfileControlsOptions) SetHeaders(param map[string]string) *GetProfileControlsOptions
SetHeaders : Allow user to set Headers
func (*GetProfileControlsOptions) SetLimit ¶
func (_options *GetProfileControlsOptions) SetLimit(limit int64) *GetProfileControlsOptions
SetLimit : Allow user to set Limit
func (*GetProfileControlsOptions) SetOffset ¶
func (_options *GetProfileControlsOptions) SetOffset(offset int64) *GetProfileControlsOptions
SetOffset : Allow user to set Offset
func (*GetProfileControlsOptions) SetProfileID ¶
func (_options *GetProfileControlsOptions) SetProfileID(profileID string) *GetProfileControlsOptions
SetProfileID : Allow user to set ProfileID
func (*GetProfileControlsOptions) SetTransactionID ¶
func (_options *GetProfileControlsOptions) SetTransactionID(transactionID string) *GetProfileControlsOptions
SetTransactionID : Allow user to set TransactionID
type GetProfileOptions ¶
type GetProfileOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // The profile type ID. This will be 4 for profiles and 6 for group profiles. ProfileType *string `json:"-" validate:"required"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetProfileOptions : The GetProfile options.
func (*GetProfileOptions) SetAccountID ¶
func (_options *GetProfileOptions) SetAccountID(accountID string) *GetProfileOptions
SetAccountID : Allow user to set AccountID
func (*GetProfileOptions) SetHeaders ¶
func (options *GetProfileOptions) SetHeaders(param map[string]string) *GetProfileOptions
SetHeaders : Allow user to set Headers
func (*GetProfileOptions) SetID ¶
func (_options *GetProfileOptions) SetID(id string) *GetProfileOptions
SetID : Allow user to set ID
func (*GetProfileOptions) SetProfileType ¶
func (_options *GetProfileOptions) SetProfileType(profileType string) *GetProfileOptions
SetProfileType : Allow user to set ProfileType
func (*GetProfileOptions) SetTransactionID ¶
func (_options *GetProfileOptions) SetTransactionID(transactionID string) *GetProfileOptions
SetTransactionID : Allow user to set TransactionID
type GetScopeDetailsCollectorOptions ¶
type GetScopeDetailsCollectorOptions struct { // The unique identifier that is used to trace an entire Scope request. ScopeID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetScopeDetailsCollectorOptions : The GetScopeDetailsCollector options.
func (*GetScopeDetailsCollectorOptions) SetAccountID ¶
func (_options *GetScopeDetailsCollectorOptions) SetAccountID(accountID string) *GetScopeDetailsCollectorOptions
SetAccountID : Allow user to set AccountID
func (*GetScopeDetailsCollectorOptions) SetHeaders ¶
func (options *GetScopeDetailsCollectorOptions) SetHeaders(param map[string]string) *GetScopeDetailsCollectorOptions
SetHeaders : Allow user to set Headers
func (*GetScopeDetailsCollectorOptions) SetScopeID ¶
func (_options *GetScopeDetailsCollectorOptions) SetScopeID(scopeID string) *GetScopeDetailsCollectorOptions
SetScopeID : Allow user to set ScopeID
func (*GetScopeDetailsCollectorOptions) SetTransactionID ¶
func (_options *GetScopeDetailsCollectorOptions) SetTransactionID(transactionID string) *GetScopeDetailsCollectorOptions
SetTransactionID : Allow user to set TransactionID
type GetScopeDetailsCredentialsOptions ¶
type GetScopeDetailsCredentialsOptions struct { // The unique identifier that is used to trace an entire Scope request. ScopeID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetScopeDetailsCredentialsOptions : The GetScopeDetailsCredentials options.
func (*GetScopeDetailsCredentialsOptions) SetAccountID ¶
func (_options *GetScopeDetailsCredentialsOptions) SetAccountID(accountID string) *GetScopeDetailsCredentialsOptions
SetAccountID : Allow user to set AccountID
func (*GetScopeDetailsCredentialsOptions) SetHeaders ¶
func (options *GetScopeDetailsCredentialsOptions) SetHeaders(param map[string]string) *GetScopeDetailsCredentialsOptions
SetHeaders : Allow user to set Headers
func (*GetScopeDetailsCredentialsOptions) SetScopeID ¶
func (_options *GetScopeDetailsCredentialsOptions) SetScopeID(scopeID string) *GetScopeDetailsCredentialsOptions
SetScopeID : Allow user to set ScopeID
func (*GetScopeDetailsCredentialsOptions) SetTransactionID ¶
func (_options *GetScopeDetailsCredentialsOptions) SetTransactionID(transactionID string) *GetScopeDetailsCredentialsOptions
SetTransactionID : Allow user to set TransactionID
type GetScopeDetailsOptions ¶
type GetScopeDetailsOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetScopeDetailsOptions : The GetScopeDetails options.
func (*GetScopeDetailsOptions) SetAccountID ¶
func (_options *GetScopeDetailsOptions) SetAccountID(accountID string) *GetScopeDetailsOptions
SetAccountID : Allow user to set AccountID
func (*GetScopeDetailsOptions) SetHeaders ¶
func (options *GetScopeDetailsOptions) SetHeaders(param map[string]string) *GetScopeDetailsOptions
SetHeaders : Allow user to set Headers
func (*GetScopeDetailsOptions) SetID ¶
func (_options *GetScopeDetailsOptions) SetID(id string) *GetScopeDetailsOptions
SetID : Allow user to set ID
func (*GetScopeDetailsOptions) SetTransactionID ¶
func (_options *GetScopeDetailsOptions) SetTransactionID(transactionID string) *GetScopeDetailsOptions
SetTransactionID : Allow user to set TransactionID
type GetScopeTimelineOptions ¶
type GetScopeTimelineOptions struct { // The unique identifier that is used to trace an entire Scope request. ScopeID *string `json:"-" validate:"required,ne="` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
GetScopeTimelineOptions : The GetScopeTimeline options.
func (*GetScopeTimelineOptions) SetAccountID ¶
func (_options *GetScopeTimelineOptions) SetAccountID(accountID string) *GetScopeTimelineOptions
SetAccountID : Allow user to set AccountID
func (*GetScopeTimelineOptions) SetHeaders ¶
func (options *GetScopeTimelineOptions) SetHeaders(param map[string]string) *GetScopeTimelineOptions
SetHeaders : Allow user to set Headers
func (*GetScopeTimelineOptions) SetScopeID ¶
func (_options *GetScopeTimelineOptions) SetScopeID(scopeID string) *GetScopeTimelineOptions
SetScopeID : Allow user to set ScopeID
func (*GetScopeTimelineOptions) SetTransactionID ¶
func (_options *GetScopeTimelineOptions) SetTransactionID(transactionID string) *GetScopeTimelineOptions
SetTransactionID : Allow user to set TransactionID
type Goal ¶
type Goal struct { // The description of the goal. Description *string `json:"description,omitempty"` // The goal ID. ID *string `json:"id,omitempty"` // The goal status. Status *string `json:"status,omitempty"` // The severity of the goal. Severity *string `json:"severity,omitempty"` // The report completed time. CompletedTime *strfmt.DateTime `json:"completed_time,omitempty"` // The error on goal validation. Error *string `json:"error,omitempty"` // The list of resource results. ResourceResult []ResourceResult `json:"resource_result,omitempty"` // The criteria that defines how a profile applies. ApplicabilityCriteria *GoalApplicabilityCriteria `json:"applicability_criteria,omitempty"` }
Goal : The goals on goals list.
type GoalApplicabilityCriteria ¶
type GoalApplicabilityCriteria struct { // A list of environments that a profile can be applied to. Environment []string `json:"environment,omitempty"` // A list of resources that a profile can be used with. Resource []string `json:"resource,omitempty"` // The type of environment that a profile is able to be applied to. EnvironmentCategory []string `json:"environment_category,omitempty"` // The type of resource that a profile is able to be applied to. ResourceCategory []string `json:"resource_category,omitempty"` // The resource type that the profile applies to. ResourceType []string `json:"resource_type,omitempty"` // The software that the profile applies to. SoftwareDetails interface{} `json:"software_details,omitempty"` // The operating system that the profile applies to. OsDetails interface{} `json:"os_details,omitempty"` // Any additional details about the profile. AdditionalDetails interface{} `json:"additional_details,omitempty"` // The type of environment that your scope is targeted to. EnvironmentCategoryDescription map[string]string `json:"environment_category_description,omitempty"` // The environment that your scope is targeted to. EnvironmentDescription map[string]string `json:"environment_description,omitempty"` // The type of resource that your scope is targeted to. ResourceCategoryDescription map[string]string `json:"resource_category_description,omitempty"` // A further classification of the type of resource that your scope is targeted to. ResourceTypeDescription map[string]string `json:"resource_type_description,omitempty"` // The resource that is scanned as part of your scope. ResourceDescription map[string]string `json:"resource_description,omitempty"` }
GoalApplicabilityCriteria : The criteria that defines how a profile applies.
type GoalItem ¶
type GoalItem struct { // The description of the goal. Description *string `json:"description" validate:"required"` // The goal ID. ID *string `json:"id" validate:"required"` // The severity of the goal. Severity *string `json:"severity" validate:"required"` // The goal is manual check. IsManual *bool `json:"is_manual" validate:"required"` // The goal is remediable or not. IsRemediable *bool `json:"is_remediable" validate:"required"` // The goal is reversible or not. IsReversible *bool `json:"is_reversible" validate:"required"` // The goal is automatable or not. IsAutomatable *bool `json:"is_automatable" validate:"required"` // The goal is autoremediable or not. IsAutoRemediable *bool `json:"is_auto_remediable" validate:"required"` }
GoalItem : The goals on goals list.
type ImportProfilesOptions ¶
type ImportProfilesOptions struct { // The import data file that you want to use to import a profile. File io.ReadCloser `json:"-" validate:"required"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ImportProfilesOptions : The ImportProfiles options.
func (*ImportProfilesOptions) SetAccountID ¶
func (_options *ImportProfilesOptions) SetAccountID(accountID string) *ImportProfilesOptions
SetAccountID : Allow user to set AccountID
func (*ImportProfilesOptions) SetFile ¶
func (_options *ImportProfilesOptions) SetFile(file io.ReadCloser) *ImportProfilesOptions
SetFile : Allow user to set File
func (*ImportProfilesOptions) SetHeaders ¶
func (options *ImportProfilesOptions) SetHeaders(param map[string]string) *ImportProfilesOptions
SetHeaders : Allow user to set Headers
func (*ImportProfilesOptions) SetTransactionID ¶
func (_options *ImportProfilesOptions) SetTransactionID(transactionID string) *ImportProfilesOptions
SetTransactionID : Allow user to set TransactionID
type ListCollectorsOptions ¶
type ListCollectorsOptions struct { // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ListCollectorsOptions : The ListCollectors options.
func (*ListCollectorsOptions) SetAccountID ¶
func (_options *ListCollectorsOptions) SetAccountID(accountID string) *ListCollectorsOptions
SetAccountID : Allow user to set AccountID
func (*ListCollectorsOptions) SetHeaders ¶
func (options *ListCollectorsOptions) SetHeaders(param map[string]string) *ListCollectorsOptions
SetHeaders : Allow user to set Headers
func (*ListCollectorsOptions) SetTransactionID ¶
func (_options *ListCollectorsOptions) SetTransactionID(transactionID string) *ListCollectorsOptions
SetTransactionID : Allow user to set TransactionID
type ListCredentialsOptions ¶
type ListCredentialsOptions struct { // Your IBM Cloud account ID. AccountID *string `json:"-"` // The offset of the profiles. Offset *int64 `json:"-"` // The number of profiles that are included per page. Limit *int64 `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ListCredentialsOptions : The ListCredentials options.
func (*ListCredentialsOptions) SetAccountID ¶
func (_options *ListCredentialsOptions) SetAccountID(accountID string) *ListCredentialsOptions
SetAccountID : Allow user to set AccountID
func (*ListCredentialsOptions) SetHeaders ¶
func (options *ListCredentialsOptions) SetHeaders(param map[string]string) *ListCredentialsOptions
SetHeaders : Allow user to set Headers
func (*ListCredentialsOptions) SetLimit ¶
func (_options *ListCredentialsOptions) SetLimit(limit int64) *ListCredentialsOptions
SetLimit : Allow user to set Limit
func (*ListCredentialsOptions) SetOffset ¶
func (_options *ListCredentialsOptions) SetOffset(offset int64) *ListCredentialsOptions
SetOffset : Allow user to set Offset
func (*ListCredentialsOptions) SetTransactionID ¶
func (_options *ListCredentialsOptions) SetTransactionID(transactionID string) *ListCredentialsOptions
SetTransactionID : Allow user to set TransactionID
type ListLatestScansOptions ¶
type ListLatestScansOptions struct { // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // The offset of the profiles. Offset *int64 `json:"-"` // The number of profiles that are included per page. Limit *int64 `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ListLatestScansOptions : The ListLatestScans options.
func (*ListLatestScansOptions) SetAccountID ¶
func (_options *ListLatestScansOptions) SetAccountID(accountID string) *ListLatestScansOptions
SetAccountID : Allow user to set AccountID
func (*ListLatestScansOptions) SetHeaders ¶
func (options *ListLatestScansOptions) SetHeaders(param map[string]string) *ListLatestScansOptions
SetHeaders : Allow user to set Headers
func (*ListLatestScansOptions) SetLimit ¶
func (_options *ListLatestScansOptions) SetLimit(limit int64) *ListLatestScansOptions
SetLimit : Allow user to set Limit
func (*ListLatestScansOptions) SetOffset ¶
func (_options *ListLatestScansOptions) SetOffset(offset int64) *ListLatestScansOptions
SetOffset : Allow user to set Offset
func (*ListLatestScansOptions) SetTransactionID ¶
func (_options *ListLatestScansOptions) SetTransactionID(transactionID string) *ListLatestScansOptions
SetTransactionID : Allow user to set TransactionID
type ListProfilesOptions ¶
type ListProfilesOptions struct { // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // The offset of the profiles. Offset *int64 `json:"-"` // The number of profiles that are included per page. Limit *int64 `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ListProfilesOptions : The ListProfiles options.
func (*ListProfilesOptions) SetAccountID ¶
func (_options *ListProfilesOptions) SetAccountID(accountID string) *ListProfilesOptions
SetAccountID : Allow user to set AccountID
func (*ListProfilesOptions) SetHeaders ¶
func (options *ListProfilesOptions) SetHeaders(param map[string]string) *ListProfilesOptions
SetHeaders : Allow user to set Headers
func (*ListProfilesOptions) SetLimit ¶
func (_options *ListProfilesOptions) SetLimit(limit int64) *ListProfilesOptions
SetLimit : Allow user to set Limit
func (*ListProfilesOptions) SetOffset ¶
func (_options *ListProfilesOptions) SetOffset(offset int64) *ListProfilesOptions
SetOffset : Allow user to set Offset
func (*ListProfilesOptions) SetTransactionID ¶
func (_options *ListProfilesOptions) SetTransactionID(transactionID string) *ListProfilesOptions
SetTransactionID : Allow user to set TransactionID
type ListScopesOptions ¶
type ListScopesOptions struct { // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ListScopesOptions : The ListScopes options.
func (*ListScopesOptions) SetAccountID ¶
func (_options *ListScopesOptions) SetAccountID(accountID string) *ListScopesOptions
SetAccountID : Allow user to set AccountID
func (*ListScopesOptions) SetHeaders ¶
func (options *ListScopesOptions) SetHeaders(param map[string]string) *ListScopesOptions
SetHeaders : Allow user to set Headers
func (*ListScopesOptions) SetTransactionID ¶
func (_options *ListScopesOptions) SetTransactionID(transactionID string) *ListScopesOptions
SetTransactionID : Allow user to set TransactionID
type NewCredentialDisplayFields ¶
type NewCredentialDisplayFields struct { // The IBM Cloud API Key. This is mandatory for IBM Credential Type ie when type=ibm_cloud. IBMAPIKey *string `json:"ibm_api_key,omitempty"` // AWS client Id.This is mandatory for AWS Cloud ie when type=aws_cloud. AwsClientID *string `json:"aws_client_id,omitempty"` // AWS client secret.This is mandatory for AWS Cloud ie when type=aws_cloud. AwsClientSecret *string `json:"aws_client_secret,omitempty"` // AWS region.This is used for AWS Cloud ie when type=aws_cloud. AwsRegion *string `json:"aws_region,omitempty"` // AWS arn value.This is used for AWS Cloud ie when type=aws_cloud. AwsArn *string `json:"aws_arn,omitempty"` // username of the user.This is mandatory for DataBase(ie type=database), Kerbros(ie // type=kerberos_windows),OpenStack(ie type=openstack_cloud) and Username-Password(type=username_password) Credentials. Username *string `json:"username,omitempty"` // password of the user.This is mandatory for DataBase(ie type=database), Kerbros(ie // type=kerberos_windows),OpenStack(ie type=openstack_cloud) and Username-Password(type=username_password) Credentials. Password *string `json:"password,omitempty"` // Azure client Id. This is mandatory for Azure Credential type ie when type=azure_cloud. AzureClientID *string `json:"azure_client_id,omitempty"` // Azure client secret.This is mandatory for Azure Credential type ie when type=azure_cloud. AzureClientSecret *string `json:"azure_client_secret,omitempty"` // Azure subscription Id.This is mandatory for Azure Credential type ie when type=azure_cloud. AzureSubscriptionID *string `json:"azure_subscription_id,omitempty"` // Azure resource group.This field is used for Azure Credential type ie when type=azure_cloud. AzureResourceGroup *string `json:"azure_resource_group,omitempty"` // Database name.This is mandatory for Database Credential type ie when type=database. DatabaseName *string `json:"database_name,omitempty"` // Kerberos windows auth type.This is mandatory for Windows Kerberos Credential type ie when type=kerberos_windows. WinrmAuthtype *string `json:"winrm_authtype,omitempty"` // Kerberos windows ssl.This is mandatory for Windows Kerberos Credential type ie when type=kerberos_windows. WinrmUsessl *string `json:"winrm_usessl,omitempty"` // Kerberos windows port.This is mandatory for Windows Kerberos Credential type ie when type=kerberos_windows. WinrmPort *string `json:"winrm_port,omitempty"` // The MS365 client Id.This is mandatory for Windows MS365 Credential type ie when type=ms_365. Ms365ClientID *string `json:"ms_365_client_id,omitempty"` // The MS365 client secret.This is mandatory for Windows MS365 Credential type ie when type=ms_365. Ms365ClientSecret *string `json:"ms_365_client_secret,omitempty"` // The MS365 tenantId.This is mandatory for Windows MS365 Credential type ie when type=ms_365. Ms365TenantID *string `json:"ms_365_tenant_id,omitempty"` // auth url of the Open Stack cloud.This is mandatory for Open Stack Credential type ie when type=openstack_cloud. AuthURL *string `json:"auth_url,omitempty"` // Project name of the Open Stack cloud.This is mandatory for Open Stack Credential type ie when type=openstack_cloud. ProjectName *string `json:"project_name,omitempty"` // user domain name of the Open Stack cloud.This is mandatory for Open Stack Credential type ie when // type=openstack_cloud. UserDomainName *string `json:"user_domain_name,omitempty"` // project domain name of the Open Stack cloud.This is mandatory for Open Stack Credential type ie when // type=openstack_cloud. ProjectDomainName *string `json:"project_domain_name,omitempty"` }
NewCredentialDisplayFields : Details the fields on the credential. This will change as per credential type selected.
type PageLink ¶
type PageLink struct { // The URL of a page. Href *string `json:"href" validate:"required"` }
PageLink : The URL of a page.
type PostureManagementV2 ¶
type PostureManagementV2 struct {
Service *core.BaseService
}
PostureManagementV2 : With IBM Cloud® Security and Compliance Center, you can embed checks into your every day workflows to help manage your current security and compliance posture. By monitoring for risks, you can identify security vulnerabilities and quickly work to mitigate the impact.
API Version: 2.0.0
func NewPostureManagementV2 ¶
func NewPostureManagementV2(options *PostureManagementV2Options) (service *PostureManagementV2, err error)
NewPostureManagementV2 : constructs an instance of PostureManagementV2 with passed in options.
func NewPostureManagementV2UsingExternalConfig ¶
func NewPostureManagementV2UsingExternalConfig(options *PostureManagementV2Options) (postureManagement *PostureManagementV2, err error)
NewPostureManagementV2UsingExternalConfig : constructs an instance of PostureManagementV2 with passed in options and external configuration.
func (*PostureManagementV2) Clone ¶
func (postureManagement *PostureManagementV2) Clone() *PostureManagementV2
Clone makes a copy of "postureManagement" suitable for processing requests.
func (*PostureManagementV2) CreateCollector ¶
func (postureManagement *PostureManagementV2) CreateCollector(createCollectorOptions *CreateCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
CreateCollector : Create a collector Create a collector to fetch the configuration information of your resources and then validate it by using a specified profile.
func (*PostureManagementV2) CreateCollectorWithContext ¶
func (postureManagement *PostureManagementV2) CreateCollectorWithContext(ctx context.Context, createCollectorOptions *CreateCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
CreateCollectorWithContext is an alternate form of the CreateCollector method which supports a Context parameter
func (*PostureManagementV2) CreateCredential ¶
func (postureManagement *PostureManagementV2) CreateCredential(createCredentialOptions *CreateCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
CreateCredential : Add a credential Add an existing credential that can be used by a collector to access your resources in order to gather information about your configurations, validate them, and initiate any remediation where possible.
func (*PostureManagementV2) CreateCredentialWithContext ¶
func (postureManagement *PostureManagementV2) CreateCredentialWithContext(ctx context.Context, createCredentialOptions *CreateCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
CreateCredentialWithContext is an alternate form of the CreateCredential method which supports a Context parameter
func (*PostureManagementV2) CreateScope ¶
func (postureManagement *PostureManagementV2) CreateScope(createScopeOptions *CreateScopeOptions) (result *Scope, response *core.DetailedResponse, err error)
CreateScope : Create a scope A scope is the selection of resources that you want to validate the configuration of.
func (*PostureManagementV2) CreateScopeWithContext ¶
func (postureManagement *PostureManagementV2) CreateScopeWithContext(ctx context.Context, createScopeOptions *CreateScopeOptions) (result *Scope, response *core.DetailedResponse, err error)
CreateScopeWithContext is an alternate form of the CreateScope method which supports a Context parameter
func (*PostureManagementV2) CreateValidation ¶
func (postureManagement *PostureManagementV2) CreateValidation(createValidationOptions *CreateValidationOptions) (result *Result, response *core.DetailedResponse, err error)
CreateValidation : Initiate a validation scan Validation scans determine a specified scope's adherence to regulatory controls by validating the configuration of the resources in your scope to the attached profile. To initiate a scan, you must have configured a collector, provided credentials, and completed both a fact collection and discovery scan. [Learn more](/docs/security-compliance?topic=security-compliance-schedule-scan).
func (*PostureManagementV2) CreateValidationWithContext ¶
func (postureManagement *PostureManagementV2) CreateValidationWithContext(ctx context.Context, createValidationOptions *CreateValidationOptions) (result *Result, response *core.DetailedResponse, err error)
CreateValidationWithContext is an alternate form of the CreateValidation method which supports a Context parameter
func (*PostureManagementV2) DeleteCollector ¶
func (postureManagement *PostureManagementV2) DeleteCollector(deleteCollectorOptions *DeleteCollectorOptions) (response *core.DetailedResponse, err error)
DeleteCollector : Delete a collector Delete a collector from the Security and Compliance Center that you no longer need.
func (*PostureManagementV2) DeleteCollectorWithContext ¶
func (postureManagement *PostureManagementV2) DeleteCollectorWithContext(ctx context.Context, deleteCollectorOptions *DeleteCollectorOptions) (response *core.DetailedResponse, err error)
DeleteCollectorWithContext is an alternate form of the DeleteCollector method which supports a Context parameter
func (*PostureManagementV2) DeleteCredential ¶
func (postureManagement *PostureManagementV2) DeleteCredential(deleteCredentialOptions *DeleteCredentialOptions) (response *core.DetailedResponse, err error)
DeleteCredential : Delete a credential If you no longer need to use a credential, you can remove it from the Security and Compliance Center.
func (*PostureManagementV2) DeleteCredentialWithContext ¶
func (postureManagement *PostureManagementV2) DeleteCredentialWithContext(ctx context.Context, deleteCredentialOptions *DeleteCredentialOptions) (response *core.DetailedResponse, err error)
DeleteCredentialWithContext is an alternate form of the DeleteCredential method which supports a Context parameter
func (*PostureManagementV2) DeleteProfile ¶
func (postureManagement *PostureManagementV2) DeleteProfile(deleteProfileOptions *DeleteProfileOptions) (response *core.DetailedResponse, err error)
DeleteProfile : Delete a profile Delete a custom profile that was previously created in your account.
func (*PostureManagementV2) DeleteProfileWithContext ¶
func (postureManagement *PostureManagementV2) DeleteProfileWithContext(ctx context.Context, deleteProfileOptions *DeleteProfileOptions) (response *core.DetailedResponse, err error)
DeleteProfileWithContext is an alternate form of the DeleteProfile method which supports a Context parameter
func (*PostureManagementV2) DeleteScope ¶
func (postureManagement *PostureManagementV2) DeleteScope(deleteScopeOptions *DeleteScopeOptions) (response *core.DetailedResponse, err error)
DeleteScope : Delete a scope If you no longer need to target a specific scope with your scan, you can delete it.
func (*PostureManagementV2) DeleteScopeWithContext ¶
func (postureManagement *PostureManagementV2) DeleteScopeWithContext(ctx context.Context, deleteScopeOptions *DeleteScopeOptions) (response *core.DetailedResponse, err error)
DeleteScopeWithContext is an alternate form of the DeleteScope method which supports a Context parameter
func (*PostureManagementV2) DisableRetries ¶
func (postureManagement *PostureManagementV2) DisableRetries()
DisableRetries disables automatic retries for requests invoked for this service instance.
func (*PostureManagementV2) EnableRetries ¶
func (postureManagement *PostureManagementV2) EnableRetries(maxRetries int, maxRetryInterval time.Duration)
EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.
func (*PostureManagementV2) GetCollector ¶
func (postureManagement *PostureManagementV2) GetCollector(getCollectorOptions *GetCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
GetCollector : View collector details View collector details .
func (*PostureManagementV2) GetCollectorWithContext ¶
func (postureManagement *PostureManagementV2) GetCollectorWithContext(ctx context.Context, getCollectorOptions *GetCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
GetCollectorWithContext is an alternate form of the GetCollector method which supports a Context parameter
func (*PostureManagementV2) GetCorrelationID ¶
func (postureManagement *PostureManagementV2) GetCorrelationID(getCorrelationIDOptions *GetCorrelationIDOptions) (result *ScopeTaskStatus, response *core.DetailedResponse, err error)
GetCorrelationID : Get status of a scope by giving correlation ID This API is used to track any task completion. In case of scope creation, using this API we can check the status of discovery task and in case of scan trigger we can check the status of validation task.
func (*PostureManagementV2) GetCorrelationIDWithContext ¶
func (postureManagement *PostureManagementV2) GetCorrelationIDWithContext(ctx context.Context, getCorrelationIDOptions *GetCorrelationIDOptions) (result *ScopeTaskStatus, response *core.DetailedResponse, err error)
GetCorrelationIDWithContext is an alternate form of the GetCorrelationID method which supports a Context parameter
func (*PostureManagementV2) GetCredential ¶
func (postureManagement *PostureManagementV2) GetCredential(getCredentialOptions *GetCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
GetCredential : View credential details View a stored credential details including its name, type, and secret.
func (*PostureManagementV2) GetCredentialWithContext ¶
func (postureManagement *PostureManagementV2) GetCredentialWithContext(ctx context.Context, getCredentialOptions *GetCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
GetCredentialWithContext is an alternate form of the GetCredential method which supports a Context parameter
func (*PostureManagementV2) GetEnableGzipCompression ¶
func (postureManagement *PostureManagementV2) GetEnableGzipCompression() bool
GetEnableGzipCompression returns the service's EnableGzipCompression field
func (*PostureManagementV2) GetGroupProfileControls ¶
func (postureManagement *PostureManagementV2) GetGroupProfileControls(getGroupProfileControlsOptions *GetGroupProfileControlsOptions) (result *ControlList, response *core.DetailedResponse, err error)
GetGroupProfileControls : View group profile controls View the controls and goals that are available as part of a profile group.
func (*PostureManagementV2) GetGroupProfileControlsWithContext ¶
func (postureManagement *PostureManagementV2) GetGroupProfileControlsWithContext(ctx context.Context, getGroupProfileControlsOptions *GetGroupProfileControlsOptions) (result *ControlList, response *core.DetailedResponse, err error)
GetGroupProfileControlsWithContext is an alternate form of the GetGroupProfileControls method which supports a Context parameter
func (*PostureManagementV2) GetProfile ¶
func (postureManagement *PostureManagementV2) GetProfile(getProfileOptions *GetProfileOptions) (result *Profile, response *core.DetailedResponse, err error)
GetProfile : View profile details View profile details.
func (*PostureManagementV2) GetProfileControls ¶
func (postureManagement *PostureManagementV2) GetProfileControls(getProfileControlsOptions *GetProfileControlsOptions) (result *ControlList, response *core.DetailedResponse, err error)
GetProfileControls : View profile controls View a list of the controls and their associated goals for a specified profile.
func (*PostureManagementV2) GetProfileControlsWithContext ¶
func (postureManagement *PostureManagementV2) GetProfileControlsWithContext(ctx context.Context, getProfileControlsOptions *GetProfileControlsOptions) (result *ControlList, response *core.DetailedResponse, err error)
GetProfileControlsWithContext is an alternate form of the GetProfileControls method which supports a Context parameter
func (*PostureManagementV2) GetProfileWithContext ¶
func (postureManagement *PostureManagementV2) GetProfileWithContext(ctx context.Context, getProfileOptions *GetProfileOptions) (result *Profile, response *core.DetailedResponse, err error)
GetProfileWithContext is an alternate form of the GetProfile method which supports a Context parameter
func (*PostureManagementV2) GetScopeDetails ¶
func (postureManagement *PostureManagementV2) GetScopeDetails(getScopeDetailsOptions *GetScopeDetailsOptions) (result *Scope, response *core.DetailedResponse, err error)
GetScopeDetails : View scope details View the details of a specific scope.
func (*PostureManagementV2) GetScopeDetailsCollector ¶
func (postureManagement *PostureManagementV2) GetScopeDetailsCollector(getScopeDetailsCollectorOptions *GetScopeDetailsCollectorOptions) (result *ScopeCollector, response *core.DetailedResponse, err error)
GetScopeDetailsCollector : Get a scope's collector Get the collector that is associated with a scope.
func (*PostureManagementV2) GetScopeDetailsCollectorWithContext ¶
func (postureManagement *PostureManagementV2) GetScopeDetailsCollectorWithContext(ctx context.Context, getScopeDetailsCollectorOptions *GetScopeDetailsCollectorOptions) (result *ScopeCollector, response *core.DetailedResponse, err error)
GetScopeDetailsCollectorWithContext is an alternate form of the GetScopeDetailsCollector method which supports a Context parameter
func (*PostureManagementV2) GetScopeDetailsCredentials ¶
func (postureManagement *PostureManagementV2) GetScopeDetailsCredentials(getScopeDetailsCredentialsOptions *GetScopeDetailsCredentialsOptions) (result *ScopeCredential, response *core.DetailedResponse, err error)
GetScopeDetailsCredentials : Get a scope's credentials Get the credentials that are associated with a scope.
func (*PostureManagementV2) GetScopeDetailsCredentialsWithContext ¶
func (postureManagement *PostureManagementV2) GetScopeDetailsCredentialsWithContext(ctx context.Context, getScopeDetailsCredentialsOptions *GetScopeDetailsCredentialsOptions) (result *ScopeCredential, response *core.DetailedResponse, err error)
GetScopeDetailsCredentialsWithContext is an alternate form of the GetScopeDetailsCredentials method which supports a Context parameter
func (*PostureManagementV2) GetScopeDetailsWithContext ¶
func (postureManagement *PostureManagementV2) GetScopeDetailsWithContext(ctx context.Context, getScopeDetailsOptions *GetScopeDetailsOptions) (result *Scope, response *core.DetailedResponse, err error)
GetScopeDetailsWithContext is an alternate form of the GetScopeDetails method which supports a Context parameter
func (*PostureManagementV2) GetScopeTimeline ¶
func (postureManagement *PostureManagementV2) GetScopeTimeline(getScopeTimelineOptions *GetScopeTimelineOptions) (result *EventList, response *core.DetailedResponse, err error)
GetScopeTimeline : Get scope timelines Gives the list of events for a given scope like Discovery, fact collection.
func (*PostureManagementV2) GetScopeTimelineWithContext ¶
func (postureManagement *PostureManagementV2) GetScopeTimelineWithContext(ctx context.Context, getScopeTimelineOptions *GetScopeTimelineOptions) (result *EventList, response *core.DetailedResponse, err error)
GetScopeTimelineWithContext is an alternate form of the GetScopeTimeline method which supports a Context parameter
func (*PostureManagementV2) GetServiceURL ¶
func (postureManagement *PostureManagementV2) GetServiceURL() string
GetServiceURL returns the service URL
func (*PostureManagementV2) ImportProfiles ¶
func (postureManagement *PostureManagementV2) ImportProfiles(importProfilesOptions *ImportProfilesOptions) (result *BasicResult, response *core.DetailedResponse, err error)
ImportProfiles : Import profile Import a profile that you've formatted locally. For more information about the way in which your profile must be formatted, see [the docs](/docs/security-compliance?topic=security-compliance-custom-profiles#CSV-format).
func (*PostureManagementV2) ImportProfilesWithContext ¶
func (postureManagement *PostureManagementV2) ImportProfilesWithContext(ctx context.Context, importProfilesOptions *ImportProfilesOptions) (result *BasicResult, response *core.DetailedResponse, err error)
ImportProfilesWithContext is an alternate form of the ImportProfiles method which supports a Context parameter
func (*PostureManagementV2) ListCollectors ¶
func (postureManagement *PostureManagementV2) ListCollectors(listCollectorsOptions *ListCollectorsOptions) (result *CollectorList, response *core.DetailedResponse, err error)
ListCollectors : List collectors View a list of all of the collectors that are avilable in your account and their current status.
func (*PostureManagementV2) ListCollectorsWithContext ¶
func (postureManagement *PostureManagementV2) ListCollectorsWithContext(ctx context.Context, listCollectorsOptions *ListCollectorsOptions) (result *CollectorList, response *core.DetailedResponse, err error)
ListCollectorsWithContext is an alternate form of the ListCollectors method which supports a Context parameter
func (*PostureManagementV2) ListCredentials ¶
func (postureManagement *PostureManagementV2) ListCredentials(listCredentialsOptions *ListCredentialsOptions) (result *CredentialList, response *core.DetailedResponse, err error)
ListCredentials : List credentials List the credentials results that are available in your account.
func (*PostureManagementV2) ListCredentialsWithContext ¶
func (postureManagement *PostureManagementV2) ListCredentialsWithContext(ctx context.Context, listCredentialsOptions *ListCredentialsOptions) (result *CredentialList, response *core.DetailedResponse, err error)
ListCredentialsWithContext is an alternate form of the ListCredentials method which supports a Context parameter
func (*PostureManagementV2) ListLatestScans ¶
func (postureManagement *PostureManagementV2) ListLatestScans(listLatestScansOptions *ListLatestScansOptions) (result *ScanList, response *core.DetailedResponse, err error)
ListLatestScans : List latest scans List the last scan results that are available in your account for each profile and scope combination.
func (*PostureManagementV2) ListLatestScansWithContext ¶
func (postureManagement *PostureManagementV2) ListLatestScansWithContext(ctx context.Context, listLatestScansOptions *ListLatestScansOptions) (result *ScanList, response *core.DetailedResponse, err error)
ListLatestScansWithContext is an alternate form of the ListLatestScans method which supports a Context parameter
func (*PostureManagementV2) ListProfiles ¶
func (postureManagement *PostureManagementV2) ListProfiles(listProfilesOptions *ListProfilesOptions) (result *ProfileList, response *core.DetailedResponse, err error)
ListProfiles : List profiles List all of the profiles that are available in your account. To view a specific profile, you can filter by name.
func (*PostureManagementV2) ListProfilesWithContext ¶
func (postureManagement *PostureManagementV2) ListProfilesWithContext(ctx context.Context, listProfilesOptions *ListProfilesOptions) (result *ProfileList, response *core.DetailedResponse, err error)
ListProfilesWithContext is an alternate form of the ListProfiles method which supports a Context parameter
func (*PostureManagementV2) ListScopes ¶
func (postureManagement *PostureManagementV2) ListScopes(listScopesOptions *ListScopesOptions) (result *ScopeList, response *core.DetailedResponse, err error)
ListScopes : List scopes List all of the scopes that are available in your account. To view a specific scope, you can filter by name.
func (*PostureManagementV2) ListScopesWithContext ¶
func (postureManagement *PostureManagementV2) ListScopesWithContext(ctx context.Context, listScopesOptions *ListScopesOptions) (result *ScopeList, response *core.DetailedResponse, err error)
ListScopesWithContext is an alternate form of the ListScopes method which supports a Context parameter
func (*PostureManagementV2) NewCreateCollectorOptions ¶
func (*PostureManagementV2) NewCreateCollectorOptions(name string, isPublic bool, managedBy string) *CreateCollectorOptions
NewCreateCollectorOptions : Instantiate CreateCollectorOptions
func (*PostureManagementV2) NewCreateCredentialOptions ¶
func (*PostureManagementV2) NewCreateCredentialOptions(enabled bool, typeVar string, name string, description string, displayFields *NewCredentialDisplayFields, group *CredentialGroup, purpose string) *CreateCredentialOptions
NewCreateCredentialOptions : Instantiate CreateCredentialOptions
func (*PostureManagementV2) NewCreateScopeOptions ¶
func (*PostureManagementV2) NewCreateScopeOptions(name string, description string, collectorIds []string, credentialID string, credentialType string) *CreateScopeOptions
NewCreateScopeOptions : Instantiate CreateScopeOptions
func (*PostureManagementV2) NewCreateValidationOptions ¶
func (*PostureManagementV2) NewCreateValidationOptions(scopeID string, profileID string) *CreateValidationOptions
NewCreateValidationOptions : Instantiate CreateValidationOptions
func (*PostureManagementV2) NewCredentialGroup ¶
func (*PostureManagementV2) NewCredentialGroup(id string, passphrase string) (_model *CredentialGroup, err error)
NewCredentialGroup : Instantiate CredentialGroup (Generic Model Constructor)
func (*PostureManagementV2) NewDeleteCollectorOptions ¶
func (*PostureManagementV2) NewDeleteCollectorOptions(id string) *DeleteCollectorOptions
NewDeleteCollectorOptions : Instantiate DeleteCollectorOptions
func (*PostureManagementV2) NewDeleteCredentialOptions ¶
func (*PostureManagementV2) NewDeleteCredentialOptions(id string) *DeleteCredentialOptions
NewDeleteCredentialOptions : Instantiate DeleteCredentialOptions
func (*PostureManagementV2) NewDeleteProfileOptions ¶
func (*PostureManagementV2) NewDeleteProfileOptions(id string) *DeleteProfileOptions
NewDeleteProfileOptions : Instantiate DeleteProfileOptions
func (*PostureManagementV2) NewDeleteScopeOptions ¶
func (*PostureManagementV2) NewDeleteScopeOptions(id string) *DeleteScopeOptions
NewDeleteScopeOptions : Instantiate DeleteScopeOptions
func (*PostureManagementV2) NewGetCollectorOptions ¶
func (*PostureManagementV2) NewGetCollectorOptions(id string) *GetCollectorOptions
NewGetCollectorOptions : Instantiate GetCollectorOptions
func (*PostureManagementV2) NewGetCorrelationIDOptions ¶
func (*PostureManagementV2) NewGetCorrelationIDOptions(correlationID string) *GetCorrelationIDOptions
NewGetCorrelationIDOptions : Instantiate GetCorrelationIDOptions
func (*PostureManagementV2) NewGetCredentialOptions ¶
func (*PostureManagementV2) NewGetCredentialOptions(id string) *GetCredentialOptions
NewGetCredentialOptions : Instantiate GetCredentialOptions
func (*PostureManagementV2) NewGetGroupProfileControlsOptions ¶
func (*PostureManagementV2) NewGetGroupProfileControlsOptions(groupID string) *GetGroupProfileControlsOptions
NewGetGroupProfileControlsOptions : Instantiate GetGroupProfileControlsOptions
func (*PostureManagementV2) NewGetProfileControlsOptions ¶
func (*PostureManagementV2) NewGetProfileControlsOptions(profileID string) *GetProfileControlsOptions
NewGetProfileControlsOptions : Instantiate GetProfileControlsOptions
func (*PostureManagementV2) NewGetProfileOptions ¶
func (*PostureManagementV2) NewGetProfileOptions(id string, profileType string) *GetProfileOptions
NewGetProfileOptions : Instantiate GetProfileOptions
func (*PostureManagementV2) NewGetScopeDetailsCollectorOptions ¶
func (*PostureManagementV2) NewGetScopeDetailsCollectorOptions(scopeID string) *GetScopeDetailsCollectorOptions
NewGetScopeDetailsCollectorOptions : Instantiate GetScopeDetailsCollectorOptions
func (*PostureManagementV2) NewGetScopeDetailsCredentialsOptions ¶
func (*PostureManagementV2) NewGetScopeDetailsCredentialsOptions(scopeID string) *GetScopeDetailsCredentialsOptions
NewGetScopeDetailsCredentialsOptions : Instantiate GetScopeDetailsCredentialsOptions
func (*PostureManagementV2) NewGetScopeDetailsOptions ¶
func (*PostureManagementV2) NewGetScopeDetailsOptions(id string) *GetScopeDetailsOptions
NewGetScopeDetailsOptions : Instantiate GetScopeDetailsOptions
func (*PostureManagementV2) NewGetScopeTimelineOptions ¶
func (*PostureManagementV2) NewGetScopeTimelineOptions(scopeID string) *GetScopeTimelineOptions
NewGetScopeTimelineOptions : Instantiate GetScopeTimelineOptions
func (*PostureManagementV2) NewImportProfilesOptions ¶
func (*PostureManagementV2) NewImportProfilesOptions(file io.ReadCloser) *ImportProfilesOptions
NewImportProfilesOptions : Instantiate ImportProfilesOptions
func (*PostureManagementV2) NewListCollectorsOptions ¶
func (*PostureManagementV2) NewListCollectorsOptions() *ListCollectorsOptions
NewListCollectorsOptions : Instantiate ListCollectorsOptions
func (*PostureManagementV2) NewListCredentialsOptions ¶
func (*PostureManagementV2) NewListCredentialsOptions() *ListCredentialsOptions
NewListCredentialsOptions : Instantiate ListCredentialsOptions
func (*PostureManagementV2) NewListLatestScansOptions ¶
func (*PostureManagementV2) NewListLatestScansOptions() *ListLatestScansOptions
NewListLatestScansOptions : Instantiate ListLatestScansOptions
func (*PostureManagementV2) NewListProfilesOptions ¶
func (*PostureManagementV2) NewListProfilesOptions() *ListProfilesOptions
NewListProfilesOptions : Instantiate ListProfilesOptions
func (*PostureManagementV2) NewListScopesOptions ¶
func (*PostureManagementV2) NewListScopesOptions() *ListScopesOptions
NewListScopesOptions : Instantiate ListScopesOptions
func (*PostureManagementV2) NewReplaceScopeDetailsCollectorOptions ¶
func (*PostureManagementV2) NewReplaceScopeDetailsCollectorOptions(scopeID string, collectorIds []string) *ReplaceScopeDetailsCollectorOptions
NewReplaceScopeDetailsCollectorOptions : Instantiate ReplaceScopeDetailsCollectorOptions
func (*PostureManagementV2) NewReplaceScopeDetailsCredentialsOptions ¶
func (*PostureManagementV2) NewReplaceScopeDetailsCredentialsOptions(scopeID string, credentialID string) *ReplaceScopeDetailsCredentialsOptions
NewReplaceScopeDetailsCredentialsOptions : Instantiate ReplaceScopeDetailsCredentialsOptions
func (*PostureManagementV2) NewScanSummariesOptions ¶
func (*PostureManagementV2) NewScanSummariesOptions(reportSettingID string) *ScanSummariesOptions
NewScanSummariesOptions : Instantiate ScanSummariesOptions
func (*PostureManagementV2) NewScansSummaryOptions ¶
func (*PostureManagementV2) NewScansSummaryOptions(scanID string, profileID string) *ScansSummaryOptions
NewScansSummaryOptions : Instantiate ScansSummaryOptions
func (*PostureManagementV2) NewScopeCollector ¶
func (*PostureManagementV2) NewScopeCollector(collectorIds []string) (_model *ScopeCollector, err error)
NewScopeCollector : Instantiate ScopeCollector (Generic Model Constructor)
func (*PostureManagementV2) NewScopeCredential ¶
func (*PostureManagementV2) NewScopeCredential(credentialID string) (_model *ScopeCredential, err error)
NewScopeCredential : Instantiate ScopeCredential (Generic Model Constructor)
func (*PostureManagementV2) NewUpdateCollectorOptions ¶
func (*PostureManagementV2) NewUpdateCollectorOptions(id string, collector map[string]interface{}) *UpdateCollectorOptions
NewUpdateCollectorOptions : Instantiate UpdateCollectorOptions
func (*PostureManagementV2) NewUpdateCredentialOptions ¶
func (*PostureManagementV2) NewUpdateCredentialOptions(id string) *UpdateCredentialOptions
NewUpdateCredentialOptions : Instantiate UpdateCredentialOptions
func (*PostureManagementV2) NewUpdateProfilesOptions ¶
func (*PostureManagementV2) NewUpdateProfilesOptions(id string) *UpdateProfilesOptions
NewUpdateProfilesOptions : Instantiate UpdateProfilesOptions
func (*PostureManagementV2) NewUpdateScopeDetailsOptions ¶
func (*PostureManagementV2) NewUpdateScopeDetailsOptions(id string) *UpdateScopeDetailsOptions
NewUpdateScopeDetailsOptions : Instantiate UpdateScopeDetailsOptions
func (*PostureManagementV2) ReplaceScopeDetailsCollector ¶
func (postureManagement *PostureManagementV2) ReplaceScopeDetailsCollector(replaceScopeDetailsCollectorOptions *ReplaceScopeDetailsCollectorOptions) (result *ScopeCollector, response *core.DetailedResponse, err error)
ReplaceScopeDetailsCollector : Update a scope's collector Update the collector that is associated with a scope.
func (*PostureManagementV2) ReplaceScopeDetailsCollectorWithContext ¶
func (postureManagement *PostureManagementV2) ReplaceScopeDetailsCollectorWithContext(ctx context.Context, replaceScopeDetailsCollectorOptions *ReplaceScopeDetailsCollectorOptions) (result *ScopeCollector, response *core.DetailedResponse, err error)
ReplaceScopeDetailsCollectorWithContext is an alternate form of the ReplaceScopeDetailsCollector method which supports a Context parameter
func (*PostureManagementV2) ReplaceScopeDetailsCredentials ¶
func (postureManagement *PostureManagementV2) ReplaceScopeDetailsCredentials(replaceScopeDetailsCredentialsOptions *ReplaceScopeDetailsCredentialsOptions) (result *ScopeCredential, response *core.DetailedResponse, err error)
ReplaceScopeDetailsCredentials : Update a scope's credentials Update the credentials that are associated with a scope.
func (*PostureManagementV2) ReplaceScopeDetailsCredentialsWithContext ¶
func (postureManagement *PostureManagementV2) ReplaceScopeDetailsCredentialsWithContext(ctx context.Context, replaceScopeDetailsCredentialsOptions *ReplaceScopeDetailsCredentialsOptions) (result *ScopeCredential, response *core.DetailedResponse, err error)
ReplaceScopeDetailsCredentialsWithContext is an alternate form of the ReplaceScopeDetailsCredentials method which supports a Context parameter
func (*PostureManagementV2) ScanSummaries ¶
func (postureManagement *PostureManagementV2) ScanSummaries(scanSummariesOptions *ScanSummariesOptions) (result *SummaryList, response *core.DetailedResponse, err error)
ScanSummaries : View scan summaries List all of the previous and current validation summaries for a specific scan.
func (*PostureManagementV2) ScanSummariesWithContext ¶
func (postureManagement *PostureManagementV2) ScanSummariesWithContext(ctx context.Context, scanSummariesOptions *ScanSummariesOptions) (result *SummaryList, response *core.DetailedResponse, err error)
ScanSummariesWithContext is an alternate form of the ScanSummaries method which supports a Context parameter
func (*PostureManagementV2) ScansSummary ¶
func (postureManagement *PostureManagementV2) ScansSummary(scansSummaryOptions *ScansSummaryOptions) (result *Summary, response *core.DetailedResponse, err error)
ScansSummary : View a specified scan Retrieve the results summary of a validation scan by specifying a scan and profile ID combination. To obtain your profile ID and scan ID for your most recent scan, make a GET request to the "/posture/v2/scans/validations/latest_scans" endpoint.
func (*PostureManagementV2) ScansSummaryWithContext ¶
func (postureManagement *PostureManagementV2) ScansSummaryWithContext(ctx context.Context, scansSummaryOptions *ScansSummaryOptions) (result *Summary, response *core.DetailedResponse, err error)
ScansSummaryWithContext is an alternate form of the ScansSummary method which supports a Context parameter
func (*PostureManagementV2) SetDefaultHeaders ¶
func (postureManagement *PostureManagementV2) SetDefaultHeaders(headers http.Header)
SetDefaultHeaders sets HTTP headers to be sent in every request
func (*PostureManagementV2) SetEnableGzipCompression ¶
func (postureManagement *PostureManagementV2) SetEnableGzipCompression(enableGzip bool)
SetEnableGzipCompression sets the service's EnableGzipCompression field
func (*PostureManagementV2) SetServiceURL ¶
func (postureManagement *PostureManagementV2) SetServiceURL(url string) error
SetServiceURL sets the service URL
func (*PostureManagementV2) UpdateCollector ¶
func (postureManagement *PostureManagementV2) UpdateCollector(updateCollectorOptions *UpdateCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
UpdateCollector : Update a collector Update a collector.
func (*PostureManagementV2) UpdateCollectorWithContext ¶
func (postureManagement *PostureManagementV2) UpdateCollectorWithContext(ctx context.Context, updateCollectorOptions *UpdateCollectorOptions) (result *Collector, response *core.DetailedResponse, err error)
UpdateCollectorWithContext is an alternate form of the UpdateCollector method which supports a Context parameter
func (*PostureManagementV2) UpdateCredential ¶
func (postureManagement *PostureManagementV2) UpdateCredential(updateCredentialOptions *UpdateCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
UpdateCredential : Update a credential Update the way a credential is stored in the Security and Compliance Center, or update the credential itself.
func (*PostureManagementV2) UpdateCredentialWithContext ¶
func (postureManagement *PostureManagementV2) UpdateCredentialWithContext(ctx context.Context, updateCredentialOptions *UpdateCredentialOptions) (result *Credential, response *core.DetailedResponse, err error)
UpdateCredentialWithContext is an alternate form of the UpdateCredential method which supports a Context parameter
func (*PostureManagementV2) UpdateProfiles ¶
func (postureManagement *PostureManagementV2) UpdateProfiles(updateProfilesOptions *UpdateProfilesOptions) (result *Profile, response *core.DetailedResponse, err error)
UpdateProfiles : Update a profile Update a profile. Set the enable field to false to mark the profile as deleted.
func (*PostureManagementV2) UpdateProfilesWithContext ¶
func (postureManagement *PostureManagementV2) UpdateProfilesWithContext(ctx context.Context, updateProfilesOptions *UpdateProfilesOptions) (result *Profile, response *core.DetailedResponse, err error)
UpdateProfilesWithContext is an alternate form of the UpdateProfiles method which supports a Context parameter
func (*PostureManagementV2) UpdateScopeDetails ¶
func (postureManagement *PostureManagementV2) UpdateScopeDetails(updateScopeDetailsOptions *UpdateScopeDetailsOptions) (result *Scope, response *core.DetailedResponse, err error)
UpdateScopeDetails : Update Scope Updates the Scope details.
func (*PostureManagementV2) UpdateScopeDetailsWithContext ¶
func (postureManagement *PostureManagementV2) UpdateScopeDetailsWithContext(ctx context.Context, updateScopeDetailsOptions *UpdateScopeDetailsOptions) (result *Scope, response *core.DetailedResponse, err error)
UpdateScopeDetailsWithContext is an alternate form of the UpdateScopeDetails method which supports a Context parameter
type PostureManagementV2Options ¶
type PostureManagementV2Options struct { ServiceName string URL string Authenticator core.Authenticator }
PostureManagementV2Options : Service options
type Profile ¶
type Profile struct { // The name of the profile. Name *string `json:"name" validate:"required"` // A description of the profile. Description *string `json:"description" validate:"required"` // The version of the profile. Version *int64 `json:"version" validate:"required"` // The user who created the profile. CreatedBy *string `json:"created_by" validate:"required"` // The user who last modified the profile. ModifiedBy *string `json:"modified_by" validate:"required"` // A reason that you want to delete a profile. ReasonForDelete *string `json:"reason_for_delete" validate:"required"` // The criteria that defines how a profile applies. ApplicabilityCriteria *ApplicabilityCriteria `json:"applicability_criteria" validate:"required"` // An auto-generated unique identifying number of the profile. ID *string `json:"id" validate:"required"` // The base profile that the controls are pulled from. BaseProfile *string `json:"base_profile" validate:"required"` // The type of profile. Type *string `json:"type" validate:"required"` // no of Controls. NoOfControls *int64 `json:"no_of_controls" validate:"required"` // The time that the profile was created in UTC. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` // The time that the profile was most recently modified in UTC. UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"` // The profile status. If the profile is enabled, the value is true. If the profile is disabled, the value is false. Enabled *bool `json:"enabled" validate:"required"` }
Profile : Profile.
type ProfileItem ¶
type ProfileItem struct { // The name of the profile. Name *string `json:"name" validate:"required"` // An auto-generated unique identifier for the scope. ID *string `json:"id" validate:"required"` // The type of profile. Type *string `json:"type" validate:"required"` }
ProfileItem : Profile details.
type ProfileList ¶
type ProfileList struct { // The offset of the page. Offset *int64 `json:"offset" validate:"required"` // The number of profiles displayed per page. Limit *int64 `json:"limit" validate:"required"` // The total number of profiles. This value is 0 if no profiles are available and below fields will not be available in // that case. TotalCount *int64 `json:"total_count" validate:"required"` // The URL of a page. First *PageLink `json:"first" validate:"required"` // The URL of a page. Last *PageLink `json:"last" validate:"required"` // The URL of a page. Previous *PageLink `json:"previous,omitempty"` // The URL of a page. Next *PageLink `json:"next,omitempty"` // Profiles. Profiles []Profile `json:"profiles" validate:"required"` }
ProfileList : A list of profiles.
func (*ProfileList) GetNextOffset ¶
func (resp *ProfileList) GetNextOffset() (*int64, error)
Retrieve the value to be passed to a request to access the next page of results
type ProfileResult ¶
type ProfileResult struct { // The ID of the profile. ID *string `json:"id" validate:"required"` // The name of the profile. Name *string `json:"name" validate:"required"` // The type of profile. To learn more about profile types, check out the [docs] // (https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-profiles). Type *string `json:"type" validate:"required"` // The result of a scan.The above values will not be avaialble if no scopes are available. ValidationResult *ScanResult `json:"validation_result" validate:"required"` }
ProfileResult : The result of a profile.
type ReplaceScopeDetailsCollectorOptions ¶
type ReplaceScopeDetailsCollectorOptions struct { // The unique identifier that is used to trace an entire Scope request. ScopeID *string `json:"-" validate:"required,ne="` // Stores the value of collector_ids . CollectorIds []string `json:"collector_ids" validate:"required"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ReplaceScopeDetailsCollectorOptions : The ReplaceScopeDetailsCollector options.
func (*ReplaceScopeDetailsCollectorOptions) SetAccountID ¶
func (_options *ReplaceScopeDetailsCollectorOptions) SetAccountID(accountID string) *ReplaceScopeDetailsCollectorOptions
SetAccountID : Allow user to set AccountID
func (*ReplaceScopeDetailsCollectorOptions) SetCollectorIds ¶
func (_options *ReplaceScopeDetailsCollectorOptions) SetCollectorIds(collectorIds []string) *ReplaceScopeDetailsCollectorOptions
SetCollectorIds : Allow user to set CollectorIds
func (*ReplaceScopeDetailsCollectorOptions) SetHeaders ¶
func (options *ReplaceScopeDetailsCollectorOptions) SetHeaders(param map[string]string) *ReplaceScopeDetailsCollectorOptions
SetHeaders : Allow user to set Headers
func (*ReplaceScopeDetailsCollectorOptions) SetScopeID ¶
func (_options *ReplaceScopeDetailsCollectorOptions) SetScopeID(scopeID string) *ReplaceScopeDetailsCollectorOptions
SetScopeID : Allow user to set ScopeID
func (*ReplaceScopeDetailsCollectorOptions) SetTransactionID ¶
func (_options *ReplaceScopeDetailsCollectorOptions) SetTransactionID(transactionID string) *ReplaceScopeDetailsCollectorOptions
SetTransactionID : Allow user to set TransactionID
type ReplaceScopeDetailsCredentialsOptions ¶
type ReplaceScopeDetailsCredentialsOptions struct { // The unique identifier that is used to trace an entire Scope request. ScopeID *string `json:"-" validate:"required,ne="` // Stores the value of credentialId . CredentialID *string `json:"credential_id" validate:"required"` // Stores the value of credential_attribute . CredentialAttribute *string `json:"credential_attribute,omitempty"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ReplaceScopeDetailsCredentialsOptions : The ReplaceScopeDetailsCredentials options.
func (*ReplaceScopeDetailsCredentialsOptions) SetAccountID ¶
func (_options *ReplaceScopeDetailsCredentialsOptions) SetAccountID(accountID string) *ReplaceScopeDetailsCredentialsOptions
SetAccountID : Allow user to set AccountID
func (*ReplaceScopeDetailsCredentialsOptions) SetCredentialAttribute ¶
func (_options *ReplaceScopeDetailsCredentialsOptions) SetCredentialAttribute(credentialAttribute string) *ReplaceScopeDetailsCredentialsOptions
SetCredentialAttribute : Allow user to set CredentialAttribute
func (*ReplaceScopeDetailsCredentialsOptions) SetCredentialID ¶
func (_options *ReplaceScopeDetailsCredentialsOptions) SetCredentialID(credentialID string) *ReplaceScopeDetailsCredentialsOptions
SetCredentialID : Allow user to set CredentialID
func (*ReplaceScopeDetailsCredentialsOptions) SetHeaders ¶
func (options *ReplaceScopeDetailsCredentialsOptions) SetHeaders(param map[string]string) *ReplaceScopeDetailsCredentialsOptions
SetHeaders : Allow user to set Headers
func (*ReplaceScopeDetailsCredentialsOptions) SetScopeID ¶
func (_options *ReplaceScopeDetailsCredentialsOptions) SetScopeID(scopeID string) *ReplaceScopeDetailsCredentialsOptions
SetScopeID : Allow user to set ScopeID
func (*ReplaceScopeDetailsCredentialsOptions) SetTransactionID ¶
func (_options *ReplaceScopeDetailsCredentialsOptions) SetTransactionID(transactionID string) *ReplaceScopeDetailsCredentialsOptions
SetTransactionID : Allow user to set TransactionID
type ResourceResult ¶
type ResourceResult struct { // The resource name. Name *string `json:"name,omitempty"` // The resource type. Types *string `json:"types,omitempty"` // The resource control result status. Status *string `json:"status,omitempty"` // The expected results of a resource. DisplayExpectedValue *string `json:"display_expected_value,omitempty"` // The actual results of a resource. ActualValue *string `json:"actual_value,omitempty"` // The results information. ResultsInfo *string `json:"results_info,omitempty"` // The reason for goal not applicable for a resource. NotApplicableReason *string `json:"not_applicable_reason,omitempty"` }
ResourceResult : The resource results.
type ResourceStatistics ¶
type ResourceStatistics struct { // The resource count of pass controls. PassCount *int64 `json:"pass_count,omitempty"` // The resource count of fail controls. FailCount *int64 `json:"fail_count,omitempty"` // The number of resources that were unable to be scanned against a control. UnableToPerformCount *int64 `json:"unable_to_perform_count,omitempty"` // The resource count of not applicable(na) controls. NotApplicableCount *int64 `json:"not_applicable_count,omitempty"` }
ResourceStatistics : A scans summary controls.
type Result ¶
type Result struct { // Result. Result *bool `json:"result" validate:"required"` // A message is returned. Message *string `json:"message" validate:"required"` }
Result : Result.
type ScanItem ¶
type ScanItem struct { // The ID of the scan. ScanID *string `json:"scan_id" validate:"required"` // A system generated name that is the combination of 12 characters in the scope name and 12 characters of a profile // name. ScanName *string `json:"scan_name" validate:"required"` // The scope ID of the scan. ScopeID *string `json:"scope_id" validate:"required"` // The name of the scope. ScopeName *string `json:"scope_name" validate:"required"` // Profiles array. Profiles []ProfileItem `json:"profiles,omitempty"` // The group ID of profile. GroupProfileID *string `json:"group_profile_id" validate:"required"` // The group name of the profile. GroupProfileName *string `json:"group_profile_name" validate:"required"` // The entity that ran the report. ReportRunBy *string `json:"report_run_by" validate:"required"` // The date and time the scan was run. StartTime *strfmt.DateTime `json:"start_time" validate:"required"` // The unique ID for Scan that is created. ReportSettingID *string `json:"report_setting_id,omitempty"` // The date and time the scan completed. EndTime *strfmt.DateTime `json:"end_time" validate:"required"` // The result of a scan.The above values will not be avaialble if no scopes are available. Result *ScanResult `json:"result" validate:"required"` }
ScanItem : The details of a scan.
type ScanList ¶
type ScanList struct { // The offset of the page. Offset *int64 `json:"offset" validate:"required"` // The number of scans displayed per page. Limit *int64 `json:"limit" validate:"required"` // The total number of scans in the list. This value will be 0 when no scans are available and below fields will not be // displayed in taht case. TotalCount *int64 `json:"total_count" validate:"required"` // The URL of a page. First *PageLink `json:"first" validate:"required"` // The URL of a page. Last *PageLink `json:"last" validate:"required"` // The URL of a page. Previous *PageLink `json:"previous,omitempty"` // The URL of a page. Next *PageLink `json:"next,omitempty"` // The details of a scan. LatestScans []ScanItem `json:"latest_scans" validate:"required"` }
ScanList : A list of scans.
func (*ScanList) GetNextOffset ¶
Retrieve the value to be passed to a request to access the next page of results
type ScanResult ¶
type ScanResult struct { // The number of goals that passed the scan. GoalsPassCount *int64 `json:"goals_pass_count" validate:"required"` // The number of goals that could not be validated. A control is listed as 'Unable to perform' when information about // its associated resource can't be collected. GoalsUnableToPerformCount *int64 `json:"goals_unable_to_perform_count" validate:"required"` // The number of goals that are not relevant to the current scan. A scan is listed as 'Not applicable' when information // about its associated resource can't be found. GoalsNotApplicableCount *int64 `json:"goals_not_applicable_count" validate:"required"` // The number of goals that failed the scan. GoalsFailCount *int64 `json:"goals_fail_count" validate:"required"` // The total number of goals that were included in the scan. GoalsTotalCount *int64 `json:"goals_total_count" validate:"required"` // The number of controls that passed the scan. ControlsPassCount *int64 `json:"controls_pass_count" validate:"required"` // The number of controls that failed the scan. ControlsFailCount *int64 `json:"controls_fail_count" validate:"required"` // The number of controls that are not relevant to the current scan. A scan is listed as 'Not applicable' when // information about its associated resource can't be found. ControlsNotApplicableCount *int64 `json:"controls_not_applicable_count" validate:"required"` // The number of controls that could not be validated. A control is listed as 'Unable to perform' when information // about its associated resource can't be collected. ControlsUnableToPerformCount *int64 `json:"controls_unable_to_perform_count" validate:"required"` // The total number of controls that were included in the scan. ControlsTotalCount *int64 `json:"controls_total_count" validate:"required"` }
ScanResult : The result of a scan.The above values will not be avaialble if no scopes are available.
type ScanSummariesOptions ¶
type ScanSummariesOptions struct { // The report setting ID. This can be obtained from the /validations/latest_scans API call. ReportSettingID *string `json:"-" validate:"required"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // The offset of the profiles. Offset *int64 `json:"-"` // The number of profiles that are included per page. Limit *int64 `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ScanSummariesOptions : The ScanSummaries options.
func (*ScanSummariesOptions) SetAccountID ¶
func (_options *ScanSummariesOptions) SetAccountID(accountID string) *ScanSummariesOptions
SetAccountID : Allow user to set AccountID
func (*ScanSummariesOptions) SetHeaders ¶
func (options *ScanSummariesOptions) SetHeaders(param map[string]string) *ScanSummariesOptions
SetHeaders : Allow user to set Headers
func (*ScanSummariesOptions) SetLimit ¶
func (_options *ScanSummariesOptions) SetLimit(limit int64) *ScanSummariesOptions
SetLimit : Allow user to set Limit
func (*ScanSummariesOptions) SetOffset ¶
func (_options *ScanSummariesOptions) SetOffset(offset int64) *ScanSummariesOptions
SetOffset : Allow user to set Offset
func (*ScanSummariesOptions) SetReportSettingID ¶
func (_options *ScanSummariesOptions) SetReportSettingID(reportSettingID string) *ScanSummariesOptions
SetReportSettingID : Allow user to set ReportSettingID
func (*ScanSummariesOptions) SetTransactionID ¶
func (_options *ScanSummariesOptions) SetTransactionID(transactionID string) *ScanSummariesOptions
SetTransactionID : Allow user to set TransactionID
type ScansSummaryOptions ¶
type ScansSummaryOptions struct { // Your Scan ID. ScanID *string `json:"-" validate:"required,ne="` // The profile ID. This can be obtained from the Security and Compliance Center UI by clicking on the profile name. The // URL contains the ID. ProfileID *string `json:"-" validate:"required"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
ScansSummaryOptions : The ScansSummary options.
func (*ScansSummaryOptions) SetAccountID ¶
func (_options *ScansSummaryOptions) SetAccountID(accountID string) *ScansSummaryOptions
SetAccountID : Allow user to set AccountID
func (*ScansSummaryOptions) SetHeaders ¶
func (options *ScansSummaryOptions) SetHeaders(param map[string]string) *ScansSummaryOptions
SetHeaders : Allow user to set Headers
func (*ScansSummaryOptions) SetProfileID ¶
func (_options *ScansSummaryOptions) SetProfileID(profileID string) *ScansSummaryOptions
SetProfileID : Allow user to set ProfileID
func (*ScansSummaryOptions) SetScanID ¶
func (_options *ScansSummaryOptions) SetScanID(scanID string) *ScansSummaryOptions
SetScanID : Allow user to set ScanID
func (*ScansSummaryOptions) SetTransactionID ¶
func (_options *ScansSummaryOptions) SetTransactionID(transactionID string) *ScansSummaryOptions
SetTransactionID : Allow user to set TransactionID
type Scope ¶
type Scope struct { // Stores the value of scope_id . ID *string `json:"id" validate:"required"` // Stores the value of scope_name . Name *string `json:"name" validate:"required"` // Stores the value of scope_uuid .Will be displayed only when value exists. UUID *string `json:"uuid,omitempty"` // Stores the value of partner_uuid .Will be displayed only when value exists. PartnerUUID *string `json:"partner_uuid,omitempty"` // Stores the value of scope_description .Will be displayed only when value exists. Description *string `json:"description,omitempty"` // Stores the value of scope_org_id .Will be displayed only when value exists. OrgID *int64 `json:"org_id,omitempty"` // Stores the value of scope_cloud_type_id .Will be displayed only when value exists. CloudTypeID *int64 `json:"cloud_type_id,omitempty"` // Stores the value of scope_tld_credential_id .Will be displayed only when value exists. TldCredentialID *int64 `json:"tld_credential_id,omitempty"` // Stores the value of scope_status .Will be displayed only when value exists. Status *string `json:"status,omitempty"` // Stores the value of scope_status_msg .Will be displayed only when value exists. StatusMsg *string `json:"status_msg,omitempty"` // Stores the value of scope_subset_selected .Will be displayed only when value exists. SubsetSelected *bool `json:"subset_selected,omitempty"` // Stores the value of scope_enabled .Will be displayed only when value exists. Enabled *bool `json:"enabled,omitempty"` // Stores the value of scope_last_discover_start_time .Will be displayed only when value exists. LastDiscoverStartTime *string `json:"last_discover_start_time,omitempty"` // Stores the value of scope_last_discover_completed_time .Will be displayed only when value exists. LastDiscoverCompletedTime *string `json:"last_discover_completed_time,omitempty"` // Stores the value of scope_last_successful_discover_start_time .Will be displayed only when value exists. LastSuccessfulDiscoverStartTime *string `json:"last_successful_discover_start_time,omitempty"` // Stores the value of scope_last_successful_discover_completed_time .Will be displayed only when value exists. LastSuccessfulDiscoverCompletedTime *string `json:"last_successful_discover_completed_time,omitempty"` // Stores the value of scope_task_type .Will be displayed only when value exists. TaskType *string `json:"task_type,omitempty"` // Stores the value of scope_tasks .Will be displayed only when value exists. Tasks []ScopeDetailsGatewayTask `json:"tasks,omitempty"` // Stores the value of scope_status_updated_time .Will be displayed only when value exists. StatusUpdatedTime *string `json:"status_updated_time,omitempty"` // Stores the value of collectors_by_type .Will be displayed only when value exists. CollectorsByType map[string][]Collector `json:"collectors_by_type,omitempty"` // Stores the value of scope_credentials_by_type .Will be displayed only when value exists. CredentialsByType map[string][]ScopeDetailsCredential `json:"credentials_by_type,omitempty"` // Stores the value of scope_credentials_by_sub_categeory_type .Will be displayed only when value exists. CredentialsBySubCategeoryType map[string][]ScopeDetailsCredential `json:"credentials_by_sub_categeory_type,omitempty"` // Stores the value of scope_sub_categories_by_type .Will be displayed only when value exists. SubCategoriesByType map[string][]string `json:"sub_categories_by_type,omitempty"` // Stores the value of scope_resource_groups .Will be displayed only when value exists. ResourceGroups *string `json:"resource_groups,omitempty"` // Stores the value of scope_region_names .Will be displayed only when value exists. RegionNames *string `json:"region_names,omitempty"` // Stores the value of scope_cloud_type .Will be displayed only when value exists. CloudType *string `json:"cloud_type,omitempty"` // Stores the value of scope_env_sub_category .Will be displayed only when value exists. EnvSubCategory *string `json:"env_sub_category,omitempty"` // Stores the value of ScopeDetailsCredential . TldCredentail *ScopeDetailsCredential `json:"tld_credentail,omitempty"` // Stores the value of collectors .Will be displayed only when value exists. Collectors []Collector `json:"collectors,omitempty"` // Stores the value of scope_first_level_scoped_data .Will be displayed only when value exists. FirstLevelScopedData []ScopeDetailsAssetData `json:"first_level_scoped_data,omitempty"` // Stores the value of scope_discovery_methods .Will be displayed only when value exists. DiscoveryMethods []string `json:"discovery_methods,omitempty"` // Stores the value of scope_discovery_method .Will be displayed only when value exists. DiscoveryMethod *string `json:"discovery_method,omitempty"` // Stores the value of scope_file_type .Will be displayed only when value exists. FileType *string `json:"file_type,omitempty"` // Stores the value of scope_file_format .Will be displayed only when value exists. FileFormat *string `json:"file_format,omitempty"` // Stores the value of scope_created_by .Will be displayed only when value exists. CreatedBy *string `json:"created_by,omitempty"` // Stores the value of scope_created_on .Will be displayed only when value exists. CreatedAt *string `json:"created_at,omitempty"` // Stores the value of scope_modified_by .Will be displayed only when value exists. ModifiedBy *string `json:"modified_by,omitempty"` // Stores the value of scope_modified_on .Will be displayed only when value exists. ModifiedAt *string `json:"modified_at,omitempty"` // Stores the value of scope_is_discovery_scheduled .Will be displayed only when value exists. IsDiscoveryScheduled *bool `json:"is_discovery_scheduled,omitempty"` // Stores the value of scope_freq .Will be displayed only when value exists. Interval *int64 `json:"interval,omitempty"` // Stores the value of scope_discovery_setting_id .Will be displayed only when value exists. DiscoverySettingID *int64 `json:"discovery_setting_id,omitempty"` // Stores the value of scope_include_new_eagerly .Will be displayed only when value exists. IncludeNewEagerly *bool `json:"include_new_eagerly,omitempty"` // Stores the value of scope_type .Will be displayed only when value exists. Type *string `json:"type,omitempty"` // A correlation_Id is created when a scope is created and discovery task is triggered or when a validation is // triggered on a Scope. This is used to get the status of the task(discovery or validation). CorrelationID *string `json:"correlation_id,omitempty"` // Stores the value of scope_credential_attributes .Will be displayed only when value exists. CredentialAttributes *string `json:"credential_attributes,omitempty"` }
Scope : Stores the value of ScopeDetails .
type ScopeCollector ¶
type ScopeCollector struct { // Stores the value of collector_ids . CollectorIds []string `json:"collector_ids" validate:"required"` }
ScopeCollector : Stores the value of Scope Collector Details .
type ScopeCredential ¶
type ScopeCredential struct { // Stores the value of credential_attribute . CredentialAttribute *string `json:"credential_attribute,omitempty"` // Stores the value of credentialId . CredentialID *string `json:"credential_id" validate:"required"` }
ScopeCredential : Stores the value of Scope Credential .
type ScopeDetailsAssetData ¶
type ScopeDetailsAssetData struct { // Stores the value of scope_object . ScopeObject *string `json:"scope_object,omitempty"` // Stores the value of scope_init_scope . ScopeInitScope *string `json:"scope_init_scope,omitempty"` // Stores the value of scope . Scope *string `json:"scope,omitempty"` // Stores the value of scope_changed . ScopeChanged *bool `json:"scope_changed,omitempty"` // Stores the value of scope_id . ScopeID *string `json:"scope_id,omitempty"` // Stores the value of scope_properties . ScopeProperties *string `json:"scope_properties,omitempty"` // Stores the value of scope_overlay . ScopeOverlay *string `json:"scope_overlay,omitempty"` // Stores the value of scope_new_found . ScopeNewFound *bool `json:"scope_new_found,omitempty"` // Stores the value of scope_discovery_status . ScopeDiscoveryStatus interface{} `json:"scope_discovery_status,omitempty"` // Stores the value of scope_fact_status . ScopeFactStatus interface{} `json:"scope_fact_status,omitempty"` // Stores the value of scope_facts . ScopeFacts *string `json:"scope_facts,omitempty"` // Stores the value of scope_list_members . ScopeListMembers interface{} `json:"scope_list_members,omitempty"` // Stores the value of scope_children . ScopeChildren interface{} `json:"scope_children,omitempty"` // Stores the value of scope_resource_category . ScopeResourceCategory *string `json:"scope_resource_category,omitempty"` // Stores the value of scope_resource_type . ScopeResourceType *string `json:"scope_resource_type,omitempty"` // Stores the value of scope_resource . ScopeResource *string `json:"scope_resource,omitempty"` // Stores the value of scope_resource_attributes . ScopeResourceAttributes interface{} `json:"scope_resource_attributes,omitempty"` // Stores the value of scope_drift . ScopeDrift *string `json:"scope_drift,omitempty"` // Stores the value of scope_parse_status . ScopeParseStatus *string `json:"scope_parse_status,omitempty"` // Stores the value of scope_transformed_facts . ScopeTransformedFacts interface{} `json:"scope_transformed_facts,omitempty"` // Stores the value of scope_collector_id . ScopeCollectorID *int64 `json:"scope_collector_id,omitempty"` }
ScopeDetailsAssetData : Stores the value of ScopeDetailsAssetData.
type ScopeDetailsCredential ¶
type ScopeDetailsCredential struct { // Stores the value of credential_id . ID *string `json:"id,omitempty"` // Stores the value of credential_name . Name *string `json:"name,omitempty"` // Stores the value of credential_uuid . UUID *string `json:"uuid,omitempty"` // Stores the value of credential_type . Type *string `json:"type,omitempty"` // Stores the value of credential_data . Data interface{} `json:"data,omitempty"` // Details the fields on the credential. This will change as per credential type selected. DisplayFields *ScopeDetailsCredentialDisplayFields `json:"display_fields,omitempty"` // Stores the value of credential_version_timestamp . VersionTimestamp interface{} `json:"version_timestamp,omitempty"` // Stores the value of credential_description . Description *string `json:"description,omitempty"` // Stores the value of credential_is_enabled . IsEnabled *bool `json:"is_enabled,omitempty"` // Stores the value of credential_gateway_key . GatewayKey *string `json:"gateway_key,omitempty"` // Stores the value of credential_credential_group . CredentialGroup interface{} `json:"credential_group,omitempty"` // Stores the value of credential_enabled_credential_group . EnabledCredentialGroup *bool `json:"enabled_credential_group,omitempty"` // Stores the value of credential_groups . Groups []CredentialGroup `json:"groups,omitempty"` // Stores the value of credential_purpose . Purpose *string `json:"purpose,omitempty"` }
ScopeDetailsCredential : Stores the value of ScopeDetailsCredential .
type ScopeDetailsCredentialDisplayFields ¶
type ScopeDetailsCredentialDisplayFields struct { // The IBM Cloud API Key. This is mandatory for IBM Credential Type. IBMAPIKey *string `json:"ibm_api_key,omitempty"` // AWS client Id.This is mandatory for AWS Cloud. AwsClientID *string `json:"aws_client_id,omitempty"` // AWS client secret.This is mandatory for AWS Cloud. AwsClientSecret *string `json:"aws_client_secret,omitempty"` // AWS region. AwsRegion *string `json:"aws_region,omitempty"` // AWS arn value. AwsArn *string `json:"aws_arn,omitempty"` // username of the user.This is mandatory for DataBase, Kerbros,OpenStack Credentials. Username *string `json:"username,omitempty"` // password of the user.This is mandatory for DataBase, Kerbros,OpenStack Credentials. Password *string `json:"password,omitempty"` // Azure client Id. This is mandatory for Azure Credential type. AzureClientID *string `json:"azure_client_id,omitempty"` // Azure client secret.This is mandatory for Azure Credential type. AzureClientSecret *string `json:"azure_client_secret,omitempty"` // Azure subscription Id.This is mandatory for Azure Credential type. AzureSubscriptionID *string `json:"azure_subscription_id,omitempty"` // Azure resource group. AzureResourceGroup *string `json:"azure_resource_group,omitempty"` // Database name.This is mandatory for Database Credential type. DatabaseName *string `json:"database_name,omitempty"` // Kerberos windows auth type.This is mandatory for Windows Kerberos Credential type. WinrmAuthtype *string `json:"winrm_authtype,omitempty"` // Kerberos windows ssl.This is mandatory for Windows Kerberos Credential type. WinrmUsessl *string `json:"winrm_usessl,omitempty"` // Kerberos windows port.This is mandatory for Windows Kerberos Credential type. WinrmPort *string `json:"winrm_port,omitempty"` // The MS365 client Id.This is mandatory for Windows MS365 Credential type. Ms365ClientID *string `json:"ms_365_client_id,omitempty"` // The MS365 client secret.This is mandatory for Windows MS365 Credential type. Ms365ClientSecret *string `json:"ms_365_client_secret,omitempty"` // The MS365 tenantId.This is mandatory for Windows MS365 Credential type. Ms365TenantID *string `json:"ms_365_tenant_id,omitempty"` // auth url of the Open Stack cloud.This is mandatory for Open Stack Credential type. AuthURL *string `json:"auth_url,omitempty"` // Project name of the Open Stack cloud.This is mandatory for Open Stack Credential type. ProjectName *string `json:"project_name,omitempty"` // user domain name of the Open Stack cloud.This is mandatory for Open Stack Credential type. UserDomainName *string `json:"user_domain_name,omitempty"` // project domain name of the Open Stack cloud.This is mandatory for Open Stack Credential type. ProjectDomainName *string `json:"project_domain_name,omitempty"` }
ScopeDetailsCredentialDisplayFields : Details the fields on the credential. This will change as per credential type selected.
type ScopeDetailsGatewayTask ¶
type ScopeDetailsGatewayTask struct { // Stores the value of task_logs . TaskLogs []TaskLogs `json:"task_logs,omitempty"` // Stores the value of task_id . TaskID *int64 `json:"task_id,omitempty"` // Stores the value of task_gateway_id . TaskGatewayID *int64 `json:"task_gateway_id,omitempty"` // Stores the value of task_gateway_name . TaskGatewayName *string `json:"task_gateway_name,omitempty"` // Stores the value of task_task_type . TaskTaskType *string `json:"task_task_type,omitempty"` // Stores the value of task_gateway_schema_id . TaskGatewaySchemaID *int64 `json:"task_gateway_schema_id,omitempty"` // Stores the value of task_schema_name . TaskSchemaName *string `json:"task_schema_name,omitempty"` // Stores the value of task_discover_id . TaskDiscoverID *int64 `json:"task_discover_id,omitempty"` // Stores the value of task_status . TaskStatus *string `json:"task_status,omitempty"` // Stores the value of task_status_msg . TaskStatusMsg *string `json:"task_status_msg,omitempty"` // Stores the value of task_start_time . TaskStartTime *int64 `json:"task_start_time,omitempty"` // Stores the value of task_updated_time . TaskUpdatedTime *int64 `json:"task_updated_time,omitempty"` // Stores the value of task_derived_status . TaskDerivedStatus *string `json:"task_derived_status,omitempty"` // Stores the value of task_created_by . TaskCreatedBy *string `json:"task_created_by,omitempty"` }
ScopeDetailsGatewayTask : Stores the value of ScopeDetailsGatewayTask .
type ScopeItem ¶
type ScopeItem struct { // A detailed description of the scope. Description *string `json:"description" validate:"required"` // The user who created the scope. CreatedBy *string `json:"created_by" validate:"required"` // The user who most recently modified the scope. ModifiedBy *string `json:"modified_by" validate:"required"` // An auto-generated unique identifier for the scope. ID *string `json:"id" validate:"required"` // Stores the value of scope_uuid . UUID *string `json:"uuid" validate:"required"` // A unique name for your scope. Name *string `json:"name" validate:"required"` // Indicates whether scope is enabled/disabled. Enabled *bool `json:"enabled" validate:"required"` // The environment that the scope is targeted to. CredentialType *string `json:"credential_type" validate:"required"` // The time that the scope was created in UTC. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` // The time that the scope was last modified in UTC. UpdatedAt *strfmt.DateTime `json:"updated_at" validate:"required"` // Stores the value of collectors .Will be displayed only when value exists. Collectors []Collector `json:"collectors" validate:"required"` }
ScopeItem : Scope.
type ScopeList ¶
type ScopeList struct { // The offset of the page. Offset *int64 `json:"offset" validate:"required"` // The number of scopes displayed per page. Limit *int64 `json:"limit" validate:"required"` // The total number of scopes. This value is 0 if no scopes are available and below fields will not be available in // that case. TotalCount *int64 `json:"total_count" validate:"required"` // The URL of a page. First *PageLink `json:"first" validate:"required"` // The URL of a page. Last *PageLink `json:"last" validate:"required"` // The URL of a page. Previous *PageLink `json:"previous,omitempty"` // The URL of a page. Next *PageLink `json:"next,omitempty"` // Scopes. Scopes []ScopeItem `json:"scopes" validate:"required"` }
ScopeList : Scopes list.
type ScopeTaskStatus ¶
type ScopeTaskStatus struct { // Returns the correlation ID. CorrelationID *string `json:"correlation_id" validate:"required"` // Returns the current status of a task. Status *string `json:"status" validate:"required"` // Returns the time that task started. StartTime *string `json:"start_time" validate:"required"` // Returns the time that the scope was last updated. This value exists when collector is installed and running. LastHeartbeat *strfmt.DateTime `json:"last_heartbeat" validate:"required"` }
ScopeTaskStatus : Returns the current task list for the collectors attached to the scope.
type Summary ¶
type Summary struct { // The scan ID. ID *string `json:"id" validate:"required"` // The scan discovery ID. DiscoverID *string `json:"discover_id" validate:"required"` // The scan profile ID. ProfileID *string `json:"profile_id" validate:"required"` // The scan profile name. ProfileName *string `json:"profile_name" validate:"required"` // The scan summary scope ID. ScopeID *string `json:"scope_id" validate:"required"` // The list of controls on the scan summary. Controls []Control `json:"controls" validate:"required"` }
Summary : A list of scans summary.
type SummaryItem ¶
type SummaryItem struct { // The ID of the scan. ID *string `json:"id" validate:"required"` // A system generated name that is the combination of 12 characters in the scope name and 12 characters of a profile // name. Name *string `json:"name" validate:"required"` // The ID of the scope. ScopeID *string `json:"scope_id" validate:"required"` // The name of the scope. ScopeName *string `json:"scope_name" validate:"required"` // The entity that ran the report. ReportRunBy *string `json:"report_run_by" validate:"required"` // The date and time the scan was run. StartTime *strfmt.DateTime `json:"start_time" validate:"required"` // The date and time the scan completed. EndTime *strfmt.DateTime `json:"end_time" validate:"required"` // The status of the collector as it completes a scan. Status *string `json:"status" validate:"required"` // The list of profiles. Profiles []ProfileResult `json:"profiles" validate:"required"` // The list of group profiles. GroupProfiles []ProfileResult `json:"group_profiles" validate:"required"` }
SummaryItem : The result of a scan summeries.
type SummaryList ¶
type SummaryList struct { // The offset of the page. Offset *int64 `json:"offset" validate:"required"` // The number of scans displayed per page. Limit *int64 `json:"limit" validate:"required"` // The total number of scans available in the list of summaries. TotalCount *int64 `json:"total_count" validate:"required"` // The URL of a page. First *PageLink `json:"first" validate:"required"` // The URL of a page. Last *PageLink `json:"last" validate:"required"` // The URL of a page. Previous *PageLink `json:"previous,omitempty"` // The URL of a page. Next *PageLink `json:"next,omitempty"` // Summaries. Summaries []SummaryItem `json:"summaries" validate:"required"` }
SummaryList : A list of scan summaries.
func (*SummaryList) GetNextOffset ¶
func (resp *SummaryList) GetNextOffset() (*int64, error)
Retrieve the value to be passed to a request to access the next page of results
type UpdateCollectorOptions ¶
type UpdateCollectorOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // JSON Merge-Patch content for update_collector. Collector map[string]interface{} `json:"collector" validate:"required"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
UpdateCollectorOptions : The UpdateCollector options.
func (*UpdateCollectorOptions) SetAccountID ¶
func (_options *UpdateCollectorOptions) SetAccountID(accountID string) *UpdateCollectorOptions
SetAccountID : Allow user to set AccountID
func (*UpdateCollectorOptions) SetCollector ¶
func (_options *UpdateCollectorOptions) SetCollector(collector map[string]interface{}) *UpdateCollectorOptions
SetCollector : Allow user to set Collector
func (*UpdateCollectorOptions) SetHeaders ¶
func (options *UpdateCollectorOptions) SetHeaders(param map[string]string) *UpdateCollectorOptions
SetHeaders : Allow user to set Headers
func (*UpdateCollectorOptions) SetID ¶
func (_options *UpdateCollectorOptions) SetID(id string) *UpdateCollectorOptions
SetID : Allow user to set ID
func (*UpdateCollectorOptions) SetTransactionID ¶
func (_options *UpdateCollectorOptions) SetTransactionID(transactionID string) *UpdateCollectorOptions
SetTransactionID : Allow user to set TransactionID
type UpdateCredentialDisplayFields ¶
type UpdateCredentialDisplayFields struct { // The IBM Cloud API Key. This is mandatory for IBM Credential Type. IBMAPIKey *string `json:"ibm_api_key,omitempty"` // AWS client Id.This is mandatory for AWS Cloud. AwsClientID *string `json:"aws_client_id,omitempty"` // AWS client secret.This is mandatory for AWS Cloud. AwsClientSecret *string `json:"aws_client_secret,omitempty"` // AWS region. AwsRegion *string `json:"aws_region,omitempty"` // AWS arn value. AwsArn *string `json:"aws_arn,omitempty"` // username of the user.This is mandatory for DataBase, Kerbros,OpenStack Credentials. Username *string `json:"username,omitempty"` // password of the user.This is mandatory for DataBase, Kerbros,OpenStack Credentials. Password *string `json:"password,omitempty"` // Azure client Id. This is mandatory for Azure Credential type. AzureClientID *string `json:"azure_client_id,omitempty"` // Azure client secret.This is mandatory for Azure Credential type. AzureClientSecret *string `json:"azure_client_secret,omitempty"` // Azure subscription Id.This is mandatory for Azure Credential type. AzureSubscriptionID *string `json:"azure_subscription_id,omitempty"` // Azure resource group. AzureResourceGroup *string `json:"azure_resource_group,omitempty"` // Database name.This is mandatory for Database Credential type. DatabaseName *string `json:"database_name,omitempty"` // Kerberos windows auth type.This is mandatory for Windows Kerberos Credential type. WinrmAuthtype *string `json:"winrm_authtype,omitempty"` // Kerberos windows ssl.This is mandatory for Windows Kerberos Credential type. WinrmUsessl *string `json:"winrm_usessl,omitempty"` // Kerberos windows port.This is mandatory for Windows Kerberos Credential type. WinrmPort *string `json:"winrm_port,omitempty"` // The MS365 client Id.This is mandatory for Windows MS365 Credential type. Ms365ClientID *string `json:"ms_365_client_id,omitempty"` // The MS365 client secret.This is mandatory for Windows MS365 Credential type. Ms365ClientSecret *string `json:"ms_365_client_secret,omitempty"` // The MS365 tenantId.This is mandatory for Windows MS365 Credential type. Ms365TenantID *string `json:"ms_365_tenant_id,omitempty"` // auth url of the Open Stack cloud.This is mandatory for Open Stack Credential type. AuthURL *string `json:"auth_url,omitempty"` // Project name of the Open Stack cloud.This is mandatory for Open Stack Credential type. ProjectName *string `json:"project_name,omitempty"` // user domain name of the Open Stack cloud.This is mandatory for Open Stack Credential type. UserDomainName *string `json:"user_domain_name,omitempty"` // project domain name of the Open Stack cloud.This is mandatory for Open Stack Credential type. ProjectDomainName *string `json:"project_domain_name,omitempty"` }
UpdateCredentialDisplayFields : Details the fields on the credential. This will change as per credential type selected.
type UpdateCredentialOptions ¶
type UpdateCredentialOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // Credentials status enabled/disbaled. Enabled *bool `json:"enabled,omitempty"` // Credentials type. Type *string `json:"type,omitempty"` // Credentials name. Name *string `json:"name,omitempty"` // Credentials description. Description *string `json:"description,omitempty"` // Details the fields on the credential. This will change as per credential type selected. DisplayFields *UpdateCredentialDisplayFields `json:"display_fields,omitempty"` // Purpose for which the credential is created. Purpose *string `json:"purpose,omitempty"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
UpdateCredentialOptions : The UpdateCredential options.
func (*UpdateCredentialOptions) SetAccountID ¶
func (_options *UpdateCredentialOptions) SetAccountID(accountID string) *UpdateCredentialOptions
SetAccountID : Allow user to set AccountID
func (*UpdateCredentialOptions) SetDescription ¶
func (_options *UpdateCredentialOptions) SetDescription(description string) *UpdateCredentialOptions
SetDescription : Allow user to set Description
func (*UpdateCredentialOptions) SetDisplayFields ¶
func (_options *UpdateCredentialOptions) SetDisplayFields(displayFields *UpdateCredentialDisplayFields) *UpdateCredentialOptions
SetDisplayFields : Allow user to set DisplayFields
func (*UpdateCredentialOptions) SetEnabled ¶
func (_options *UpdateCredentialOptions) SetEnabled(enabled bool) *UpdateCredentialOptions
SetEnabled : Allow user to set Enabled
func (*UpdateCredentialOptions) SetHeaders ¶
func (options *UpdateCredentialOptions) SetHeaders(param map[string]string) *UpdateCredentialOptions
SetHeaders : Allow user to set Headers
func (*UpdateCredentialOptions) SetID ¶
func (_options *UpdateCredentialOptions) SetID(id string) *UpdateCredentialOptions
SetID : Allow user to set ID
func (*UpdateCredentialOptions) SetName ¶
func (_options *UpdateCredentialOptions) SetName(name string) *UpdateCredentialOptions
SetName : Allow user to set Name
func (*UpdateCredentialOptions) SetPurpose ¶
func (_options *UpdateCredentialOptions) SetPurpose(purpose string) *UpdateCredentialOptions
SetPurpose : Allow user to set Purpose
func (*UpdateCredentialOptions) SetTransactionID ¶
func (_options *UpdateCredentialOptions) SetTransactionID(transactionID string) *UpdateCredentialOptions
SetTransactionID : Allow user to set TransactionID
func (*UpdateCredentialOptions) SetType ¶
func (_options *UpdateCredentialOptions) SetType(typeVar string) *UpdateCredentialOptions
SetType : Allow user to set Type
type UpdateProfilesOptions ¶
type UpdateProfilesOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // The name of the profile. Name *string `json:"name,omitempty"` // A description of the profile. Description *string `json:"description,omitempty"` // The base profile that the controls are pulled from. BaseProfile *string `json:"base_profile,omitempty"` // The type of profile. Seed profiles will have type as 'predefined',user generated profiles will be of type 'custom'. Type *string `json:"type,omitempty"` // The profile status. If the profile is enabled, the value is true. If the profile is disabled, the value is false. IsEnabled *bool `json:"is_enabled,omitempty"` // A list of goal/control ids needs to be updated in the profile.These values can be retrieved from // profiles/{profile_id}/controls API call where profile_id of the base_profile should be provided. ControlIds []string `json:"control_ids,omitempty"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
UpdateProfilesOptions : The UpdateProfiles options.
func (*UpdateProfilesOptions) SetAccountID ¶
func (_options *UpdateProfilesOptions) SetAccountID(accountID string) *UpdateProfilesOptions
SetAccountID : Allow user to set AccountID
func (*UpdateProfilesOptions) SetBaseProfile ¶
func (_options *UpdateProfilesOptions) SetBaseProfile(baseProfile string) *UpdateProfilesOptions
SetBaseProfile : Allow user to set BaseProfile
func (*UpdateProfilesOptions) SetControlIds ¶
func (_options *UpdateProfilesOptions) SetControlIds(controlIds []string) *UpdateProfilesOptions
SetControlIds : Allow user to set ControlIds
func (*UpdateProfilesOptions) SetDescription ¶
func (_options *UpdateProfilesOptions) SetDescription(description string) *UpdateProfilesOptions
SetDescription : Allow user to set Description
func (*UpdateProfilesOptions) SetHeaders ¶
func (options *UpdateProfilesOptions) SetHeaders(param map[string]string) *UpdateProfilesOptions
SetHeaders : Allow user to set Headers
func (*UpdateProfilesOptions) SetID ¶
func (_options *UpdateProfilesOptions) SetID(id string) *UpdateProfilesOptions
SetID : Allow user to set ID
func (*UpdateProfilesOptions) SetIsEnabled ¶
func (_options *UpdateProfilesOptions) SetIsEnabled(isEnabled bool) *UpdateProfilesOptions
SetIsEnabled : Allow user to set IsEnabled
func (*UpdateProfilesOptions) SetName ¶
func (_options *UpdateProfilesOptions) SetName(name string) *UpdateProfilesOptions
SetName : Allow user to set Name
func (*UpdateProfilesOptions) SetTransactionID ¶
func (_options *UpdateProfilesOptions) SetTransactionID(transactionID string) *UpdateProfilesOptions
SetTransactionID : Allow user to set TransactionID
func (*UpdateProfilesOptions) SetType ¶
func (_options *UpdateProfilesOptions) SetType(typeVar string) *UpdateProfilesOptions
SetType : Allow user to set Type
type UpdateScopeDetailsOptions ¶
type UpdateScopeDetailsOptions struct { // The id for the given API. ID *string `json:"-" validate:"required,ne="` // Stores the value of scope_name . Name *string `json:"name,omitempty"` // Stores the value of scope_description. Description *string `json:"description,omitempty"` // Your IBM Cloud account ID. AccountID *string `json:"-"` // The unique identifier that is used to trace an entire request. If you omit this field, the service generates and // sends a transaction ID as a response header of the request. TransactionID *string `json:"-"` // Allows users to set headers on API requests Headers map[string]string }
UpdateScopeDetailsOptions : The UpdateScopeDetails options.
func (*UpdateScopeDetailsOptions) SetAccountID ¶
func (_options *UpdateScopeDetailsOptions) SetAccountID(accountID string) *UpdateScopeDetailsOptions
SetAccountID : Allow user to set AccountID
func (*UpdateScopeDetailsOptions) SetDescription ¶
func (_options *UpdateScopeDetailsOptions) SetDescription(description string) *UpdateScopeDetailsOptions
SetDescription : Allow user to set Description
func (*UpdateScopeDetailsOptions) SetHeaders ¶
func (options *UpdateScopeDetailsOptions) SetHeaders(param map[string]string) *UpdateScopeDetailsOptions
SetHeaders : Allow user to set Headers
func (*UpdateScopeDetailsOptions) SetID ¶
func (_options *UpdateScopeDetailsOptions) SetID(id string) *UpdateScopeDetailsOptions
SetID : Allow user to set ID
func (*UpdateScopeDetailsOptions) SetName ¶
func (_options *UpdateScopeDetailsOptions) SetName(name string) *UpdateScopeDetailsOptions
SetName : Allow user to set Name
func (*UpdateScopeDetailsOptions) SetTransactionID ¶
func (_options *UpdateScopeDetailsOptions) SetTransactionID(transactionID string) *UpdateScopeDetailsOptions
SetTransactionID : Allow user to set TransactionID