GetLoadBalancerOwner
API Request
URLs
GET zstack/v1/load-balancers/{loadBalancerUuid}/ownerHeaders
Authorization: OAuth the-session-uuidCurl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/load-balancers/01a14d335cec36a7b0c36bedc8181465/owner?Request Parameters
| Name | Type | Location | Description | Optional Value | Starting Version |
|---|---|---|---|---|---|
| loadBalancerUuid | String | url | The load balancer UUID. | 5.1.0 | |
| systemTags | List | query | Optional. The system tags. | 5.1.0 | |
| userTags | List | query | Optional. The user tags. | 5.1.0 |
API Response
Sample Response
{
"vpc": {}
}
| Name | Type | Description | Starting Version |
|---|---|---|---|
| success | boolean | Whether the operation succeeded. | 5.1.0 |
| vpc | VpcRouterVmInventory | Seevpc | 5.1.0 |
| vpcHa | VpcHaGroupInventory | SeevpcHa | 5.1.0 |
| slb | SlbGroupInventory | Seeslb | 5.1.0 |
| error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, seeerror | 5.1.0 |
#vpc
| Name | Type | Description | Starting Version |
|---|---|---|---|
| publicNetworkUuid | String | The public network UUID. | 5.1.0 |
| virtualRouterVips | List | The virtual router vips. | 5.1.0 |
| applianceVmType | String | The appliance VM instance type. | 5.1.0 |
| managementNetworkUuid | String | The management network UUID. | 5.1.0 |
| defaultRouteL3NetworkUuid | String | The default route L3 network UUID. | 5.1.0 |
| status | String | The resource status. | 5.1.0 |
| agentPort | Integer | The agent port. | 5.1.0 |
| haStatus | String | The HA status. | 5.1.0 |
| uuid | String | The resource UUID. | 5.1.0 |
| name | String | The resource name. | 5.1.0 |
| description | String | The detailed description of the resource. | 5.1.0 |
| zoneUuid | String | The zone uuid. | 5.1.0 |
| clusterUuid | String | The cluster uuid. | 5.1.0 |
| imageUuid | String | The image uuid. | 5.1.0 |
| hostUuid | String | The host uuid. | 5.1.0 |
| lastHostUuid | String | The last host UUID. | 5.1.0 |
| instanceOfferingUuid | String | The instance offering UUID. | 5.1.0 |
| rootVolumeUuid | String | The root volume uuid. | 5.1.0 |
| platform | String | The platform. | 5.1.0 |
| defaultL3NetworkUuid | String | The default L3 network UUID. | 5.1.0 |
| type | String | The resource type. | 5.1.0 |
| hypervisorType | String | The hypervisor type. | 5.1.0 |
| memorySize | String | The memory size. | 5.1.0 |
| cpuNum | Integer | The number of CPUs. | 5.1.0 |
| cpuSpeed | Long | The CPU speed. | 5.1.0 |
| allocatorStrategy | String | The allocator strategy. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| state | String | The resource state. | 5.1.0 |
| dns | List | Seedns | 5.1.0 |
| haRef | List | See haRef | 5.1.0 |
| vmNics | List | See vmNics | 5.1.0 |
| allVolumes | List | See allVolumes | 5.1.0 |
| allVolumes | List | See allVolumes | 5.1.0 |
#dns
| Name | Type | Description | Starting Version |
|---|---|---|---|
| id | Long | The resource ID. | 5.1.0 |
| vpcRouterUuid | String | The VPC router UUID. | 5.1.0 |
| dns | String | The DNS server address. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#haRef
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| vpcHaRouterUuid | String | The VPC HA router UUID. | 5.1.0 |
#vmNics
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| vmInstanceUuid | String | The VM instance UUID. | 5.1.0 |
| l3NetworkUuid | String | The L3 network UUID | 5.1.0 |
| ip | String | The IP address. | 5.1.0 |
| mac | String | The MAC address. | 5.1.0 |
| hypervisorType | String | The hypervisor type. | 5.1.0 |
| netmask | String | The netmask. | 5.1.0 |
| gateway | String | The gateway IP address. | 5.1.0 |
| metaData | String | The metadata. | 5.1.0 |
| ipVersion | The IP version. | 5.1.0 | |
| driverType | String | The driver type. | 5.1.0 |
| internalName | String | The internal name. | 5.1.0 |
| deviceId | The device ID. | 5.1.0 | |
| type | String | The resource type. | 5.1.0 |
| state | String | The vmNic state. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| usedIps | List | See usedIps | 5.1.0 |
#usedIps
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| ipRangeUuid | String | The ip range UUID | 5.1.0 |
| l3NetworkUuid | String | The L3 network UUID. | 5.1.0 |
| ipVersion | Integer | The IP version. | 5.1.0 |
| ip | String | The IP address. | 5.1.0 |
| netmask | String | The netmask. | 5.1.0 |
| gateway | String | The gateway IP address. | 5.1.0 |
| usedFor | String | The intended use. | 5.1.0 |
| ipInLong | long | The IP address represented as a long integer. | 5.1.0 |
| vmNicUuid | String | The vmNic UUID. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#allVolumes
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| name | String | The resource name. | 5.1.0 |
| description | String | The detailed description of the resource. | 5.1.0 |
| primaryStorageUuid | String | The primary storage UUID. | 5.1.0 |
| vmInstanceUuid | String | The VM instance UUID. | 5.1.0 |
| diskOfferingUuid | String | The disk offering UUID. | 5.1.0 |
| rootImageUuid | String | The root image UUID. | 5.1.0 |
| installPath | String | The installation path. | 5.1.0 |
| type | String | The resource type. | 5.1.0 |
| format | String | The format. | 5.1.0 |
| size | Long | The size. | 5.1.0 |
| actualSize | Long | The actual size. | 5.1.0 |
| deviceId | Integer | The device ID. | 5.1.0 |
| state | String | The resource state. | 5.1.0 |
| status | String | The resource status. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| isShareable | Boolean | Whether the resource is shareable. | 5.1.0 |
| volumeQos | String | The volume QoS. | 5.1.0 |
| lastDetachDate | Timestamp | The last detach date. | 5.1.0 |
| lastVmInstanceUuid | String | The last VM instance UUID. | 5.1.0 |
#vmCdRoms
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| vmInstanceUuid | String | The VM instance UUID. | 5.1.0 |
| deviceId | Integer | The device ID. | 5.1.0 |
| isoUuid | String | The ISO UUID. | 5.1.0 |
| isoInstallPath | String | The ISO install path. | 5.1.0 |
| name | String | The resource name. | 5.1.0 |
| description | String | The detailed description of the resource. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#vpcHa
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| name | String | The resource name. | 5.1.0 |
| description | String | The detailed description of the resource. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| monitors | List | Seemonitors | 5.1.0 |
| vrRefs | List | SeevrRefs | 5.1.0 |
| services | List | Seeservices | 5.1.0 |
| usedIps | List | SeeusedIps | 5.1.0 |
#monitors
| Name | Type | Description | Starting Version |
|---|---|---|---|
| id | Long | The resource ID. | 5.1.0 |
| vpcHaRouterUuid | String | The VPC HA router UUID. | 5.1.0 |
| monitorIp | String | The monitor IP. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#vrRefs
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| vpcHaRouterUuid | String | The VPC HA router UUID. | 5.1.0 |
#services
| Name | Type | Description | Starting Version |
|---|---|---|---|
| id | Long | The resource UUID. | 5.1.0 |
| vpcHaRouterUuid | String | The VPC HA router UUID. | 5.1.0 |
| networkServiceName | String | The network service name. | 5.1.0 |
| networkServiceUuid | String | The network service UUID. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#usedIps
| Name | Type | Description | Starting Version |
|---|---|---|---|
| id | Long | The resource ID. | 5.1.0 |
| vpcHaRouterUuid | String | The VPC HA router UUID. | 5.1.0 |
| vipUuid | String | VIP UUID. | 5.1.0 |
| l3NetworkUuid | String | The L3 network UUID. | 5.1.0 |
| ip | String | The IP address. | 5.1.0 |
| netmask | String | The netmask. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#slb
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| name | String | The resource name. | 5.1.0 |
| backendType | String | The backend type. | 5.1.0 |
| deployType | String | The deploy type. | 5.1.0 |
| slbOfferingUuid | String | The slb offering UUID. | 5.1.0 |
| description | String | The detailed description of the resource. | 5.1.0 |
| configVersion | Long | The config version. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| slbVms | List | See slbVms | 5.1.0 |
| lbs | List | See lbs | 5.1.0 |
| networks | List | See networks | 5.1.0 |
| monitorIps | List | See monitorIps | 5.1.0 |
#slbVms
| Name | Type | Description | Starting Version |
|---|---|---|---|
| slbGroupUuid | String | The slb group UUID. | 5.1.0 |
| configVersion | String | The config version. | 5.1.0 |
| publicNetworkUuid | String | The public network UUID. | 5.1.0 |
| virtualRouterVips | List | The virtual router vips. | 5.1.0 |
| applianceVmType | String | The appliance VM instance type. | 5.1.0 |
| managementNetworkUuid | String | The management network UUID. | 5.1.0 |
| defaultRouteL3NetworkUuid | String | The default route L3 network UUID. | 5.1.0 |
| status | String | The resource status. | 5.1.0 |
| agentPort | Integer | The agent port. | 5.1.0 |
| haStatus | String | The HA status. | 5.1.0 |
| uuid | String | The resource UUID. | 5.1.0 |
| name | String | The resource name. | 5.1.0 |
| description | String | The detailed description of the resource. | 5.1.0 |
| zoneUuid | String | The zone UUID. | 5.1.0 |
| clusterUuid | String | The cluster UUID. | 5.1.0 |
| imageUuid | String | The image UUID. | 5.1.0 |
| hostUuid | String | The host UUID. | 5.1.0 |
| lastHostUuid | String | The last host UUID. | 5.1.0 |
| instanceOfferingUuid | String | The instance offering UUID. | 5.1.0 |
| rootVolumeUuid | String | The root volume UUID. | 5.1.0 |
| platform | String | The platform. | 5.1.0 |
| architecture | String | The architecture. | 5.1.0 |
| defaultL3NetworkUuid | String | The default L3 network UUID. | 5.1.0 |
| type | String | The resource type. | 5.1.0 |
| hypervisorType | String | The hypervisor type. | 5.1.0 |
| memorySize | Long | The memory size. | 5.1.0 |
| reservedMemorySize | Long | The reserved memory size. | 5.1.0 |
| cpuNum | Integer | The number of CPUs. | 5.1.0 |
| cpuSpeed | Long | The CPU speed. | 5.1.0 |
| allocatorStrategy | String | The allocator strategy. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| state | String | The resource state. | 5.1.0 |
| guestOsType | String | The guest OS type. | 5.1.0 |
| configTasks | List | See configTasks | 5.1.0 |
| vmNics | List | See vmNics | 5.1.0 |
| allVolumes | List | See allVolumes | 5.1.0 |
| vmCdRoms | List | See vmCdRoms | 5.1.0 |
#configTasks
| Name | Type | Description | Starting Version |
|---|---|---|---|
| vmInstanceUuid | String | The VM instance UUID. | 5.1.0 |
| configVersion | long | The config version. | 5.1.0 |
| taskName | String | The task name. | 5.1.0 |
| taskData | String | The task data. | 5.1.0 |
| retryNumber | long | The number of retry. | 5.1.0 |
| lastFailedReason | String | The last failed reason. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| status | SlbVmInstanceConfigTaskStatus | See status | 5.1.0 |
#status
| Name | Type | Description | Starting Version |
|---|---|---|---|
| Pending | SlbVmInstanceConfigTaskStatus | The Pending value. | 5.1.0 |
| Starting | SlbVmInstanceConfigTaskStatus | The Starting value. | 5.1.0 |
| Success | SlbVmInstanceConfigTaskStatus | The Success value. | 5.1.0 |
| Failed | SlbVmInstanceConfigTaskStatus | The Failed value. | 5.1.0 |
#vmNics
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| vmInstanceUuid | String | The VM instance UUID. | 5.1.0 |
| l3NetworkUuid | String | The L3 network UUID. | 5.1.0 |
| ip | String | The IP address. | 5.1.0 |
| mac | String | The MAC address. | 5.1.0 |
| hypervisorType | String | The hypervisor type. | 5.1.0 |
| netmask | String | The netmask. | 5.1.0 |
| gateway | String | The gateway IP address. | 5.1.0 |
| metaData | String | The metadata. | 5.1.0 |
| ipVersion | The IP version. | 5.1.0 | |
| driverType | String | The driver type. | 5.1.0 |
| internalName | String | The internal name. | 5.1.0 |
| deviceId | The device ID. | 5.1.0 | |
| type | String | The resource type. | 5.1.0 |
| state | String | The vmNic state. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| usedIps | List | See usedIps | 5.1.0 |
#lbs
| Name | Type | Description | Starting Version |
|---|---|---|---|
| slbGroupUuid | String | The slb group UUID. | 5.1.0 |
| name | String | The resource name. | 5.1.0 |
| uuid | String | The resource UUID. | 5.1.0 |
| description | String | The detailed description of the resource. | 5.1.0 |
| serverGroupUuid | String | The server group UUID. | 5.1.0 |
| state | String | The resource state. | 5.1.0 |
| type | String | The resource type. | 5.1.0 |
| vipUuid | String | VIP UUID. | 5.1.0 |
| ipv6VipUuid | String | The ipv 6 VIP UUID. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| listeners | List | See listeners | 5.1.0 |
#listeners
| Name | Type | Description | Starting Version |
|---|---|---|---|
| uuid | String | The resource UUID. | 5.1.0 |
| name | String | The resource name. | 5.1.0 |
| description | String | The detailed description of the resource. | 5.1.0 |
| loadBalancerUuid | String | The load balancer UUID. | 5.1.0 |
| instancePort | Integer | The instance port. | 5.1.0 |
| loadBalancerPort | Integer | The load balancer port. | 5.1.0 |
| protocol | String | The protocol. | 5.1.0 |
| serverGroupUuid | String | The server group UUID. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
| vmNicRefs | List | See vmNicRefs | 5.1.0 |
| aclRefs | List | See aclRefs | 5.1.0 |
| certificateRefs | List | See certificateRefs | 5.1.0 |
| serverGroupRefs | List | See serverGroupRefs | 5.1.0 |
#vmNicRefs
| Name | Type | Description | Starting Version |
|---|---|---|---|
| id | Long | The resource ID. | 5.1.0 |
| listenerUuid | String | The listener UUID. | 5.1.0 |
| vmNicUuid | String | The vmNic UUID. | 5.1.0 |
| status | String | The resource status. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#aclRefs
| Name | Type | Description | Starting Version |
|---|---|---|---|
| id | Long | The resource UUID. | 5.1.0 |
| listenerUuid | String | The listener UUID. | 5.1.0 |
| aclUuid | String | The acl UUID. | 5.1.0 |
| type | String | The type. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#certificateRefs
| Name | Type | Description | Starting Version |
|---|---|---|---|
| id | Long | The resource ID. | 5.1.0 |
| listenerUuid | String | The listener UUID. | 5.1.0 |
| certificateUuid | String | The certificate UUID. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#serverGroupRefs
| Name | Type | Description | Starting Version |
|---|---|---|---|
| id | Long | The resource ID. | 5.1.0 |
| listenerUuid | String | The listener UUID. | 5.1.0 |
| serverGroupUuid | String | The server group UUID. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#networks
| Name | Type | Description | Starting Version |
|---|---|---|---|
| slbGroupUuid | String | The slb group UUID. | 5.1.0 |
| l3NetworkUuid | String | The L3 network UUID. | 5.1.0 |
| l3NetworkCategory | String | The L3 network category. | 5.1.0 |
| l3NetworkType | String | The L3 network type. | 5.1.0 |
| type | String | The resource type. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#monitorIps
| Name | Type | Description | Starting Version |
|---|---|---|---|
| id | Long | The resource ID. | 5.1.0 |
| slbGroupUuid | String | The slb group UUID. | 5.1.0 |
| monitorIp | String | The monitor IP. | 5.1.0 |
| createDate | Timestamp | The creation date. | 5.1.0 |
| lastOpDate | Timestamp | The last operation date. | 5.1.0 |
#error
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 5.1.0 |
| description | String | The brief description of the error. | 5.1.0 |
| details | String | The details about the error. | 5.1.0 |
| elaboration | String | The reserved field. Default value: null. | 5.1.0 |
| opaque | LinkedHashMap | The reserved field. Default value: null. | 5.1.0 |
| cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 5.1.0 |
SDK Sample
Java
SDK
GetLoadBalancerOwnerAction action = new GetLoadBalancerOwnerAction();
action.loadBalancerUuid = "01a14d335cec36a7b0c36bedc8181465";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetLoadBalancerOwnerAction.Result res = action.call();
Python
SDK
action = GetLoadBalancerOwnerAction()
action.loadBalancerUuid = "01a14d335cec36a7b0c36bedc8181465"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()
