NSX API could not be executed due to containing Chinese characters
search cancel

NSX API could not be executed due to containing Chinese characters

book

Article ID: 416169

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • The executed API contains Chinese characters, for example:
    GET /infra/domains/default/security-policies/测试
    DELETE /infra/domains/default/security-policies/测试
  • API result is "404 Not Found" with "error_message": "The requested object : /infra/domains/default/security-policies/*******¨ could not be found. Object identifiers are case sensitive."

Environment

VMware NSX

Resolution

Add Headers parameter "Content-Type: application/json;charset=UTF-8" and execute API again.