Page tree
Skip to end of metadata
Go to start of metadata
Supported VersionsLast Updated
1.22.04 & higher2019/05/29
Actionmedia-group-list
MethodGET, 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"}]}
  • No labels