ogcore/config/api_platform/BootServer.yaml

95 lines
3.8 KiB
YAML

resources:
App\Entity\BootServer:
processor: App\State\Processor\BootServerProcessor
input: App\Dto\Input\BootServerInput
output: App\Dto\Output\BootServerOutput
normalizationContext:
groups: ['default', 'boot-server:read']
denormalizationContext:
groups: ['boot-server:write']
operations:
ApiPlatform\Metadata\GetCollection:
provider: App\State\Provider\BootServerProvider
ApiPlatform\Metadata\Get:
provider: App\State\Provider\BootServerProvider
ApiPlatform\Metadata\Put:
security: 'is_granted("ROLE_SUPER_ADMIN")'
provider: App\State\Provider\BootServerProvider
ApiPlatform\Metadata\Patch:
security: 'is_granted("ROLE_SUPER_ADMIN")'
provider: App\State\Provider\BootServerProvider
ApiPlatform\Metadata\Post:
security: 'is_granted("ROLE_SUPER_ADMIN")'
ApiPlatform\Metadata\Delete:
security: 'is_granted("ROLE_SUPER_ADMIN")'
oglives_sync:
shortName: BootServer
class: ApiPlatform\Metadata\Post
method: POST
input: false
security: 'is_granted("ROLE_SUPER_ADMIN")'
uriTemplate: /boot-servers/{uuid}/oglives/sync
controller: App\Controller\OgBoot\OgLive\SyncAction
pxe_templates_sync:
shortName: BootServer
class: ApiPlatform\Metadata\Post
method: POST
input: false
security: 'is_granted("ROLE_SUPER_ADMIN")'
uriTemplate: /boot-servers/{uuid}/pxe-templates/sync
controller: App\Controller\OgBoot\PxeTemplate\SyncAction
get_collection_oglives:
shortName: BootServer
description: Get collection of OgLives from external boot server
class: ApiPlatform\Metadata\Get
method: GET
input: false
uriTemplate: /boot-servers/{uuid}/oglives/get-collection
controller: App\Controller\OgBoot\OgLive\GetCollectionAction
get_isos:
shortName: BootServer
description: Get Isos of OgLive from external boot server
class: ApiPlatform\Metadata\Get
method: GET
input: false
uriTemplate: /boot-servers/{uuid}/oglives/get-isos
controller: App\Controller\OgBoot\OgLive\GetIsosAction
get_default_oglive:
shortName: BootServer
description: Get default OgLive attached to BootServer
class: ApiPlatform\Metadata\Get
method: GET
input: false
uriTemplate: /boot-servers/{uuid}/oglives/get-default
controller: App\Controller\OgBoot\OgLive\GetDefaultAction
get_collection_templates:
shortName: BootServer
description: Get collection of PxeTemplate from external boot server
class: ApiPlatform\Metadata\Get
method: GET
input: false
uriTemplate: /boot-servers/{uuid}/pxe-templates/get-collection
controller: App\Controller\OgBoot\PxeTemplate\GetCollectionAction
boot_server_status:
shortName: BootServer
description: Get status of OgBoot server
class: ApiPlatform\Metadata\Get
method: GET
input: false
uriTemplate: /boot-servers/server/{uuid}/status
controller: App\Controller\OgBoot\StatusAction
properties:
App\Entity\BootServer:
id:
identifier: false
uuid:
identifier: true