github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/cse/dedicated/v4/instances/results.go (about) 1 package instances 2 3 // CreateResp is the structure that represents the response of the API request. 4 type CreateResp struct { 5 // Microservice instance ID. 6 ID string `json:"instanceId"` 7 } 8 9 // Instance is the structure that represents the details of the Microservice service instance. 10 type Instance struct { 11 // Host information. 12 HostName string `json:"hostName"` 13 // Access address information. 14 Endpoints []string `json:"endpoints"` 15 // Instance ID, which must be unique. The instance ID is generated by the service center. 16 ID string `json:"instanceId"` 17 // Microservice ID, which must be unique. 18 // During instance creation, use the service ID in the URL instead of the service ID here. 19 ServiceId string `json:"serviceId"` 20 // Microservice version. 21 Version string `json:"version"` 22 // Instance status. Value: UP, DOWN, STARTING, or OUTOFSERVICE. Default value: UP. 23 Status string `json:"status"` 24 // Extended attribute. You can customize a key and value. The value must be at least 1 byte long. 25 Properties map[string]interface{} `json:"properties"` 26 // Health check information. 27 HealthCheck HealthCheck `json:"healthCheck"` 28 // Data center information. 29 DataCenterInfo DataCenter `json:"dataCenterInfo"` 30 // Time when an instance is created, which is automatically generated. 31 Timestamp string `json:"timestamp"` 32 // Update time. 33 ModTimestamp string `json:"modTimestamp"` 34 } 35 36 // ErrorResponse is the structure that represents the details of the request error. 37 type ErrorResponse struct { 38 // Error detail. 39 Detail string `json:"detail"` 40 // Error code. 41 ErrCode string `json:"errorCode"` 42 // Error message. 43 ErrMessage string `json:"errorMessage"` 44 }