QueryPropertyReference class
The QueryPropertyReference class represents a property reference in a query.
QueryPropertyReference class APIs
The following tables list the basic APIs, operation APIs, and relationship APIs for the QueryPropertyReference class.
Basic APIs
Operation APIs
The QueryPropertyReference class has no operation APIs.
Relationship APIs
The QueryPropertyReference class has no relationship APIs.
QueryPropertyReference class relationships and attributes
The following tables list the relationships and attributes of the QueryPropertyReference class.
Relationships
Attributes
Examples
The following code snippet shows a simple query condition that searches for all the objects whose name EQUALS “2 vCPU”:
"timeout": -1,
"preCallout": "",
"postCallout": "",
"callbackURL": "",
"operationParams":
[
{
"name": "criteria",
"type": "com.bmc.cloud.model.beans.Query",
"multiplicity": "1",
"value":
{
"cloudClass": "com.bmc.cloud.model.beans.QuerySelect",
"children":
[
{
"cloudClass": "com.bmc.cloud.model.beans.QuerySimpleCondition",
"children":
[
{
"cloudClass": "com.bmc.cloud.model.beans.QueryPropertyReference",
"guid": "GUID1",
"references": [ "name" ]
},
{
"cloudClass": "com.bmc.cloud.model.beans.QueryLiteral",
"guid": "GUID2",
"type": "java.lang.String",
"values": [ "2 vCPU" ]
}
],
"guid": "GUID3",
"operator": "EQUALS"
}
],
"fromClass": "com.bmc.cloud.model.beans.OptionChoice",
"guid": "GUID4"
}
}
]
}
The following code snippet shows a simple query condition that retrieves information based on orderBy, pageSize, and pageNumber:
"timeout":-1,
"preCallout":"",
"postCallout":"",
"operationParams":[
{
"name":"criteria",
"type":"com.bmc.cloud.model.beans.Query",
"multiplicity":"1",
"value":{
"cloudClass":"com.bmc.cloud.model.beans.QuerySelect",
"children":[
{
"cloudClass":"com.bmc.cloud.model.beans.QuerySimpleCondition",
"children":[
{
"cloudClass":"com.bmc.cloud.model.beans.QueryPropertyReference",
"guid":"096edf88-880d-4f24-9999-870660cadf04",
"references":[
"loadBalancer",
"guid"
]
},
{
"cloudClass":"com.bmc.cloud.model.beans.QueryLiteral",
"guid":"804c35f6-db4b-4b79-ab43-f274ffe3dd62",
"type":"java.lang.String",
"values":[
"361dca52-8fb7-4a3b-b69c-25fa1d787504"
]
}
],
"guid":"b787ddcd-d769-4956-8bc4-771f8d33bbe0",
"operator":"EQUALS"
}
],
"fromClass":"com.bmc.cloud.model.beans.LoadBalancerPool",
"guid":"fc659427-40be-4edc-afec-ff39c61b14ee"
}
},
{
"name":"orderBy",
"value":"guid",
"type":"java.lang.String",
"multiplicity":"1"
},
{
"name":"pageSize",
"value":1000,
"type":"java.lang.Integer",
"multiplicity":"1"
},
{
"name":"pageNumber",
"value":0,
"type":"java.lang.Integer",
"multiplicity":"1"
},
{
"multiplicity":"1",
"name":"isOnboarded",
"value":false,
"type":"java.lang.Boolean"
},
{
"multiplicity":"1",
"name":"fillFields",
"value":"name,guid,provider,clientPortNumber,networkLabel,transportProtocol,virtualIPAddress,clientNetworkInterface,serverNetworkInterface,loadBalancer,resourceSet",
"type":"java.lang.String"
}
]
}
The following code snippet shows a simple query condition that searches for all the objects whose value EQUALS to a customized callout name, for example, "PSL_AOCallout_CC_ShutdownRestart”:
"operationParams" : [
{
"multiplicity" : "1",
"name" : "criteria",
"type" : "com.bmc.cloud.model.beans.QueryNode",
"value" : {
"children" : [
{
"children" : [
{
"cloudClass" : "com.bmc.cloud.model.beans.QueryNode",
"nodeType" : "QueryPropertyReference",
"references" : [
"name"
]
},
{
"cloudClass" : "com.bmc.cloud.model.beans.QueryNode",
"nodeType" : "QueryLiteral",
"type" : "java.lang.String",
"values" : [
"PSL_AOCallout_CC_ShutdownRestart"
]
}
],
"cloudClass" : "com.bmc.cloud.model.beans.QueryNode",
"nodeType" : "QuerySimpleCondition",
"simpleOperator" : "EQUALS"
}
],
"cloudClass" : "com.bmc.cloud.model.beans.QueryNode",
"fromClass" : "com.bmc.cloud.model.beans.Callout",
"nodeType" : "QuerySelect"
}
}
],
"postCallout" : "",
"preCallout" : "",
"timeout" : -1
}