What's on this page

Resource Drivers

The following section details the APIs used to manage Brent Resource drivers.

Associated with each definition are details of the request parameters and responses. These include the name of each field plus a brief description and whether the field is mandatory. Whether a field is required or not is based on the context of the examples. The underlying API definition may mark a field as optional, but in some contexts, the fields must be supplied.

For a 40x, 50x or any other error response please see error response codes

Onboard Resource Driver

Onboard a new resource driver with Brent

Request

AspectValue
Endpoint URL/api/resource-manager/resource-drivers
Content-Type:application/json OR application/yaml
HTTP MethodPOST

Body

FieldDescriptionMandatory
typeThe type of the driverYes
baseUriThe base URI of the Resource driver so it may be accessed from BrentYes
certificateAn SSH certificate to communicate with an HTTPs-enabled Resource driverYes, if the baseUri is https

Response

AspectValue
Content-Typeapplication/json
Success Status Code201

Headers

FieldDescription
locationEndpoint to Resource driver resource

Body

FieldDescription
idThe ID assigned to the Resource driver
typeThe type of the driver
baseUriThe base URI of the Resource driver so it may be accessed from Brent

View Details of Resource Driver

View details of a resource driver

Request

AspectValue
Endpoint URL/api/resource-manager/resource-drivers/{id}
HTTP MethodGET

Path Parameters:

FieldDescriptionMandatory
idID of the resource driverYes

Response

AspectValue
Content-Typeapplication/json
Success Status Code200
Not Found Status Code404

Body

FieldDescription
idThe ID assigned to the resource driver
typeThe type of the driver
baseUriThe base URI of the resource driver so it may be accessed from Brent

View Details of Resource Driver by Type

View details of a resource driver, retrieved by the type it manages

Request

AspectValue
Endpoint URL/api/resource-manager/resource-drivers?type={type}
HTTP MethodGET

Query Parameters:

FieldDescriptionMandatory
typetype of the driverYes

Response

AspectValue
Content-Typeapplication/json
Success Status Code200
Not Found Status Code404

Body

FieldDescription
idThe ID assigned to the resource driver
typeThe type of the driver
baseUriThe base URI of the resource driver so it may be accessed from Brent

Remove Resource Driver

Remove a resource driver

Request

AspectValue
Endpoint URL/api/resource-manager/resource-drivers/{id}
HTTP MethodDELETE

Path Parameters:

FieldDescriptionMandatory
idID of the resource driverYes

Response

AspectValue
Content-Typeapplication/json
Success Status Code204
Not Found Status Code404