github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/css/v1/clusters/results.go (about) 1 package clusters 2 3 import ( 4 "github.com/opentelekomcloud/gophertelekomcloud/openstack/common/tags" 5 ) 6 7 type Cluster struct { 8 Datastore Datastore `json:"datastore"` 9 Instances []Instance `json:"instances"` 10 Updated string `json:"updated"` 11 Name string `json:"name"` 12 Created string `json:"created"` 13 ID string `json:"id"` 14 Status string `json:"status"` 15 Endpoint string `json:"endpoint"` 16 ActionProgress map[string]string `json:"actionProgress"` 17 Actions []string `json:"actions"` 18 FailedReasons *FailedReasons `json:"failed_reasons"` 19 HttpsEnabled bool `json:"httpsEnable"` 20 AuthorityEnabled bool `json:"authorityEnable"` 21 DiskEncrypted bool `json:"diskEncrypted"` 22 CmkID string `json:"cmkId"` 23 VpcID string `json:"vpcId"` 24 SubnetID string `json:"subnetId"` 25 SecurityGroupID string `json:"securityGroupId"` 26 Tags []tags.ResourceTag `json:"tags"` 27 PublicKibana *PublicKibana `json:"publicKibanaResp"` 28 PublicNetwork *PublicNetwork `json:"elbWhiteList"` 29 PublicIp string `json:"publicIp"` 30 VpcEpIp string `json:"vpcepIp"` 31 BandwidthSize int `json:"bandwidthSize"` 32 BackupAvailable bool `json:"backupAvailable"` 33 } 34 35 type Datastore struct { 36 // Version - engine version. 37 // The default value is 7.6.2. 38 Version string `json:"version" required:"true"` 39 // Type - Engine type. 40 // The default value is `elasticsearch`. 41 Type string `json:"type,omitempty"` 42 } 43 44 type Instance struct { 45 Type string `json:"type"` 46 ID string `json:"id"` 47 Name string `json:"name"` 48 Status string `json:"status"` 49 SpecCode string `json:"specCode"` 50 AvailabilityZone string `json:"azCode"` 51 Volume *ShowClusterVolume `json:"volume"` 52 } 53 54 type PublicKibana struct { 55 // Bandwidth range. Unit: Mbit/s 56 Bandwidth int `json:"eipSize"` 57 // Kibana public network access information. 58 ElbWhiteList *PublicNetwork `json:"elbWhiteListResp"` 59 // Specifies the IP address for accessing Kibana. 60 PublicIp string `json:"publicKibanaIp"` 61 } 62 63 type PublicNetwork struct { 64 // Whether the public network access control is enabled. 65 // true: Public network access control is enabled. 66 // false: Public network access control is disabled. 67 Enabled bool `json:"enableWhiteList"` 68 // Whitelist of public network for accessing Kibana. 69 Whitelist string `json:"whiteList"` 70 } 71 72 type ShowClusterVolume struct { 73 // Instance disk type 74 Type string `json:"type"` 75 // Instance disk size 76 Size int `json:"size"` 77 } 78 79 type FailedReasons struct { 80 ErrorCode string `json:"errorCode"` 81 ErrorMessage string `json:"errorMsg"` 82 }