All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
get | GET /api/d6.2/metadata/providers/{providerId} | Get a provider by name |
list | GET /api/d6.2/metadata/providers | List all provider metadata |
CloudProviderMetadata get(provider_id)
Get a provider by name
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ProviderMetadataApi(cloudera.director.ApiClient(configuration))
provider_id = 'provider_id_example' # str |
try:
# Get a provider by name
api_response = api_instance.get(provider_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProviderMetadataApi->get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
provider_id | str |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[CloudProviderMetadata] list()
List all provider metadata
from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cloudera.director.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudera.director.ProviderMetadataApi(cloudera.director.ApiClient(configuration))
try:
# List all provider metadata
api_response = api_instance.list()
pprint(api_response)
except ApiException as e:
print("Exception when calling ProviderMetadataApi->list: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]