Skip to content

Commit

Permalink
Revamp API Documentation and Tests (#10)
Browse files Browse the repository at this point in the history
* anycast

* updated anycast

* dfp changes

* dns-config changes

* dns-data changes

* fw changes

* imfra mgmt changes

* infra provision changes

* ipam changes

* keys changes

* redirect changes

* upgrade policy changes

* cloud-disocvery changes
  • Loading branch information
unasra authored Dec 5, 2024
1 parent 2005799 commit 683c6cf
Show file tree
Hide file tree
Showing 871 changed files with 21,817 additions and 50,150 deletions.
13 changes: 4 additions & 9 deletions src/anycast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,17 @@ import anycast
from anycast.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://csp.infoblox.com/api/anycast/v1
# Defining the CSP URL is optional and defaults to "https://csp.infoblox.com"
# See configuration.py for a list of all supported configuration parameters.
configuration = anycast.Configuration(
host = "http://csp.infoblox.com/api/anycast/v1"
configuration = Configuration(
csp_url = os.getenv('BLOXONE_CSP_URL'),
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
configuration.api_key = os.getenv("BLOXONE_API_KEY")


# Enter a context with an instance of the API client
Expand Down
Loading

0 comments on commit 683c6cf

Please sign in to comment.