Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArkSecHubSecret ¶
type ArkSecHubSecret struct {
VendorType string `` /* 146-byte string literal not displayed */
VendorSubType string `` /* 160-byte string literal not displayed */
ID string `json:"id" mapstructure:"id" desc:"The unique identifier of the secret in Secrets Hub (internal). " validate:"required"`
OriginID string `` /* 136-byte string literal not displayed */
Name string `json:"name,omitempty" mapstructure:"name,omitempty" desc:"The name of the secret as defined in the secret store."`
StoreID string `json:"store_id" mapstructure:"store_id" desc:"The unique identifier of the secret store"`
DiscoveredAt string `` /* 130-byte string literal not displayed */
VendorData ArkSecHubSecretVendorData `` /* 131-byte string literal not displayed */
LastScannedAt string `` /* 184-byte string literal not displayed */
StoreName string `json:"store_name,omitempty" mapstructure:"store_name,omitempty" desc:"Name of the secret store"`
Onboarded bool `json:"onboarded,omitempty" mapstructure:"onboarded,omitempty" desc:"Indicates whether the secret is onboarded to PAM."`
SyncedByCyberArk bool `` /* 159-byte string literal not displayed */
}
ArkSecHubSecret represents a single secret in the response.
type ArkSecHubSecretVendorData ¶
type ArkSecHubSecretVendorData struct {
// AWS specific vendor data
AwsAccountID string `json:"aws_account_id,omitempty" mapstructure:"aws_account_id,omitempty" desc:""`
// Azure specific vendor data
SubscriptionID string `` /* 150-byte string literal not displayed */
SubsciptionName string `` /* 164-byte string literal not displayed */
ResourceGroupName string `` /* 157-byte string literal not displayed */
NotBefore string `` /* 158-byte string literal not displayed */
// GCP specific vendor data
ProjectName string `` /* 139-byte string literal not displayed */
ProjectNumber string `` /* 145-byte string literal not displayed */
SecretEnabledVersions int `` /* 176-byte string literal not displayed */
SecretType string `json:"secret_type,omitempty" mapstructure:"secret_type,omitempty" desc:"(GLOBAL,REGIONAL)" choices:"GLOBAL,REGIONAL"`
Replicas ArkSecHubSecretVendorDataReplicas `json:"replicas,omitzero" mapstructure:"replicas,omitzero" desc:"If the secret is being replicated, and to where."`
NextRotationTime string `` /* 172-byte string literal not displayed */
Annotations map[string]string `json:"annotations,omitempty" mapstructure:"" desc:"The annotations that are applied to the secret in external secret store."`
ReplicationMethod string `` /* 152-byte string literal not displayed */
// Shared or common objects
Tags map[string]string `json:"tags,omitzero" mapstructure:"tags,omitzero" desc:"The tags that are applied to the secret in the secret store."`
CreatedAt string `json:"created_at" mapstructure:"created_at" desc:"The date and time the secret was created in the secret store."`
Enabled bool `` /* 126-byte string literal not displayed */
ExpiresAt string `` /* 151-byte string literal not displayed */
KmsKeyID string `` /* 162-byte string literal not displayed */
UpdatedAt string `json:"updated_at" mapstructure:"updated_at" desc:"The date and time the secret was last updated."`
LastRetrievedAt string `` /* 135-byte string literal not displayed */
Region string `json:"region,omitempty" mapstructure:"region,omitempty" desc:"Cloud Service Provider Region"`
}
ArkSecHubSecretVendorData represents the vendor-specific data for a secret.
type ArkSecHubSecretVendorDataReplicas ¶
type ArkSecHubSecretVendorDataReplicas struct {
Location string `json:"location,omitempty" mapstructure:"location,omitempty" desc:"Locations secrets are replicated to"`
}
ArkSecHubSecretVendorDataReplicas defines the structure for the replicas field in the vendor data of a secret.
type ArkSecHubSecretsFilter ¶
type ArkSecHubSecretsFilter struct {
Projection string `` /* 190-byte string literal not displayed */
Filter string `json:"filter,omitempty" mapstructure:"filter,omitempty" desc:"Filter to apply" flag:"filter"`
Sort string `json:"sort,omitempty" mapstructure:"sort,omitempty" desc:"Sort results by given key" flag:"sort"`
Offset int `` /* 165-byte string literal not displayed */
Limit int `` /* 133-byte string literal not displayed */
}
ArkSecHubSecretsFilter represents the filter options for accounts.
type ArkSecHubSecretsStats ¶
type ArkSecHubSecretsStats struct {
SecretsCount int `json:"secrets_count" mapstructure:"secrets_count" desc:"Overall secrets count"`
SecretsCountByVendorType map[string]int `json:"secrets_count_by_vendor_type" mapstructure:"secrets_count_by_vendor_type" desc:"Secrets count by vendor type"`
SecretsCountByStoreName map[string]int `json:"secrets_count_by_store_name" mapstructure:"secrets_count_by_store_name" desc:"Secrets count by store name"`
SecretsCountSyncedByCyberArk int `` /* 139-byte string literal not displayed */
SecretsCountNotSyncedByCyberArk int `` /* 151-byte string literal not displayed */
}
ArkSecHubSecretsStats represents the response when getting secrets statistics from SecHub.
Click to show internal directories.
Click to hide internal directories.