System Administration >
Configuration
>
Fabric
>
Nodes
>
NSX Manager
>
Services
>
Policy Service
Update service properties
Request:
Method:
PUT
URI Path(s):
/api/v1/cluster/<cluster-node-id>/node/services/policy
/api/v1/node/services/policy
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
NodePolicyServiceProperties
+
NodePolicyServiceProperties
(
schema
)
Name
Description
Type
Notes
_links
References related to this resource
The server will populate this field when returing the resource. Ignored on PUT and POST.
array of
ResourceLink
Readonly
_schema
Schema for this resource
string
Readonly
_self
Link to this resource
SelfResourceLink
Readonly
service_name
Service name
string
Required
service_properties
Service properties
LoggingServiceProperties
Example Request:
PUT https://<nsx-mgr>/api/v1/node/services/policy { "service_name": "policy", "service_properties": { "logging_level": "DEBUG", "package_logging_level": [ { "logging_level": "INFO", "package_name": "com.vmware.nsx" }, { "logging_level": "DEBUG", "package_name": "com.vmware.nsx.management.switching" }, { "logging_level": "DEBUG", "package_name": "com.vmware.nsx.management.edge" }, { "logging_level": "INFO", "package_name": "com.vmware.nsx.management.container.restartor" }, { "logging_level": "ERROR", "package_name": "org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer" }, { "logging_level": "INFO", "package_name": "com.gemstone" } ] } }
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
NodePolicyServiceProperties
+
NodePolicyServiceProperties
(
schema
)
Name
Description
Type
Notes
_links
References related to this resource
The server will populate this field when returing the resource. Ignored on PUT and POST.
array of
ResourceLink
Readonly
_schema
Schema for this resource
string
Readonly
_self
Link to this resource
SelfResourceLink
Readonly
service_name
Service name
string
Required
service_properties
Service properties
LoggingServiceProperties
Example Response:
{ "_schema": "NodePolicyServiceProperties", "_self": "/node/services/policy", "service_name": "policy", "service_properties": { "logging_level": "DEBUG", "package_logging_level": [ { "logging_level": "INFO", "package_name": "com.vmware.nsx" }, { "logging_level": "DEBUG", "package_name": "com.vmware.nsx.management.switching" }, { "logging_level": "DEBUG", "package_name": "com.vmware.nsx.management.edge" }, { "logging_level": "ERROR", "package_name": "org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer" }, { "logging_level": "INFO", "package_name": "com.vmware.nsx.management.container.restartor" }, { "logging_level": "INFO", "package_name": "com.gemstone" } ] } }
Required Permissions:
crud
Feature:
system_administration
Additional Errors:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable