hnhdigital-os/php-linode-api

View on GitHub
spec-old/Instance/Disk.yml

Summary

Maintainability
Test Coverage
endpoint: linode/instances/%s/disks/%s
url: https://developers.linode.com/v4/reference/endpoints/linode/instances/$id/disks/$id
load-method: get

parameters:

    linode_id:
      type: int

    disk_id:
      type: int

get:

  get:
    description: Returns information about this disk.
    url: https://developers.linode.com/v4/reference/endpoints/linode/instances/$id/disks/$id#GET
    endpoint: 

put:

  update:
    description: Updates a disk's metadata.
    url: https://developers.linode.com/v4/reference/endpoints/linode/instances/$id/disks/$id#PUT
    endpoint: 
    attributes: true

    optional:

      label:
        type: string
        description: Label of the disk.

post:

  password:
    description: Resets the root password of a disk.
    url: https://developers.linode.com/v4/reference/endpoints/linode/instances/$id/disks/$id/password
    endpoint: /password

    parameters:

      password:
        type: string
        description: New root password for the OS installed on this disk.

  resize:
    description: Resizes the disk. The Linode this disk is attached to must be shut down for resizing to take effect.
    url: https://developers.linode.com/v4/reference/endpoints/linode/instances/$id/disks/$id/resize
    endpoint: /resize

    parameters:

      size:
        type: int
        description: The desired size of the disk in MB.

delete:

  delete:
    description: Deletes this disk. This action cannot be undone.
    url: https://developers.linode.com/v4/reference/endpoints/linode/instances/$id/disks/$id#DELETE
    endpoint: