Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.99 KB

CloudMetadataApi.md

File metadata and controls

73 lines (46 loc) · 1.99 KB

CloudMetadataApi

All URIs are relative to http://localhost

Method Description
create_root_node Create Root Node

create_root_node

ResponseGetCloudMetadataResponse create_root_node()

Create Root Node

An API endpoint to get tenant cloud metadata like cloud id, region, service...

Example

import onelens_backend_client
from onelens_backend_client.models.response_get_cloud_metadata_response import ResponseGetCloudMetadataResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onelens_backend_client.CloudMetadataApi(api_client)

    try:
        # Create Root Node
        api_response = api_instance.create_root_node()
        print("The response of CloudMetadataApi->create_root_node:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudMetadataApi->create_root_node: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ResponseGetCloudMetadataResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -

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