Skip to content

Commit

Permalink
doc/rest-api: Refresh swagger YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Jan 26, 2025
1 parent b8f01dd commit 3566591
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion doc/rest-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ definitions:
description: Profiles to add
example: '"default" profile with a root disk device'
items:
$ref: '#/definitions/ProfilesPost'
$ref: '#/definitions/InitProfileProjectPost'
type: array
x-go-name: Profiles
projects:
Expand Down Expand Up @@ -1324,6 +1324,51 @@ definitions:
title: InitPreseed represents initialization configuration that can be supplied to `init`.
type: object
x-go-package: github.com/lxc/incus/v6/shared/api
InitProfileProjectPost:
properties:
Project:
description: Project in which the profile will reside
example: '"default"'
type: string
config:
additionalProperties:
type: string
description: Instance configuration map (refer to doc/instances.md)
example:
limits.cpu: "4"
limits.memory: 4GiB
type: object
x-go-name: Config
description:
description: Description of the profile
example: Medium size instances
type: string
x-go-name: Description
devices:
additionalProperties:
additionalProperties:
type: string
type: object
description: List of devices
example:
eth0:
name: eth0
network: mybr0
type: nic
root:
path: /
pool: default
type: disk
type: object
x-go-name: Devices
name:
description: The name of the new profile
example: foo
type: string
x-go-name: Name
title: InitProfileProjectPost represents the fields of a new profile along with its associated project.
type: object
x-go-package: github.com/lxc/incus/v6/shared/api
InitStorageVolumesProjectPost:
properties:
Pool:
Expand Down

0 comments on commit 3566591

Please sign in to comment.