华为乾坤-条件查询接口资源(推荐使用):请求示例

时间:2025-02-17 11:38:46

请求示例

cURL的示例
curl -k -s -L -i -X GET -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-Language: en-US' -H 'X-AC CES S-TOKEN: x-rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88bybuqp7xmlup9htd5gpg4bmmrufvnt4aan'  -G --data-urlencode 'condition={"logOp": "and","complex": [{"logOp": "or","simple": [{"name": "iftype","operator": "equal","caseSensitive": true,"value": "3"},{"name": "trunkname","operator": "begin with","caseSensitive": true,"value": "NE"}]},{"simple": [{"name": "nedn","operator": "equal","value": "0c074aed-c897-34e4-8220-b478961b2039"}]}]}"&orderBy="{"field":"INTERFACEID","asc":true}' 'https://192.168.1.125:18002/rest/openapi/networkinventoryservice/v2/interfaces'
HTTP的示例
GET /rest/openapi/networkinventoryservice/v2/interfaces?condition=%7B%22logOp%22%3A%20%22and%22,%22complex%22%3A%20%5B%7B%22logOp%22%3A%20%22or%22,%22simple%22%3A%20%5B%7B%22name%22%3A%20%22iftype%22,%22operator%22%3A%20%22equal%22,%22caseSensitive%22%3A%20true,%22value%22%3A%20%223%22%7D,%7B%22name%22%3A%20%22trunkname%22,%22operator%22%3A%20%22begin%20with%22,%22caseSensitive%22%3A%20true,%22value%22%3A%20%22NE%22%7D%5D%7D,%7B%22simple%22%3A%20%5B%7B%22name%22%3A%20%22nedn%22,%22operator%22%3A%20%22equal%22,%22value%22%3A%20%220c074aed-c897-34e4-8220-b478961b2039%22%7D%5D%7D%5D%7D%22%26orderBy%3D%22%7B%22field%22%3A%22INTERFACEID%22,%22asc%22%3Atrue%7D HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001244816271.html