Skip to content

Latest commit

 

History

History
135 lines (84 loc) · 3.2 KB

SecretsApi.md

File metadata and controls

135 lines (84 loc) · 3.2 KB

monday_code.SecretsApi

All URIs are relative to http://localhost:59999

Method HTTP request Description
get_secret GET /secrets/{name}
get_secret_keys GET /secrets

get_secret

str get_secret(name)

Example

import monday_code
from monday_code.rest import ApiException
from pprint import pprint

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


# Enter a context with an instance of the API client
with monday_code.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = monday_code.SecretsApi(api_client)
    name = 'name_example' # str | 

    try:
        api_response = api_instance.get_secret(name)
        print("The response of SecretsApi->get_secret:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SecretsApi->get_secret: %s\n" % e)

Parameters

Name Type Description Notes
name str

Return type

str

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
404 -

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

get_secret_keys

List[str] get_secret_keys()

Example

import monday_code
from monday_code.rest import ApiException
from pprint import pprint

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


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

    try:
        api_response = api_instance.get_secret_keys()
        print("The response of SecretsApi->get_secret_keys:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SecretsApi->get_secret_keys: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

List[str]

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -

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