本文主要是介绍python - networker api,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Getting Started,概述
NetWorker REST API is an interface that provides programmatic access to the NetWorker data protection service. By using REST API, customers can build client applications to automate NetWorker operations. NetWorker REST API is installed as part of NetWorker server installation in the same Apache tomcat container as the NetWorker authentication services. Authentication is done using the same credentials as is used for the NetWorker Management Console.
REST stands for Representational State Transfer. It is an Application Programming Interface (API) which allows interaction with resources identified by Uniform Resource Identifier (URI) addresses. It uses HTTP verbs (HEAD, GET, PUT, POST, DELETE) to interact with the URIs in a stateless way (server contains no client state, each message being self-descriptive).
This document deals with the interaction with NetWorker resources using customer-written REST API calls. Not to be confused with the REST API calls which are automatically used by NetWorker as part of its operations, notably as part of the NetWorker NVP-vProxy solution which uses REST as part of its internal communication mechanism.
Connecting to NetWorker,连接networker方法:
There are a number of different REST API client technologies which can be used to run the commands to connect to NetWorker including curl commands and REST API client browser extensions.
1、There are three headers needed for connection: 连接需要的3个headers:
- "Content-Type: application/json"
- "Accept: application/json"
- "Authorization: Basic with Base64 encoded username and password
2、"The NetWorker REST API is exposed in the following base URI:
https://[nw-server-hostname]:9090/nwrestapi/
3、There are three URI groups (below examples use v2, but this could also be v1 or v3 depending on NetWorker version) ,3个URI组
https://[nw-server-hostname]:9090/nwrestapi/v2/global
https://[nw-server-hostname]:9090/nwrestapi/v2/datazone
https://[nw-server-hostname]:9090/nwrestapi/v2/tenants
4、The full json schema is available at ,完整的json模式: schema,提要,纲要
https://[nw-server-hostname]:9090/nwrestapi/v3/schemas/swagger.json
Getting Started
NetWorker REST API is an interface that provides programmatic access to the NetWorker data protection service. By using REST API, customers can build client applications to automate NetWorker operations. NetWorker REST API is installed as part of NetWorker server installation in the same Apache tomcat container as the NetWorker authentication services. Authentication is done using the same credentials as is used for the NetWorker Management Console.
REST stands for Representational State Transfer. It is an Application Programming Interface (API) which allows interaction with resources identified by Uniform Resource Identifier (URI) addresses. It uses HTTP verbs (HEAD, GET, PUT, POST, DELETE) to interact with the URIs in a stateless way (server contains no client state, each message being self-descriptive).
This document deals with the interaction with NetWorker resources using customer-written REST API calls. Not to be confused with the REST API calls which are automatically used by NetWorker as part of its operations, notably as part of the NetWorker NVP-vProxy solution which uses REST as part of its internal communication mechanism.
这篇关于python - networker api的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!