Skip to content

Latest commit

 

History

History
79 lines (50 loc) · 2.07 KB

EnrollmentconfigApi.md

File metadata and controls

79 lines (50 loc) · 2.07 KB

flightctl.EnrollmentconfigApi

All URIs are relative to http://localhost

Method HTTP request Description
enrollment_config GET /api/v1/enrollmentconfig/{name}

enrollment_config

EnrollmentConfig enrollment_config(name)

Get config for enrolling devices

Example

import flightctl
from flightctl.models.enrollment_config import EnrollmentConfig
from flightctl.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 = flightctl.Configuration(
    host = "http://localhost"
)


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

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

Parameters

Name Type Description Notes
name str the name of approved CSR

Return type

EnrollmentConfig

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
400 Bad Request -
404 Not Found -
401 Unauthorized -

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