Module: NetworkApi
- Defined in:
- lib/pnap_network_api/api_error.rb,
lib/pnap_network_api.rb,
lib/pnap_network_api/version.rb,
lib/pnap_network_api/api_client.rb,
lib/pnap_network_api/models/error.rb,
lib/pnap_network_api/configuration.rb,
lib/pnap_network_api/models/private_network.rb,
lib/pnap_network_api/api/private_networks_api.rb,
lib/pnap_network_api/models/private_network_create.rb,
lib/pnap_network_api/models/private_network_modify.rb,
lib/pnap_network_api/models/private_network_server.rb
Overview
#Networks API
#Use the Networks API to create, list, edit, and delete private networks to best fit your business needs. Private networks allow your servers to communicate without connecting to the public internet, avoiding unnecessary egress data charges.
<span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='phoenixnap.com/kb/bmc-server-management-via-api#multi-private-backend-network-api' target='_blank'>here</a> </span>
All URLs are relative to (api.phoenixnap.com/networks/v1/)
The version of the OpenAPI document: 1.0 Contact: support@phoenixnap.com Generated by: openapi-generator.tech OpenAPI Generator version: 5.4.0
Defined Under Namespace
Classes: ApiClient, ApiError, Configuration, Error, PrivateNetwork, PrivateNetworkCreate, PrivateNetworkModify, PrivateNetworkServer, PrivateNetworksApi
Constant Summary collapse
- VERSION =
get_version()
Class Method Summary collapse
-
.configure ⇒ Object
Customize default settings for the SDK using block.
Class Method Details
.configure ⇒ Object
Customize default settings for the SDK using block.
NetworkApi.configure do |config|
config.username = "xxx"
config.password = "xxx"
end
If no block given, return the default Configuration object.
37 38 39 40 41 42 43 |
# File 'lib/pnap_network_api.rb', line 37 def configure if block_given? yield(Configuration.default) else Configuration.default end end |