director-sdk

cloudera.director.ProviderMetadataApi

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

get

CloudProviderMetadata get(provider_id)

Get a provider by name

Example

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)

Parameters

Name Type Description Notes
provider_id str    

Return type

CloudProviderMetadata

Authorization

basic

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list

list[CloudProviderMetadata] list()

List all provider metadata

Example

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)

Parameters

This endpoint does not need any parameter.

Return type

list[CloudProviderMetadata]

Authorization

basic

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]