NSX-T Data Center REST API

Associated URIs:

API Description API Path

Read syslog service properties


GET /api/v1/transport-nodes/{transport-node-id}/node/services/syslog
GET /api/v1/cluster/{cluster-node-id}/node/services/syslog
GET /api/v1/node/services/syslog

Restart, start or stop the syslog service


POST /api/v1/transport-nodes/{transport-node-id}/node/services/syslog?action=restart
POST /api/v1/transport-nodes/{transport-node-id}/node/services/syslog?action=start
POST /api/v1/transport-nodes/{transport-node-id}/node/services/syslog?action=stop
POST /api/v1/cluster/{cluster-node-id}/node/services/syslog?action=restart
POST /api/v1/cluster/{cluster-node-id}/node/services/syslog?action=start
POST /api/v1/cluster/{cluster-node-id}/node/services/syslog?action=stop
POST /api/v1/node/services/syslog?action=restart
POST /api/v1/node/services/syslog?action=start
POST /api/v1/node/services/syslog?action=stop

Delete all node syslog exporters


Removes all syslog exporter rules. Note, if VCF Operations was used to
configure a VCF Log Server, a 409 CONFLICT is returned as the corresponding
exporter rule configured by VCF Operations cannot be deleted via this
NSX API. Plese consider to invoke DELETE
/api/v1/node/services/syslog/exporters/
to delete each non VCF Log Server exporter.
DELETE /api/v1/transport-nodes/{transport-node-id}/node/services/syslog/exporters
DELETE /api/v1/cluster/{cluster-node-id}/node/services/syslog/exporters
DELETE /api/v1/node/services/syslog/exporters

List node syslog exporters


Returns the collection of registered syslog exporter rules, if any. The
rules specify the collector IP address and port, and the protocol to use.
GET /api/v1/transport-nodes/{transport-node-id}/node/services/syslog/exporters
GET /api/v1/cluster/{cluster-node-id}/node/services/syslog/exporters
GET /api/v1/node/services/syslog/exporters

Delete all node syslog exporters not managed by VCF Operations


Remove all syslog exporter rules for exporters that are not managed by
VCF Operations.
POST /api/v1/transport-nodes/{transport-node-id}/node/services/syslog/exporters?action=delete_all_non_vcf_ops_managed_exporters
POST /api/v1/cluster/{cluster-node-id}/node/services/syslog/exporters?action=delete_all_non_vcf_ops_managed_exporters
POST /api/v1/node/services/syslog/exporters?action=delete_all_non_vcf_ops_managed_exporters

Add node syslog exporter


Adds a rule for exporting syslog information to a specified server. The
required parameters are the rule name (exporter_name); severity level
(emerg, alert, crit, and so on); transmission protocol (TCP or UDP); and
server IP address or hostname. The optional parameters are the syslog port
number, which can be 1 through 65,535 (514, by default); facility level to
use when logging messages to syslog (kern, user, mail, and so on); and
message IDs (msgids), which identify the types of messages to export.
POST /api/v1/transport-nodes/{transport-node-id}/node/services/syslog/exporters
POST /api/v1/cluster/{cluster-node-id}/node/services/syslog/exporters
POST /api/v1/node/services/syslog/exporters

Verify node syslog exporter


Collect iptables rules needed for all existing syslog exporters and verify
if the existing iptables rules are the same. If not, remove the stale rules
and add the new rules to make sure all exporters work properly.
POST /api/v1/transport-nodes/{transport-node-id}/node/services/syslog/exporters?action=verify
POST /api/v1/cluster/{cluster-node-id}/node/services/syslog/exporters?action=verify
POST /api/v1/node/services/syslog/exporters?action=verify

Delete node syslog exporter


Removes a specified rule from the collection of syslog exporter rules.
Note, if the specified exporter-name corresponds to the VCF Operations
configured VCF Log Server, a 409 CONFLICT is returned as an exporter rule
configured by VCF Operations cannot be deleted via this NSX API.
DELETE /api/v1/transport-nodes/{transport-node-id}/node/services/syslog/exporters/{exporter-name}
DELETE /api/v1/cluster/{cluster-node-id}/node/services/syslog/exporters/{exporter-name}
DELETE /api/v1/node/services/syslog/exporters/{exporter-name}

Read node syslog exporter


Returns information about a specific syslog collection point.
GET /api/v1/transport-nodes/{transport-node-id}/node/services/syslog/exporters/{exporter-name}
GET /api/v1/cluster/{cluster-node-id}/node/services/syslog/exporters/{exporter-name}
GET /api/v1/node/services/syslog/exporters/{exporter-name}

Read syslog service status


GET /api/v1/transport-nodes/{transport-node-id}/node/services/syslog/status
GET /api/v1/cluster/{cluster-node-id}/node/services/syslog/status
GET /api/v1/node/services/syslog/status