@akamai/openapi-ts
    Preparing search index...

    Type Alias PostAttachVolumeData

    type PostAttachVolumeData = {
        body: {
            config_id?: number;
            linode_id: number;
            persist_across_boots?: boolean;
        };
        path: { volumeId: number };
        query?: never;
        url: "volumes/{volumeId}/attach";
    }
    Index

    Properties

    Properties

    body: { config_id?: number; linode_id: number; persist_across_boots?: boolean }

    Type Declaration

    • Optionalconfig_id?: number

      The unique identifier assigned to the Linode configuration where you want to include this volume. Run the List configuration profiles operation and store the id for the target configuration.

      📘

      • The configuration needs to belong to the Linode referenced by linode_id.

      • If you don't include this value, the API uses the last booted configuration.

    • linode_id: number

      The unique identifier assigned to the Linode where you want to attach the volume. Run the List Linodes operation and store the id for the target Linode.

    • Optionalpersist_across_boots?: boolean

      If set to false, the volume won't be attached to the Linode configuration. In this case, more than eight volumes may be attached to a Linode if a Linode has 16GB of RAM or more. The number of volumes you can attach is equal to the number of GB of RAM that the Linode has, up to a maximum of 64. If you set this to false, you can't include a config_id and only the linode_id should be passed.

      📘

      To use this object, the target linode_id needs to have a status of running. Run the List Linodes operation to check the status of each Linode.

    path: { volumeId: number }

    Type Declaration

    • volumeId: number

      The unique identifier for the target volume. Run the List volumes operation and store the id for the target volume as your volumeId.

    query?: never
    url: "volumes/{volumeId}/attach"