操作符 | 参数个数 | 举例 | 说明 |
---|---|---|---|
in | > 0 | name.in("test", "good") | 在给定数组中 |
notin | > 0 | name.notin('test') | 不在给定数组中 |
between | 2 | created_at.between('2019-12-10', '2020-01-02') | 在两个值之间 |
ge | 1 | created_at.ge('2020-01-01') | 大于或等于给定值 |
gt | 1 | created_at.gt('2020-01-01') | 严格大于给定值 |
le | 1 | created_at.le('2020-01-01') | 小于或等于给定值 |
lt | 1 | sync_seconds.lt(900) | 严格大于给定值 |
like | > 0 | name.like('%test%') | sql字符串匹配任意一个字符串 |
contains | > 0 | name.contains('test') | 包含任意一个给定字符串 |
startswith | > 0 | name.startswith('test') | 以任意一个给定字符串开头 |
endswith | > 0 | name.endswith('test') | 以任意一个给定字符串结尾 |
equals | > 0 | name.equals('test') | 等于任意一个给定值 |
notequals | 1 | name.notequals('test') | 不等于给定值 |
isnull | 0 | name.isnull() | 值为SQL的NULL |
isnotnull | 0 | name.isnotnull() | 值不为SQL的NULL |
isempty | 0 | name.isempty('test') | 值为空字符串 |
isnotempty | 0 | name.isnotempty('test') | 值不是空字符串 |
isnullorempty | 0 | name.isnullorempty('test') | 值为SQL的NULL或者空字符串 |
Provider | 开始支持版本 | 平台 |
---|---|---|
OneCloud | 0.0 | OneCloud内置私有云,包括KVM和裸金属管理 |
VMware | 1.2 | VMware vCenter |
OpenStack | 2.6 | OpenStack M版本以上私有云 |
ZStack | 2.10 | ZStack私有云 |
Aliyun | 2.0 | 阿里云 |
Aws | 2.3 | Amazon AWS |
Azure | 2.2 | Microsoft Azure |
2.13 | Google Cloud Platform | |
Qcloud | 2.3 | 腾讯云 |
Huawei | 2.5 | 华为公有云 |
Ucloud | 2.7 | UCLOUD |
Ctyun | 2.13 | 天翼云 |
S3 | 2.11 | 通用s3对象存储 |
Ceph | 2.11 | Ceph对象存储 |
Xsky | 2.11 | XSKY启明星辰Ceph对象存储 |
CloudEnv | 说明 |
---|---|
public | 公有云 |
private | 私有云 |
onpremise | 本地IDC |
curl --location --request GET 'https://example.com:30888/networkaddresses'
{
"limit": 0,
"networkaddresses": [
{
"Guestnetwork": {
"bw_limit": 0,
"can_delete": true,
"can_update": true,
"created_at": "2019-08-24T14:15:22Z",
"delete_fail_reason": {
"class": "string",
"code": 0,
"details": "string"
},
"deleted": true,
"deleted_at": "2019-08-24T14:15:22Z",
"driver": "string",
"eip_addr": "string",
"eip_id": "string",
"guest": "string",
"guest_id": "string",
"ifname": "string",
"index": 0,
"ip_addr": "string",
"ip6_addr": "string",
"is_default": true,
"mac_addr": "string",
"mapped_ip_addr": "string",
"network": "string",
"network_addresses": [
{
"gateway": "string",
"id": "string",
"ip_addr": "string",
"masklen": 0,
"type": "string"
}
],
"network_id": "string",
"num_queues": 0,
"port_mappings": [
{
"host_ip": "string",
"host_port": 0,
"host_port_range": {
"end": 0,
"start": 0
},
"port": 0,
"protocol": "string",
"remote_ips": [
"string"
]
}
],
"row_id": 0,
"rx_traffic_limit": 0,
"rx_traffic_used": 0,
"server": "string",
"team_with": "string",
"tx_traffic_limit": 0,
"tx_traffic_used": 0,
"update_fail_reason": {
"class": "string",
"code": 0,
"details": "string"
},
"update_version": 0,
"updated_at": "2019-08-24T14:15:22Z",
"virtual": true,
"wire_id": "string"
},
"IpAddr": "string",
"NetworkId": "string",
"ParentId": "string",
"ParentType": "string",
"SubCtrVid": 0,
"Type": "string",
"account": "google-account",
"account_health_status": "string",
"account_id": "4d3c8979-9dd0-439b-8d78-36fe1ab1666c",
"account_read_only": true,
"account_status": "string",
"brand": "Google",
"can_delete": true,
"can_update": true,
"cloud_env": "public",
"cloudregion": "string",
"cloudregion_id": "string",
"delete_fail_reason": {
"class": "string",
"code": 0,
"details": "string"
},
"environment": "string",
"is_default_vpc": true,
"manager": "google-account",
"manager_domain": "Default",
"manager_domain_id": "default",
"manager_id": "string",
"manager_project": "system",
"manager_project_id": "4d3c8979-9dd0-439b-8d78-36fe1ab1666c",
"metadata": {
"property1": "string",
"property2": "string"
},
"network": "string",
"provider": "Google",
"region": "Default",
"region_ext_id": "59e7bc87-a6b3-4c39-8f02-c68e8243d4e4",
"region_external_id": "ZStack/59e7bc87-a6b3-4c39-8f02-c68e8243d4e4",
"region_id": "default",
"update_fail_reason": {
"class": "string",
"code": 0,
"details": "string"
},
"vpc": "string",
"vpc_ext_id": "string",
"vpc_id": "string",
"wire": "string",
"wire_id": "string",
"zone": "string",
"zone_id": "string"
}
],
"offset": 0,
"total": 0
}