Skip to content

List Media Groups

Supported Versions Last Updated
1.22.04 & higher 2019/05/29
Action media-group-list
Method GET, POST
Variables

type [media group type. Types:openvz,kvm,kvmtemplate,xen,xen hvm]

rdtype [json] For json output specify json or for default output leave blank.

Example Output

XML

<status>Success</status>

<mediagroups>

<mediagroup>

<id>1</id>

<name>kvm templates</name>

</mediagroup>

<mediagroup>

<id>2</id>

<name>kvm iso</name>

</mediagroup>

</mediagroups>

JSON

{"status":"success","mediagroups":[{"id":"1","name":"kvm templates"},{"id":"2","name":"kvm iso"}]}