DimensionDataResearch / go-dd-cloud-compute

Dimension Data CloudControl API for Go
MIT License
4 stars 2 forks source link

Add support for List Operating Systems #13

Open tintoy opened 7 years ago

tintoy commented 7 years ago

Support:

Sample response payload;

{
    "operatingSystem": [
        {
            "displayName": "CENTOS5/32",
            "networkAdapter": [
                {
                    "name": "E1000",
                    "default": true
                },
                {
                    "name": "FLEXIBLE_PCNET32",
                    "default": false
                },
                {
                    "name": "VMXNET3",
                    "default": false
                }
            ],
            "scsiAdapter": [
                {
                    "adapterType": "LSI_LOGIC_PARALLEL",
                    "default": true
                },
                {
                    "adapterType": "LSI_LOGIC_SAS",
                    "default": false
                },
                {
                    "adapterType": "VMWARE_PARAVIRTUAL",
                    "default": false
                }
            ],
            "id": "CENTOS532",
            "family": "UNIX",
            "supportsGuestOsCustomization": true,
            "supportsBackup": true,
            "supportsOvfImport": true
        },
        {
            "displayName": "CENTOS5/64",
            "networkAdapter": [
                {
                    "name": "E1000",
                    "default": true
                },
                {
                    "name": "VMXNET3",
                    "default": false
                }
            ],
            "scsiAdapter": [
                {
                    "adapterType": "LSI_LOGIC_PARALLEL",
                    "default": true
                },
                {
                    "adapterType": "LSI_LOGIC_SAS",
                    "default": false
                },
                {
                    "adapterType": "VMWARE_PARAVIRTUAL",
                    "default": false
                }
            ],
            "id": "CENTOS564",
            "family": "UNIX",
            "supportsGuestOsCustomization": true,
            "supportsBackup": true,
            "supportsOvfImport": true
        },
        {
            "displayName": "CENTOS6/32",
            "networkAdapter": [
                {
                    "name": "E1000",
                    "default": true
                },
                {
                    "name": "VMXNET3",
                    "default": false
                }
            ],
            "scsiAdapter": [
                {
                    "adapterType": "LSI_LOGIC_PARALLEL",
                    "default": true
                },
                {
                    "adapterType": "LSI_LOGIC_SAS",
                    "default": false
                },
                {
                    "adapterType": "VMWARE_PARAVIRTUAL",
                    "default": false
                }
            ],
            "id": "CENTOS632",
            "family": "UNIX",
            "supportsGuestOsCustomization": true,
            "supportsBackup": true,
            "supportsOvfImport": true
        }
    ],
    "pageNumber": 1,
    "pageCount": 3,
    "totalCount": 3,
    "pageSize": 250
}

Requires API v2.5.