Skip to content

Commit

Permalink
doc: run make update-api
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
  • Loading branch information
mihalicyn committed Feb 16, 2024
1 parent 4a1d8c0 commit 20682f6
Showing 1 changed file with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions doc/rest-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2395,6 +2395,42 @@ definitions:
title: InstanceType represents the type if instance being returned or requested via the API.
type: string
x-go-package: github.com/canonical/lxd/shared/api
InstanceUEFIVariable:
description: InstanceUEFIVariable represents an EFI variable entry
properties:
attr:
description: UEFI variable attributes
format: uint32
type: integer
x-go-name: Attr
data:
description: UEFI variable data (HEX-encoded)
type: string
x-go-name: Data
digest:
description: UEFI variable digest (HEX-encoded)
type: string
x-go-name: Digest
timestamp:
description: UEFI variable timestamp (HEX-encoded)
type: string
x-go-name: Timestamp
type: object
x-go-package: github.com/canonical/lxd/shared/api
InstanceUEFIVars:
properties:
variables:
additionalProperties:
$ref: '#/definitions/InstanceUEFIVariable'
description: |-
UEFI variables map
Hashmap key format is <uefi-variable-name>-<UUID>
example: AmdAcpiVar-79941ecd-ed36-49d0-8124-e4c31ac75cd4
type: object
x-go-name: Variables
title: InstanceUEFIVars represents the UEFI variables of a LXD virtual machine.
type: object
x-go-package: github.com/canonical/lxd/shared/api
InstancesPost:
properties:
architecture:
Expand Down Expand Up @@ -9948,6 +9984,78 @@ paths:
summary: Change the state
tags:
- instances
/1.0/instances/{name}/uefi_vars:
get:
description: Gets the UEFI variables for a specific VM.
operationId: instance_uefi_vars_get
parameters:
- description: Project name
example: default
in: query
name: project
type: string
produces:
- application/json
responses:
"200":
description: Instance UEFI variables
schema:
description: Sync response
properties:
metadata:
$ref: '#/definitions/InstanceUEFIVars'
status:
description: Status description
example: Success
type: string
status_code:
description: Status code
example: 200
type: integer
type:
description: Response type
example: sync
type: string
type: object
"403":
$ref: '#/responses/Forbidden'
"500":
$ref: '#/responses/InternalServerError'
summary: Get the instance's UEFI variables
tags:
- instances
put:
consumes:
- application/json
description: Sets the UEFI variables for a specific VM.
operationId: instance_uefi_vars_put
parameters:
- description: Project name
example: default
in: query
name: project
type: string
- description: UEFI variables update request
in: body
name: instanceEFI
schema:
$ref: '#/definitions/InstanceUEFIVars'
produces:
- application/json
responses:
"200":
$ref: '#/responses/EmptySyncResponse'
"400":
$ref: '#/responses/BadRequest'
"403":
$ref: '#/responses/Forbidden'
"404":
$ref: '#/responses/NotFound'
"500":
$ref: '#/responses/InternalServerError'
summary: Set the instance's UEFI variables
tags:
- instances
/1.0/instances/{name}?recursion=1:
get:
description: |-
Expand Down

0 comments on commit 20682f6

Please sign in to comment.