编程语言
首页 > 编程语言> > python - networker api

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:   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.

标签:api,python,NetWorker,REST,server,networker,API,using,part
来源: https://www.cnblogs.com/lei2017/p/16462238.html