defaults Package

defaults Module

schemas Module

class lemur.defaults.schemas.DefaultOutputSchema(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)

Bases: lemur.common.schema.LemurOutputSchema

opts = <marshmallow.schema.SchemaOpts object>

views Module

class lemur.defaults.views.LemurDefaults

Bases: lemur.auth.service.AuthenticatedResource

Defines the ‘defaults’ endpoint

endpoint = 'default'
GET /defaults

Returns defaults needed to generate CSRs

Example request:

GET /defaults HTTP/1.1
Accept: application/json, text/javascript

Example response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

   "country": "US",
   "state": "CA",
   "location": "Los Gatos",
   "organization": "Netflix",
   "organizationalUnit": "Operations",
   "dnsProviders": [{"name": "test", ...}, {...}],
Request Headers
Status Codes
methods = {'GET'}

A list of methods this view can handle.