Skip to content

getVolumesAttached to server #399

Description

@mshannaq

Hello,

is there any method to get the attached volumes into server?

for example:

compute = $openstack->computeV2();
$server = $compute->getServer(['id' => 'server-id']);

// Get attached volumes
$volumes = $server->getVolumesAttached();

or how can I see if there is any volumes attached to the server?

Thanks

Activity

  1. k0ka commented on Feb 3, 2024

    @k0ka
    Member

    Hello,

    We have corresponding examples (and tests), but it is not covered in the documentation yet

    https://github.com/php-opencloud/openstack/blob/2335c75e59b5bc6817b169c63bf74d9d7f8fc04d/samples/Compute/v2/servers/list_volume_attachments.php

  2. added a commit that references this issue on Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions