/api/v1/config/switch/{switch_id}:
  delete:
    description: Delete an item.
    operationId: api.v1.Config.Switches.resource.remove
    parameters:
    - description: '`PRIMARY KEY`'
      in: path
      name: switch_id
      required: true
      schema:
        enum:
        - default
        type: string
    responses:
      '200':
        $ref: '#/components/responses/Deleted'
      '401':
        $ref: '#/components/responses/Forbidden'
      '404':
        $ref: '#/components/responses/NotFound'
    tags:
    - Config/Switches
  description: |-
    pf::UnifiedApi::Controller::Config::Switches

      invalidate_cache
        invalidate switch cache

      precreate_acls
        precreate switch ACLs

      standardPlaceholder
        standardPlaceholder
  get:
    description: Get an item.
    operationId: api.v1.Config.Switches.resource.get
    parameters:
    - description: '`PRIMARY KEY`'
      in: path
      name: switch_id
      required: true
      schema:
        enum:
        - default
        type: string
    responses:
      '200':
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigSwitchWrapped'
        description: Request successful. Response contains a specific resource.
      '401':
        $ref: '#/components/responses/Forbidden'
      '404':
        $ref: '#/components/responses/NotFound'
    tags:
    - Config/Switches
  options:
    description: Get meta for an item.
    operationId: api.v1.Config.Switches.resource.resource_options
    parameters:
    - description: '`PRIMARY KEY`'
      in: path
      name: switch_id
      required: true
      schema:
        enum:
        - default
        type: string
    responses:
      '200':
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigSwitchesMeta'
        description: Request successful. Response contains meta for a resource.
      '401':
        $ref: '#/components/responses/Forbidden'
      '404':
        $ref: '#/components/responses/NotFound'
    tags:
    - Config/Switches
  patch:
    description: Update an item.
    operationId: api.v1.Config.Switches.resource.update
    parameters:
    - description: '`PRIMARY KEY`'
      in: path
      name: switch_id
      required: true
      schema:
        enum:
        - default
        type: string
    requestBody:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ConfigSwitch'
    responses:
      '201':
        $ref: '#/components/responses/Updated'
      '400':
        $ref: '#/components/responses/BadRequest'
      '401':
        $ref: '#/components/responses/Forbidden'
      '404':
        $ref: '#/components/responses/NotFound'
      '422':
        $ref: '#/components/responses/UnprocessableEntity'
    tags:
    - Config/Switches
  put:
    description: Replace an item.
    operationId: api.v1.Config.Switches.resource.replace
    parameters:
    - description: '`PRIMARY KEY`'
      in: path
      name: switch_id
      required: true
      schema:
        enum:
        - default
        type: string
    requestBody:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ConfigSwitch'
    responses:
      '201':
        $ref: '#/components/responses/Created'
      '400':
        $ref: '#/components/responses/BadRequest'
      '401':
        $ref: '#/components/responses/Forbidden'
      '404':
        $ref: '#/components/responses/NotFound'
      '422':
        $ref: '#/components/responses/UnprocessableEntity'
    tags:
    - Config/Switches
