Reference for RimuHosting's Data Structures (as used in our REST-ful APIs)

Name: OrderFilter

Criteria on which to filter orders.  e.g. include_inactive=N;search=text;server_type=PHYSICAL

XML Example:
<OrderFilter>
  <active_for_less_than_n_days>xsd:int</active_for_less_than_n_days>
  <active_for_more_than_n_days>xsd:int</active_for_more_than_n_days>
  <balance_owing_filter>com.redrata.billing.StatementBalance.StatementBalanceFilter</balance_owing_filter>
  zero or N[<billing_methods>TS_CC | TS_PAYPAL | TS_BANK | TS_WIRE | TS_OTHER | TS_INVOICE</billing_methods>]
  <billing_oid>xsd:long</billing_oid>
  <cancellation_after>java.sql.Timestamp</cancellation_after>
  <cancellation_after_or_null>java.sql.Timestamp</cancellation_after_or_null>
  <cancellation_before>java.sql.Timestamp</cancellation_before>
  <cc_expires_on_after>java.sql.Timestamp</cc_expires_on_after>
  <control_panel>xsd:string</control_panel>
  <cur>CUR_USD | CUR_NZD | CUR_AUD | CUR_CAD | CUR_GBP | CUR_EUR</cur>
  <data_center>DCRUSKO | DCEV1 | DCDALLAS | DCOZSERVERS | DCDEDIFAST | DCEZZI | DCPOUNDHOST | DCGNAX | DCINTERVOLVE | DCSERVERSAUSTRALIA | DCSOFTLAYER | DCHOSTINGDIRECT</data_center>
  <data_center_location>DCDALLAS | DCDALLAS2 | DCHOUSTON | DCATLANTA | DCLONDON | DCLONDON2 | DCSYDNEY | DCBRISBANE | DCNEWCASTLE | DCAUCKLAND | DCNY | DCNY2</data_center_location>
  zero or N[<data_centers>DCRUSKO | DCEV1 | DCDALLAS | DCOZSERVERS | DCDEDIFAST | DCEZZI | DCPOUNDHOST | DCGNAX | DCINTERVOLVE | DCSERVERSAUSTRALIA | DCSOFTLAYER | DCHOSTINGDIRECT</data_centers>]
  <ded_server_type>DST_REGULAR | DST_ONEVPS | DST_MULTIVPS</ded_server_type>
  zero or N[<ded_server_types>DST_REGULAR | DST_ONEVPS | DST_MULTIVPS</ded_server_types>]
  <distro>xsd:string</distro>
  <does_idle_host_require_decommissioning>xsd:boolean</does_idle_host_require_decommissioning>
  <domain_name>xsd:string</domain_name>
  <domain_name_like>xsd:string</domain_name_like>
  <exclude_host_server>xsd:string</exclude_host_server>
  zero or N[<exclude_these_order_oids>xsd:long</exclude_these_order_oids>]
  <has_ip>xsd:boolean</has_ip>
  <has_pause_billing_note>xsd:boolean</has_pause_billing_note>
  <has_prepaid_until>xsd:boolean</has_prepaid_until>
  <has_setup_queue_entry>xsd:boolean</has_setup_queue_entry>
  <host_ip>xsd:string</host_ip>
  <host_server>xsd:string</host_server>
  zero or N[<host_server_plans>ST_REGULAR | ST_XEN | ST_UML | ST_XENLOWCONTENTION</host_server_plans>]
  zero or N[<host_servers>xsd:string</host_servers>]
  <include_inactive>xsd:boolean</include_inactive>
  <include_maybe_active_plesk_key>xsd:boolean</include_maybe_active_plesk_key>
  <include_suspended>xsd:boolean</include_suspended>
  <ip>xsd:string</ip>
  zero or N[<ip_pool_oids>xsd:long</ip_pool_oids>]
  <ip_slash_cidr>xsd:string</ip_slash_cidr>
  zero or N[<ips>xsd:string</ips>]
  <is_dedicated_server>xsd:boolean</is_dedicated_server>
  <is_host_decommissioned>xsd:boolean</is_host_decommissioned>
  <is_paypal_sub_active>xsd:boolean</is_paypal_sub_active>
  <is_setup_pending>xsd:boolean</is_setup_pending>
  zero or N[<location_oids>xsd:long</location_oids>]
  <max_days_active>xsd:int</max_days_active>
  <min_days_active>xsd:int</min_days_active>
  <monthly_billing_from>xsd:double</monthly_billing_from>
  <monthly_billing_to>xsd:double</monthly_billing_to>
  <order_by>CANCEL_DATE | USER_NAME | ORDER_DATE | DOMAIN | CUSTOMER_ACTIVE_BILLED_DOMAIN</order_by>
  zero or N[<order_oids>xsd:long</order_oids>]
  <ordered_after>java.sql.Timestamp</ordered_after>
  <ordered_before>java.sql.Timestamp</ordered_before>
  <params_search>xsd:string</params_search>
  <plan>xsd:string</plan>
  <prepaid_until_after>java.sql.Timestamp</prepaid_until_after>
  <prepaid_until_before>java.sql.Timestamp</prepaid_until_before>
  <search>xsd:string</search>
  <server_psu>PSU_REGULAR | PSU_REDUNDANT_PSU | PSU_REDUNDANT_POWER</server_psu>
  <server_type>PHYSICAL | VPS</server_type>
  <server_user_name>xsd:string</server_user_name>
  <user_oid>xsd:long</user_oid>
  zero or N[<user_oids>xsd:long</user_oids>]
  <vps_type>LOW_CONTENTION | REGULAR | DEDICATED</vps_type>
</OrderFilter>
JSON Example:
{"OrderFilter":
 {
   "active_for_less_than_n_days": Number,
   "active_for_more_than_n_days": Number,
   "balance_owing_filter": com.redrata.billing.StatementBalance.StatementBalanceFilter,
   "billing_methods": ['TS_CC' | 'TS_PAYPAL' | 'TS_BANK' | 'TS_WIRE' | 'TS_OTHER' | 'TS_INVOICE'],
   "billing_oid": Number,
   "cancellation_after": java.sql.Timestamp,
   "cancellation_after_or_null": java.sql.Timestamp,
   "cancellation_before": java.sql.Timestamp,
   "cc_expires_on_after": java.sql.Timestamp,
   "control_panel": String,
   "cur": 'CUR_USD' | 'CUR_NZD' | 'CUR_AUD' | 'CUR_CAD' | 'CUR_GBP' | 'CUR_EUR',
   "data_center": 'DCRUSKO' | 'DCEV1' | 'DCDALLAS' | 'DCOZSERVERS' | 'DCDEDIFAST' | 'DCEZZI' | 'DCPOUNDHOST' | 'DCGNAX' | 'DCINTERVOLVE' | 'DCSERVERSAUSTRALIA' | 'DCSOFTLAYER' | 'DCHOSTINGDIRECT',
   "data_center_location": 'DCDALLAS' | 'DCDALLAS2' | 'DCHOUSTON' | 'DCATLANTA' | 'DCLONDON' | 'DCLONDON2' | 'DCSYDNEY' | 'DCBRISBANE' | 'DCNEWCASTLE' | 'DCAUCKLAND' | 'DCNY' | 'DCNY2',
   "data_centers": ['DCRUSKO' | 'DCEV1' | 'DCDALLAS' | 'DCOZSERVERS' | 'DCDEDIFAST' | 'DCEZZI' | 'DCPOUNDHOST' | 'DCGNAX' | 'DCINTERVOLVE' | 'DCSERVERSAUSTRALIA' | 'DCSOFTLAYER' | 'DCHOSTINGDIRECT'],
   "ded_server_type": 'DST_REGULAR' | 'DST_ONEVPS' | 'DST_MULTIVPS',
   "ded_server_types": ['DST_REGULAR' | 'DST_ONEVPS' | 'DST_MULTIVPS'],
   "distro": String,
   "does_idle_host_require_decommissioning": Boolean,
   "domain_name": String,
   "domain_name_like": String,
   "exclude_host_server": String,
   "exclude_these_order_oids": [Number],
   "has_ip": Boolean,
   "has_pause_billing_note": Boolean,
   "has_prepaid_until": Boolean,
   "has_setup_queue_entry": Boolean,
   "host_ip": String,
   "host_server": String,
   "host_server_plans": ['ST_REGULAR' | 'ST_XEN' | 'ST_UML' | 'ST_XENLOWCONTENTION'],
   "host_servers": [String],
   "include_inactive": Boolean,
   "include_maybe_active_plesk_key": Boolean,
   "include_suspended": Boolean,
   "ip": String,
   "ip_pool_oids": [Number],
   "ip_slash_cidr": String,
   "ips": [String],
   "is_dedicated_server": Boolean,
   "is_host_decommissioned": Boolean,
   "is_paypal_sub_active": Boolean,
   "is_setup_pending": Boolean,
   "location_oids": [Number],
   "max_days_active": Number,
   "min_days_active": Number,
   "monthly_billing_from": Number,
   "monthly_billing_to": Number,
   "order_by": 'CANCEL_DATE' | 'USER_NAME' | 'ORDER_DATE' | 'DOMAIN' | 'CUSTOMER_ACTIVE_BILLED_DOMAIN',
   "order_oids": [Number],
   "ordered_after": java.sql.Timestamp,
   "ordered_before": java.sql.Timestamp,
   "params_search": String,
   "plan": String,
   "prepaid_until_after": java.sql.Timestamp,
   "prepaid_until_before": java.sql.Timestamp,
   "search": String,
   "server_psu": 'PSU_REGULAR' | 'PSU_REDUNDANT_PSU' | 'PSU_REDUNDANT_POWER',
   "server_type": 'PHYSICAL' | 'VPS',
   "server_user_name": String,
   "user_oid": Number,
   "user_oids": [Number],
   "vps_type": 'LOW_CONTENTION' | 'REGULAR' | 'DEDICATED',
 }
}

Elements
NameTypeRequiredNillableDefault ValueDescription
active_for_less_than_n_daysxsd:intfalsefalse 
active_for_more_than_n_daysxsd:intfalsefalse 
balance_owing_filtercom.redrata.billing.StatementBalance.StatementBalanceFilterfalsefalse 
billing_methodszero or N[TS_CC | TS_PAYPAL | TS_BANK | TS_WIRE | TS_OTHER | TS_INVOICE]falsefalseMatches only servers that use the selected billing method types.
billing_oidxsd:longfalsefalseMatches only servers that use the this billing method instance.
cancellation_afterjava.sql.TimestampfalsefalseMatches only servers with cancellation dates set where the cancellation date is after this value.
cancellation_after_or_nulljava.sql.TimestampfalsefalseMatches servers with with no cancellation date set, as well as servers with a cancellation date set where that date is after this value.
cancellation_beforejava.sql.TimestampfalsefalseMatches servers with a cancellation date set that is before this value.
cc_expires_on_afterjava.sql.TimestampfalsefalseMatches orders set to bill via credit cards where those credit cards expire on or after this date.
control_panelxsd:stringfalsefalseMatches only servers with this control panel (e.g.
curCUR_USD | CUR_NZD | CUR_AUD | CUR_CAD | CUR_GBP | CUR_EURfalsefalse 
data_centerDCRUSKO | DCEV1 | DCDALLAS | DCOZSERVERS | DCDEDIFAST | DCEZZI | DCPOUNDHOST | DCGNAX | DCINTERVOLVE | DCSERVERSAUSTRALIA | DCSOFTLAYER | DCHOSTINGDIRECTfalsefalseMatches only servers located in this data center.
data_center_locationDCDALLAS | DCDALLAS2 | DCHOUSTON | DCATLANTA | DCLONDON | DCLONDON2 | DCSYDNEY | DCBRISBANE | DCNEWCASTLE | DCAUCKLAND | DCNY | DCNY2falsefalseMatches only servers located in this data center location.
data_centerszero or N[DCRUSKO | DCEV1 | DCDALLAS | DCOZSERVERS | DCDEDIFAST | DCEZZI | DCPOUNDHOST | DCGNAX | DCINTERVOLVE | DCSERVERSAUSTRALIA | DCSOFTLAYER | DCHOSTINGDIRECT]falsefalse 
ded_server_typeDST_REGULAR | DST_ONEVPS | DST_MULTIVPSfalsefalse 
ded_server_typeszero or N[DST_REGULAR | DST_ONEVPS | DST_MULTIVPS]falsefalse 
distroxsd:stringfalsefalseMatches only servers with this distro.
does_idle_host_require_decommissioningxsd:booleanfalsefalse 
domain_namexsd:stringfalsefalsesearch based on domain
domain_name_likexsd:stringfalsefalsesearch based on domain name
exclude_host_serverxsd:stringfalsefalseMatches any server that does not have this host server set as its physical server.
exclude_these_order_oidszero or N[xsd:long]falsefalseExclude servers with these order ids from the result.
has_ipxsd:booleanfalsefalsetrue matches only servers that have IPs set, null for does not matter, false to match only servers with no IPs set.
has_pause_billing_notexsd:booleanfalsefalseWhen set to true, only return servers that are paused for billing by the billing administrators.
has_prepaid_untilxsd:booleanfalsefalseMatches only servers that have a prepaid date set (whether in the past of the future).
has_setup_queue_entryxsd:booleanfalsefalse 
host_ipxsd:stringfalsefalseMatches a physical server main IP
host_serverxsd:stringfalsefalseMatches a physical server's id.
host_server_planszero or N[ST_REGULAR | ST_XEN | ST_UML | ST_XENLOWCONTENTION]falsefalseMatches a physical server's type.
host_serverszero or N[xsd:string]falsefalseMatches a physical server's id.
include_inactivexsd:booleanfalsefalsetrue for only inactive servers, null for 'does not matter', false for only active servers.
include_maybe_active_plesk_keyxsd:booleanfalsefalseTypically also needs include_inactive=Y to find servers with keys allocated to it.
include_suspendedxsd:booleanfalsefalsetrue for suspended servers only, null for 'does not matter', false for only non-suspended servers.
ipxsd:stringfalsefalseMatches a server with a primary or secondary IP matching this IP.
ip_pool_oidszero or N[xsd:long]falsefalseMatch only servers with these IP pool ids.
ip_slash_cidrxsd:stringfalsefalseFind a server based on it being inside a netblock e.g.
ipszero or N[xsd:string]falsefalseMatches a server with a primary or secondary IP matching one of these IPs.
is_dedicated_serverxsd:booleanfalsefalseWhen true matches servers if they are a customer's dedicated server (but not if it is a VPS on a customer's dedicated server).
is_host_decommissionedxsd:booleanfalsefalseMatches only servers on hosts marked as decommissioned
is_paypal_sub_activexsd:booleanfalsefalsetrue for servers paid with an active paypal subscription, null for 'does not matter', false for serves paid via paypal but with no active paypal subscription
is_setup_pendingxsd:booleanfalsefalsetrue to match only servers that are probably not setup yet.
location_oidszero or N[xsd:long]falsefalseMatch only servers in one of these locations.
max_days_activexsd:intfalsefalseFinds servers that have been active for at mostthis many days
min_days_activexsd:intfalsefalseFinds servers that have been active for at least this many days
monthly_billing_fromxsd:doublefalsefalseMatches only servers with a monthly recurring fee (per cur variable) over this amount.
monthly_billing_toxsd:doublefalsefalseMatches only servers with a monthly recurring fee (per cur variable) up to this amount.
order_byCANCEL_DATE | USER_NAME | ORDER_DATE | DOMAIN | CUSTOMER_ACTIVE_BILLED_DOMAINfalsefalseOne of "cancel" "user" "order_date" "domain"
order_oidszero or N[xsd:long]falsefalseMatch only servers with these IPs
ordered_afterjava.sql.TimestampfalsefalseMatches only servers ordered after this date.
ordered_beforejava.sql.TimestampfalsefalseMatches only servers ordered before this date.
xsd:stringfalsefalsePerforms a search of a VM's parameter file.
planxsd:stringfalsefalseMatches only servers originally ordered with this plan code.
prepaid_until_afterjava.sql.TimestampfalsefalseMatches only servers that have a prepaid date set, where the prepaid date is after this time.
prepaid_until_beforejava.sql.TimestampfalsefalseMatches only servers that have a prepaid date set, where the prepaid date is before this time.
xsd:stringfalsefalsePerforms a search of the servers attributes.
server_psuPSU_REGULAR | PSU_REDUNDANT_PSU | PSU_REDUNDANT_POWERfalsefalse 
server_typePHYSICAL | VPSfalsefalseFor example VPS or PHYSICAL or null for does not matter
server_user_namexsd:stringfalsefalseMatch only servers that are VPSs where the VPS user on the host matches this value.
user_oidxsd:longfalsefalseMatches only servers owned by this user.
user_oidszero or N[xsd:long]falsefalseMatches only servers owned by these users.
vps_typeLOW_CONTENTION | REGULAR | DEDICATEDfalsefalsee.g.