Class: Fog::Compute::Oracle::Mock
- Inherits:
-
Object
- Object
- Fog::Compute::Oracle::Mock
- Includes:
- Oracle::JsonUtils
- Defined in:
- lib/fog/oracle/compute.rb,
lib/fog/oracle/requests/compute/login.rb,
lib/fog/oracle/requests/compute/get_vm.rb,
lib/fog/oracle/requests/compute/get_cpu.rb,
lib/fog/oracle/requests/compute/get_job.rb,
lib/fog/oracle/requests/compute/list_vms.rb,
lib/fog/oracle/requests/compute/list_cpus.rb,
lib/fog/oracle/requests/compute/list_jobs.rb,
lib/fog/oracle/requests/compute/get_server.rb,
lib/fog/oracle/requests/compute/list_zones.rb,
lib/fog/oracle/requests/compute/get_manager.rb,
lib/fog/oracle/requests/compute/get_network.rb,
lib/fog/oracle/requests/compute/list_servers.rb,
lib/fog/oracle/requests/compute/list_clusters.rb,
lib/fog/oracle/requests/compute/list_managers.rb,
lib/fog/oracle/requests/compute/list_networks.rb,
lib/fog/oracle/requests/compute/get_repository.rb,
lib/fog/oracle/requests/compute/get_file_server.rb,
lib/fog/oracle/requests/compute/get_file_system.rb,
lib/fog/oracle/requests/compute/get_server_pool.rb,
lib/fog/oracle/requests/compute/get_virtual_nic.rb,
lib/fog/oracle/requests/compute/list_assemblies.rb,
lib/fog/oracle/requests/compute/get_storage_path.rb,
lib/fog/oracle/requests/compute/get_virtual_disk.rb,
lib/fog/oracle/requests/compute/get_volume_group.rb,
lib/fog/oracle/requests/compute/get_ethernet_port.rb,
lib/fog/oracle/requests/compute/get_storage_array.rb,
lib/fog/oracle/requests/compute/list_assembly_vms.rb,
lib/fog/oracle/requests/compute/list_file_servers.rb,
lib/fog/oracle/requests/compute/list_file_systems.rb,
lib/fog/oracle/requests/compute/list_repositories.rb,
lib/fog/oracle/requests/compute/list_server_pools.rb,
lib/fog/oracle/requests/compute/list_virtual_nics.rb,
lib/fog/oracle/requests/compute/get_control_domain.rb,
lib/fog/oracle/requests/compute/get_virtual_switch.rb,
lib/fog/oracle/requests/compute/list_access_groups.rb,
lib/fog/oracle/requests/compute/list_storage_paths.rb,
lib/fog/oracle/requests/compute/list_virtual_disks.rb,
lib/fog/oracle/requests/compute/list_volume_groups.rb,
lib/fog/oracle/requests/compute/get_storage_element.rb,
lib/fog/oracle/requests/compute/get_vm_disk_mapping.rb,
lib/fog/oracle/requests/compute/list_ethernet_ports.rb,
lib/fog/oracle/requests/compute/list_storage_arrays.rb,
lib/fog/oracle/requests/compute/list_affinity_groups.rb,
lib/fog/oracle/requests/compute/list_control_domains.rb,
lib/fog/oracle/requests/compute/list_resource_groups.rb,
lib/fog/oracle/requests/compute/list_storage_targets.rb,
lib/fog/oracle/requests/compute/list_vlan_interfaces.rb,
lib/fog/oracle/requests/compute/get_file_system_mount.rb,
lib/fog/oracle/requests/compute/get_storage_initiator.rb,
lib/fog/oracle/requests/compute/list_storage_elements.rb,
lib/fog/oracle/requests/compute/list_virtual_switches.rb,
lib/fog/oracle/requests/compute/list_vm_disk_mappings.rb,
lib/fog/oracle/requests/compute/get_file_server_plugin.rb,
lib/fog/oracle/requests/compute/get_server_pool_policy.rb,
lib/fog/oracle/requests/compute/list_file_system_mounts.rb,
lib/fog/oracle/requests/compute/list_repository_exports.rb,
lib/fog/oracle/requests/compute/list_server_controllers.rb,
lib/fog/oracle/requests/compute/list_storage_initiators.rb,
lib/fog/oracle/requests/compute/get_storage_array_plugin.rb,
lib/fog/oracle/requests/compute/list_file_server_plugins.rb,
lib/fog/oracle/requests/compute/list_cluster_storage_fses.rb,
lib/fog/oracle/requests/compute/list_server_pool_policies.rb,
lib/fog/oracle/requests/compute/list_vm_clone_definitions.rb,
lib/fog/oracle/requests/compute/list_storage_array_plugins.rb,
lib/fog/oracle/requests/compute/get_cpu_compatibility_group.rb,
lib/fog/oracle/requests/compute/list_assembly_virtual_disks.rb,
lib/fog/oracle/requests/compute/list_cpu_compatibility_groups.rb,
lib/fog/oracle/requests/compute/list_cluster_heartbeat_devices.rb,
lib/fog/oracle/requests/compute/list_vm_clone_network_mappings.rb,
lib/fog/oracle/requests/compute/list_vm_clone_storage_mappings.rb,
lib/fog/oracle/requests/compute/get_server_update_configuration.rb,
lib/fog/oracle/requests/compute/list_server_pool_network_policies.rb,
lib/fog/oracle/requests/compute/list_server_update_configurations.rb,
lib/fog/oracle/requests/compute/list_server_update_repository_configurations.rb
Instance Method Summary collapse
- #get_control_domain(id) ⇒ Object
- #get_cpu(id) ⇒ Object
- #get_cpu_compatibility_group(id) ⇒ Object
- #get_ethernet_port(id) ⇒ Object
- #get_file_server(id) ⇒ Object
- #get_file_server_plugin(id) ⇒ Object
- #get_file_system(id) ⇒ Object
- #get_file_system_mount(id) ⇒ Object
- #get_job(id) ⇒ Object
- #get_manager(id) ⇒ Object
- #get_network(id) ⇒ Object
- #get_repository(id) ⇒ Object
- #get_server(id) ⇒ Object
- #get_server_pool(id) ⇒ Object
- #get_server_pool_policy(id) ⇒ Object
- #get_server_update_configuration(id) ⇒ Object
- #get_storage_array(id) ⇒ Object
- #get_storage_array_plugin(id) ⇒ Object
- #get_storage_element(id) ⇒ Object
- #get_storage_initiator(id) ⇒ Object
- #get_storage_path(id) ⇒ Object
- #get_virtual_disk(id) ⇒ Object
- #get_virtual_nic(id) ⇒ Object
- #get_virtual_switch(id) ⇒ Object
- #get_vm(id) ⇒ Object
- #get_vm_disk_mapping(id) ⇒ Object
- #get_volume_group(id) ⇒ Object
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
- #ipaddresses(attributes = {}) ⇒ Object
- #list_access_groups ⇒ Object
- #list_affinity_groups ⇒ Object
- #list_assemblies ⇒ Object
- #list_assembly_virtual_disks ⇒ Object
- #list_assembly_vms ⇒ Object
- #list_cluster_heartbeat_devices ⇒ Object
- #list_cluster_storage_fses ⇒ Object
- #list_clusters ⇒ Object
- #list_control_domains ⇒ Object
- #list_cpu_compatibility_groups ⇒ Object
- #list_cpus ⇒ Object
- #list_ethernet_ports ⇒ Object
- #list_file_server_plugins ⇒ Object
- #list_file_servers ⇒ Object
- #list_file_system_mounts ⇒ Object
- #list_file_systems ⇒ Object
- #list_jobs ⇒ Object
- #list_managers ⇒ Object
- #list_networks ⇒ Object
- #list_repositories ⇒ Object
- #list_repository_exports ⇒ Object
- #list_resource_groups ⇒ Object
- #list_server_controllers ⇒ Object
- #list_server_pool_network_policies ⇒ Object
- #list_server_pool_policies ⇒ Object
- #list_server_pools ⇒ Object
- #list_server_update_configurations ⇒ Object
- #list_server_update_repository_configurations ⇒ Object
- #list_servers ⇒ Object
- #list_storage_array_plugins ⇒ Object
- #list_storage_arrays ⇒ Object
- #list_storage_elements ⇒ Object
- #list_storage_initiators ⇒ Object
- #list_storage_paths ⇒ Object
- #list_storage_targets ⇒ Object
- #list_virtual_disks ⇒ Object
- #list_virtual_nics ⇒ Object
- #list_virtual_switches ⇒ Object
- #list_vlan_interfaces ⇒ Object
- #list_vm_clone_definitions ⇒ Object
- #list_vm_clone_network_mappings ⇒ Object
- #list_vm_clone_storage_mappings ⇒ Object
- #list_vm_disk_mappings ⇒ Object
- #list_vms ⇒ Object
- #list_volume_groups ⇒ Object
- #list_zones ⇒ Object
- #login ⇒ Object
Methods included from Oracle::JsonUtils
#json_decode, #json_encode, #snakecase_hash_keys
Constructor Details
#initialize(options = {}) ⇒ Mock
Returns a new instance of Mock.
298 299 300 |
# File 'lib/fog/oracle/compute.rb', line 298 def initialize(={}) end |
Instance Method Details
#get_control_domain(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/fog/oracle/requests/compute/get_control_domain.rb', line 17 def get_control_domain(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.ControlDomain", "value": "0004fb0000210000e7c92f6882593287", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ControlDomain/0004fb0000210000e7c92f6882593287", "name": "Control Domain" }, "name": "Control Domain", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "osType": "Linux", "osName": "Oracle VM server", "osMajorVersion": "3", "osMinorVersion": "3", "osKernelRelease": "3.8.13-68.3.3.el6uek.x86_64", "osKernelVersion": "#2 SMP Tue Jun 23 23:43:15 PDT 2015", "rpmVersion": "3.3.3-1.1.el6", "ovmVersion": "3.3.3-1085", "agentVersion": "3.3.3-1.1.el6", "memory": 1102, "cpuCount": 8, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } } JSON response end |
#get_cpu(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/fog/oracle/requests/compute/get_cpu.rb', line 17 def get_cpu(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (8) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(8)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "cpuNumber": 8, "levelTwoCacheSize": 8192, "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat xsaveopt pln pts dtherm fsgsbase bmi1 hle avx2 bmi2 erms rtm", "modelName": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "virtualCpuNumber": -1, "vendorId": "GenuineIntel", "cpuFamily": 6, "cpuModel": 60, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } } JSON response end |
#get_cpu_compatibility_group(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/fog/oracle/requests/compute/get_cpu_compatibility_group.rb', line 17 def get_cpu_compatibility_group(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.CpuCompatibilityGroup", "value": "Default_Intel_F6_M60", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/CpuCompatibilityGroup/Default_Intel_F6_M60", "name": "Default_Intel_Family:6_Model:60" }, "name": "Default_Intel_Family:6_Model:60", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "serverIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ] } JSON response end |
#get_ethernet_port(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/fog/oracle/requests/compute/get_ethernet_port.rb', line 17 def get_ethernet_port(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000bd65b4a15a3af1c8", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000bd65b4a15a3af1c8", "name": "eth0 on oracle-vm-server" }, "name": "eth0 on oracle-vm-server", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "bondMode": null, "interfaceName": "eth0", "macAddress": "fc:aa:14:e3:f5:de", "mtu": 1500, "networkId": null, "physicalPortIds": null, "bondPortId": { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000a0cc6d2cfde52f39", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000a0cc6d2cfde52f39", "name": "bond0 on oracle-vm-server" }, "portType": "PHYSICAL", "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "vlanInterfaceIds": [], "portState": "PORT_UP", "virtualSwitchId": null, "ipaddresses": null } JSON response end |
#get_file_server(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/fog/oracle/requests/compute/get_file_server.rb', line 17 def get_file_server(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.FileServer", "value": "0004fb0000090000b2906e6e2750ffc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServer/0004fb0000090000b2906e6e2750ffc9", "name": "Local FS oracle-vm-server" }, "name": "Local FS oracle-vm-server", "description": "", "locked": false, "readOnly": false, "generation": 9, "userData": [], "resourceGroupIds": [], "fileSystemIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null } ], "fileServerType": "LOCAL", "zoneIds": [], "fileServerPluginId": { "type": "com.oracle.ovm.mgr.ws.model.FileServerPlugin", "value": "oracle.ocfs2.OCFS2.OCFS2Plugin (0.1.0-42.1)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServerPlugin/oracle.ocfs2.OCFS2.OCFS2Plugin%20(0.1.0-42.1)", "name": "Oracle OCFS2 File system" }, "accessHost": "", "storageDescription": null, "adminServerIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "refreshServerIds": null, "accessGroupIds": null, "uniformExports": null } JSON response end |
#get_file_server_plugin(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/fog/oracle/requests/compute/get_file_server_plugin.rb', line 17 def get_file_server_plugin(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.FileServerPlugin", "value": "oracle.ocfs2.OCFS2.OCFS2Plugin (0.1.0-42.1)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServerPlugin/oracle.ocfs2.OCFS2.OCFS2Plugin%20(0.1.0-42.1)", "name": "Oracle OCFS2 File system" }, "name": "Oracle OCFS2 File system", "description": "Oracle OCFS2 File system Storage Connect Plugin", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "fileServerIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileServer", "value": "0004fb0000090000b2906e6e2750ffc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServer/0004fb0000090000b2906e6e2750ffc9", "name": "Local FS oracle-vm-server" } ], "serverIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "storageAbilityRecords": [ { "ability": "CLONE", "value": "FULLY_SUPPORTED" }, { "ability": "CLONE_CUSTOM_NAME", "value": "YES" }, { "ability": "CLONE_SPLITTING_WHILE_OPEN", "value": "NO" }, { "ability": "STORAGE_NAME_REQUIRED", "value": "NO" }, { "ability": "CLONE_SPLITTING", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CLONE", "value": "FULLY_SUPPORTED" }, { "ability": "SNAPSHOT_CLONE_SYNCHRONOUS", "value": "YES" }, { "ability": "SNAPSHOT_SYNCHRONOUS", "value": "YES" }, { "ability": "CLONE_SYNCHRONOUS", "value": "YES" }, { "ability": "RESIZE", "value": "FULLY_SUPPORTED" }, { "ability": "CLONE_SPLITTING_SYNCHRONOUS", "value": "NO" }, { "ability": "SNAPSHOT_CUSTOM_NAME", "value": "YES" }, { "ability": "SNAPSHOT", "value": "FULLY_SUPPORTED" }, { "ability": "ACCESS_CONTROL", "value": "NO" }, { "ability": "RESIZE_SYNCHRONOUS", "value": "YES" } ], "pluginName": "Oracle OCFS2 File system", "pluginDescription": "Oracle OCFS2 File system Storage Connect Plugin", "pluginVendor": "Oracle", "pluginVersion": "0.1.0-42.1", "genericPlugin": false, "clusterRequired": true, "extraInfoHelpText": null, "backingDeviceType": "LOCALDEVICE_SINGLE" } JSON response end |
#get_file_system(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/fog/oracle/requests/compute/get_file_system.rb', line 17 def get_file_system(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 19, "userData": [], "resourceGroupIds": [], "fileServerIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileServer", "value": "0004fb0000090000b2906e6e2750ffc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServer/0004fb0000090000b2906e6e2750ffc9", "name": "Local FS oracle-vm-server" } ], "fileSystemMountIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileSystemMount", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_/OVS/Repositories/0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystemMount/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_%2FOVS%2FRepositories%2F0004fb00000300003076225fcb290271", "name": "oracle-vm-server_/OVS/Repositories/0004fb00000300003076225fcb290271" } ], "repositoryIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" } ], "storageElementId": { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb0000180000a2a5409294f4eb35", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb0000180000a2a5409294f4eb35", "name": "OVM_SYS_REPO_PART_35002538da0269d57" }, "clusterId": null, "clusterHeartbeatDeviceId": null, "path": "/dev/mapper/OVM_SYS_REPO_PART_35002538da0269d57", "size": 187709784064, "freeSize": 169837854720, "refreshed": true, "accessGroupId": null, "shared": false } JSON response end |
#get_file_system_mount(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/fog/oracle/requests/compute/get_file_system_mount.rb', line 17 def get_file_system_mount(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.FileSystemMount", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_/OVS/Repositories/0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystemMount/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_%2FOVS%2FRepositories%2F0004fb00000300003076225fcb290271", "name": "oracle-vm-server_/OVS/Repositories/0004fb00000300003076225fcb290271" }, "name": "oracle-vm-server_/OVS/Repositories/0004fb00000300003076225fcb290271", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "fileSystemId": { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null }, "absolutePath": "/OVS/Repositories/0004fb00000300003076225fcb290271", "sharePath": "", "options": null } JSON response end |
#get_job(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/fog/oracle/requests/compute/get_job.rb', line 17 def get_job(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.Job", "value": "1448899976258", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Job/1448899976258", "name": "StatsIntervalAdjusterTaskDbImpl_1448899976257" }, "name": "StatsIntervalAdjusterTaskDbImpl_1448899976257", "description": "Set statistic manager interval to 20 seconds", "locked": false, "readOnly": false, "generation": 0, "userData": null, "resourceGroupIds": null, "resultId": null, "jobRunState": "SUCCESS", "jobSummaryState": "SUCCESS", "done": true, "summaryDone": true, "jobGroup": false, "error": { "message": null, "type": null }, "progressMessage": null, "latestSummaryProgressMessage": null, "extraInfo": null, "parentJobId": null, "childJobIds": [], "user": "@OvmAdmin", "abortedByUser": null, "startTime": 1448899976345, "endTime": 1448899976365 } JSON response end |
#get_manager(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/fog/oracle/requests/compute/get_manager.rb', line 17 def get_manager(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.Manager", "value": "0004fb000001000078b1f88e034c8105", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Manager/0004fb000001000078b1f88e034c8105", "name": "OVM Manager" }, "name": "OVM Manager", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "managerUuid": "0004fb000001000078b1f88e034c8105", "managerVersion": "3.3.3.1085", "managerRunState": "RUNNING", "managerTime": 1448909471527 } JSON response end |
#get_network(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/fog/oracle/requests/compute/get_network.rb', line 17 def get_network(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" }, "name": "172.16.0.0", "description": "", "locked": false, "readOnly": false, "generation": 12, "userData": [], "resourceGroupIds": [], "roles": [ "MANAGEMENT", "CLUSTER_HEARTBEAT", "LIVE_MIGRATE", "VIRTUAL_MACHINE", "STORAGE" ], "virtualNicIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000f35dc14d694dadc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000f35dc14d694dadc9", "name": "00:21:f6:3a:60:bc" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000bcfbd74f6571fc9d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000bcfbd74f6571fc9d", "name": "Template Vnic" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000aaf69e494353ebb9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000aaf69e494353ebb9", "name": "00:21:f6:4b:c7:1d" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000d1272c5187d1bef0", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000d1272c5187d1bef0", "name": "00:21:f6:0f:d6:2c" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000db41c339b6242c51", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000db41c339b6242c51", "name": "00:21:f6:26:2d:d2" } ], "ethernetPortIds": [ { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000a0cc6d2cfde52f39", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000a0cc6d2cfde52f39", "name": "bond0 on oracle-vm-server" } ], "vlanInterfaceIds": [], "serverLocal": false, "mtu": 0, "serverId": null } JSON response end |
#get_repository(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/fog/oracle/requests/compute/get_repository.rb', line 17 def get_repository(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "name": "test-pool", "description": "", "locked": false, "readOnly": false, "generation": 17, "userData": [], "resourceGroupIds": [], "virtualDiskIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb000012000083f79193eb5f331e.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb000012000083f79193eb5f331e.img", "name": "test" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001200006b0be3e9eece06c8.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001200006b0be3e9eece06c8.img", "name": "test (2)" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000120000bd2532803aa551fe.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000120000bd2532803aa551fe.img", "name": "test (3)" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000120000be8645e8d8b9bf65.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000120000be8645e8d8b9bf65.img", "name": "Test3disk" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001200009da84520b0d03dd5.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001200009da84520b0d03dd5.img", "name": "Test4.0" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000371dba26e69f20f6.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000371dba26e69f20f6.iso", "name": "CentOS-7-x86_64-Minimal-1503-01.iso" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000d4103fe39b16ac7a.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000d4103fe39b16ac7a.iso", "name": "ubuntu-14.04.3-server-amd64.iso" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000b57ac11b9bf3970e.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000b57ac11b9bf3970e.iso", "name": "OracleLinux-R6-U7-Server-x86_64-dvd.iso" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001500009d25437163f7d3fb.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001500009d25437163f7d3fb.iso", "name": "OracleLinux-R7-U1-Server-x86_64-dvd.iso" } ], "vmIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000bc56cffe6e9aba7a", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000bc56cffe6e9aba7a", "name": "centos-7-template.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000fae47dddca76434d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000fae47dddca76434d", "name": "test2.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" } ], "assemblyIds": [], "presentedServerIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "fileSystemId": { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null }, "managerUuid": "0004fb000001000078b1f88e034c8105", "refreshed": true, "sharePath": "" } JSON response end |
#get_server(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 |
# File 'lib/fog/oracle/requests/compute/get_server.rb', line 17 def get_server(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "name": "oracle-vm-server", "description": "", "locked": false, "readOnly": false, "generation": 48, "userData": [], "resourceGroupIds": [], "serverRunState": "RUNNING", "ipAddress": "172.16.92.64", "serverRoles": [ "UTILITY", "VM" ], "maintenanceMode": false, "agentLogin": "oracle", "statisticInterval": 20, "ntpServers": [ "172.16.95.57" ], "biosVendor": "American Megatrends Inc.", "biosVersion": "F7", "biosReleaseDate": "01/17/2014", "processorType": "X86_64", "processorSpeed": 3591797, "populatedProcessorSockets": 1, "threadsPerCore": 2, "coresPerProcessorSocket": 4, "totalProcessorCores": 4, "enabledProcessorCores": 1, "memory": 16264, "usableMemory": 8509, "noExecuteFlag": true, "ovmVersion": "3.3.3-1085", "hostname": "oracle-vm-server", "managerUuid": "0004fb000001000078b1f88e034c8105", "manufacturer": "Gigabyte Technology Co., Ltd.", "productName": "To be filled by O.E.M.", "serialNumber": "To be filled by O.E.M.", "controlDomainIds": [ { "type": "com.oracle.ovm.mgr.ws.model.ControlDomain", "value": "0004fb0000210000e7c92f6882593287", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ControlDomain/0004fb0000210000e7c92f6882593287", "name": "Control Domain" } ], "cpuIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (1) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(1)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (2) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(2)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (3) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(3)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (4) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(4)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (5) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(5)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (6) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(6)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (7) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(7)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (8) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(8)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null } ], "hypervisor": { "capabilities": [ "XEN_3_0_PVM_x86_64", "XEN_3_0_PVM_x86_32", "XEN_3_0_HVM_x86_32", "XEN_3_0_HVM_x86_32_PAE", "XEN_3_0_HVM_x86_64" ], "version": "4.3.1OVM", "type": "XEN" }, "serverControllerId": null, "cpuCompatibilityGroupId": { "type": "com.oracle.ovm.mgr.ws.model.CpuCompatibilityGroup", "value": "Default_Intel_F6_M60", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/CpuCompatibilityGroup/Default_Intel_F6_M60", "name": "Default_Intel_Family:6_Model:60" }, "repositoryExportIds": [], "vmIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000fae47dddca76434d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000fae47dddca76434d", "name": "test2.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" } ], "serverPoolId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" }, "ethernetPortIds": [ { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000a0cc6d2cfde52f39", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000a0cc6d2cfde52f39", "name": "bond0 on oracle-vm-server" }, { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000bd65b4a15a3af1c8", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000bd65b4a15a3af1c8", "name": "eth0 on oracle-vm-server" } ], "clusterId": null, "networkIds": [], "fileSystemMountIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileSystemMount", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_/OVS/Repositories/0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystemMount/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_%2FOVS%2FRepositories%2F0004fb00000300003076225fcb290271", "name": "oracle-vm-server_/OVS/Repositories/0004fb00000300003076225fcb290271" } ], "fileServerPluginIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileServerPlugin", "value": "oracle.generic.NFSPlugin.GenericNFSPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServerPlugin/oracle.generic.NFSPlugin.GenericNFSPlugin%20(1.1.0)", "name": "Oracle Generic Network File System" }, { "type": "com.oracle.ovm.mgr.ws.model.FileServerPlugin", "value": "oracle.ocfs2.OCFS2.OCFS2Plugin (0.1.0-42.1)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServerPlugin/oracle.ocfs2.OCFS2.OCFS2Plugin%20(0.1.0-42.1)", "name": "Oracle OCFS2 File system" } ], "storageArrayPluginIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StorageArrayPlugin", "value": "oracle.generic.SCSIPlugin.GenericPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArrayPlugin/oracle.generic.SCSIPlugin.GenericPlugin%20(1.1.0)", "name": "Oracle Generic SCSI Plugin" } ], "localStorageArrayId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "0004fb000009000022fbc1cfc5f3deaf", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/0004fb000009000022fbc1cfc5f3deaf", "name": "Generic Local Storage Array @ oracle-vm-server" }, "storageInitiatorIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "iqn.1988-12.com.oracle:3bd917bbbc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/iqn.1988-12.com.oracle:3bd917bbbc1", "name": "iqn.1988-12.com.oracle:3bd917bbbc1" }, { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/storage.LocalStorageInitiator%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09" } ], "storageElementIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb00001800003ca68d467de2fe48", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb00001800003ca68d467de2fe48", "name": "350014ee65ae7247a" }, { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb0000180000a2a5409294f4eb35", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb0000180000a2a5409294f4eb35", "name": "OVM_SYS_REPO_PART_35002538da0269d57" } ], "refreshFileServerIds": [], "accessGroupIds": [], "localFileServerId": { "type": "com.oracle.ovm.mgr.ws.model.FileServer", "value": "0004fb0000090000b2906e6e2750ffc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServer/0004fb0000090000b2906e6e2750ffc9", "name": "Local FS oracle-vm-server" }, "serverAbilities": { "cluster": true, "nfs": true, "fibreChannel": true, "highAvailability": true, "vmSuspend": true, "perVmCpuOverSubscribe": true, "allVmCpuOverSubscribe": true, "bondModeActiveBackup": true, "bondModeLinkAggregation": true, "bondModeAdaptiveLoadBalancing": true, "mtuConfiguration": true, "localStorageElement": true, "vmMemoryAlignment": 1048576, "vncConsole": true, "serialConsole": true, "migrationSetup": false, "hvmMaxVnics": 8, "serverPackageUpdate": true, "powerOnWOL": true, "repositoryOnSharedDisk": true, "repositoryOnLocalDisk": true, "clusterFsOnPhysicalDisk": true, "vmEmptyCdrom": true, "iScsi": true }, "serverUpToDate": true, "rebootOnUpgrade": true, "protected": false } JSON response end |
#get_server_pool(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/fog/oracle/requests/compute/get_server_pool.rb', line 17 def get_server_pool(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" }, "name": "test-pool", "description": "", "locked": false, "readOnly": false, "generation": 8, "userData": [], "resourceGroupIds": [], "serverIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "masterServerId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "affinityGroupIds": [], "vmIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000fae47dddca76434d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000fae47dddca76434d", "name": "test2.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" } ], "unassignedVmIds": [], "clusterId": null, "virtualIp": "172.16.92.65", "keymap": "en-us", "secureVmMigrate": false, "serverPoolPolicyId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPoolPolicy", "value": "balancer_0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPoolPolicy/balancer_0004fb0000020000b5995e9c15a0a4a5", "name": null }, "zoneId": null, "vmStartPolicy": "BEST_SERVER", "serverUpdateConfigurationId": null } JSON response end |
#get_server_pool_policy(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/fog/oracle/requests/compute/get_server_pool_policy.rb', line 17 def get_server_pool_policy(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.ServerPoolPolicy", "value": "balancer_0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPoolPolicy/balancer_0004fb0000020000b5995e9c15a0a4a5", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "mode": "OFF", "cpuEnable": false, "periodMinutes": 10, "cpuThreshold": 75, "serverIds": [], "serverPoolNetworkPolicyIds": [], "serverPoolId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" } } JSON response end |
#get_server_update_configuration(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/fog/oracle/requests/compute/get_server_update_configuration.rb', line 17 def get_server_update_configuration(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.ServerUpdateConfiguration", "value": "GlobalX86ServerUpdateConfiguration", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerUpdateConfiguration/GlobalX86ServerUpdateConfiguration", "name": "GlobalX86ServerUpdateConfiguration" }, "name": "GlobalX86ServerUpdateConfiguration", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "serverPoolId": null, "repositoryType": "X86", "serverUpdateRepositoryConfigurationIds": [], "globalConfiguration": true } JSON response end |
#get_storage_array(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/fog/oracle/requests/compute/get_storage_array.rb', line 17 def get_storage_array(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged iSCSI Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20iSCSI%20Storage%20Array", "name": "Unmanaged iSCSI Storage Array" }, "name": "Unmanaged iSCSI Storage Array", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "zoneIds": [], "accessGroupIds": [], "storageArrayPluginId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArrayPlugin", "value": "oracle.generic.SCSIPlugin.GenericPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArrayPlugin/oracle.generic.SCSIPlugin.GenericPlugin%20(1.1.0)", "name": "Oracle Generic SCSI Plugin" }, "adminServerIds": [], "volumeGroupIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb000032000016113711f641fd5d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb000032000016113711f641fd5d", "name": "iSCSI Volume Group" } ], "serverId": null, "adminHostname": "", "adminUsername": "", "adminPassword": "****************", "status": null, "totalSize": -1, "usedSize": -1, "freeSize": -1, "allocatedSize": -1, "storageDescription": null, "extraInformation": null, "qosValues": [], "validated": true, "defaultArray": true, "storageName": null, "knownStorageNames": [], "storageType": "ISCSI", "accessHosts": [], "useChap": false } JSON response end |
#get_storage_array_plugin(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/fog/oracle/requests/compute/get_storage_array_plugin.rb', line 17 def get_storage_array_plugin(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageArrayPlugin", "value": "oracle.generic.SCSIPlugin.GenericPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArrayPlugin/oracle.generic.SCSIPlugin.GenericPlugin%20(1.1.0)", "name": "Oracle Generic SCSI Plugin" }, "name": "Oracle Generic SCSI Plugin", "description": "Oracle Storage Connect Plugin for Generic FC and iSCSI", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "storageArrayIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged FibreChannel Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20FibreChannel%20Storage%20Array", "name": "Unmanaged FibreChannel Storage Array" }, { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged iSCSI Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20iSCSI%20Storage%20Array", "name": "Unmanaged iSCSI Storage Array" }, { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "0004fb000009000022fbc1cfc5f3deaf", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/0004fb000009000022fbc1cfc5f3deaf", "name": "Generic Local Storage Array @ oracle-vm-server" } ], "serverIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "storageTypes": [ "FIBRECHANNEL", "ISCSI" ], "storageAbilityRecords": [ { "ability": "CLONE", "value": "UNSUPPORTED" }, { "ability": "CLONE_CUSTOM_NAME", "value": "UNSUPPORTED" }, { "ability": "STORAGE_NAME_REQUIRED", "value": "UNSUPPORTED" }, { "ability": "CLONE_SPLITTING", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CLONE", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CLONE_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "CLONE_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "RESIZE", "value": "UNSUPPORTED" }, { "ability": "CLONE_SPLITTING_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CUSTOM_NAME", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT", "value": "UNSUPPORTED" }, { "ability": "ACCESS_CONTROL", "value": "NO" }, { "ability": "RESIZE_SYNCHRONOUS", "value": "UNSUPPORTED" } ], "pluginName": "Oracle Generic SCSI Plugin", "pluginDescription": "Oracle Storage Connect Plugin for Generic FC and iSCSI", "pluginVendor": "Oracle", "pluginVersion": "1.1.0", "pluginMaxAccessGroupEntries": 0, "genericPlugin": true, "clusterRequired": false, "storageElementExtraInfoHelp": null, "storageArrayExtraInfoHelp": null, "singleAccessHostOnly": false } JSON response end |
#get_storage_element(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/fog/oracle/requests/compute/get_storage_element.rb', line 17 def get_storage_element(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb0000180000a2a5409294f4eb35", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb0000180000a2a5409294f4eb35", "name": "OVM_SYS_REPO_PART_35002538da0269d57" }, "name": "OVM_SYS_REPO_PART_35002538da0269d57", "description": "Samsung_SSD_850", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "accessGroupIds": [], "fileSystemIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null } ], "storagePathIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb00002800002b75d6956af23490", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb00002800002b75d6956af23490", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (OVM_SYS_REPO_PART_35002538da0269d57)" } ], "reservingServerIds": [], "vmDiskMappingIds": [], "volumeGroupId": { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb0000320000421c09640bba4393", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb0000320000421c09640bba4393", "name": "Local Storage Volume Group" }, "clusterHeartbeatDeviceId": null, "deviceNames": [], "extraInformation": "", "page83Id": "OVM_SYS_REPO_PART_35002538da0269d57", "qos": null, "serverReserved": false, "shareable": false, "size": 187709784064, "state": "UNKNOWN", "status": null, "storageTargetNames": [], "thinProvision": false, "type": "LUN", "userFriendlyName": null, "vendor": "ATA" } JSON response end |
#get_storage_initiator(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/fog/oracle/requests/compute/get_storage_initiator.rb', line 17 def get_storage_initiator(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/storage.LocalStorageInitiator%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09" }, "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "accessGroupIds": [], "storagePathIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb000028000024c3d48e6c823308", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb000028000024c3d48e6c823308", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (350014ee65ae7247a)" }, { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb00002800002b75d6956af23490", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb00002800002b75d6956af23490", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (OVM_SYS_REPO_PART_35002538da0269d57)" } ], "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "initiatorType": "LOCAL", "fibreChannelFabricName": null, "fibreChannelPortId": null, "fibreChannelPortType": null, "fibreChannelPortSpeed": null, "fibreChannelSupportedSpeeds": null, "fibreChannelNodeName": null } JSON response end |
#get_storage_path(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/fog/oracle/requests/compute/get_storage_path.rb', line 17 def get_storage_path(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb00002800002b75d6956af23490", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb00002800002b75d6956af23490", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (OVM_SYS_REPO_PART_35002538da0269d57)" }, "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (OVM_SYS_REPO_PART_35002538da0269d57)", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "storageInitiatorId": { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/storage.LocalStorageInitiator%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09" }, "storageTargetId": null, "storageElementId": { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb0000180000a2a5409294f4eb35", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb0000180000a2a5409294f4eb35", "name": "OVM_SYS_REPO_PART_35002538da0269d57" }, "scsiDeviceId": null, "multipathDevice": null, "ipAddress": null, "pathState": "PATH_UP" } JSON response end |
#get_virtual_disk(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/fog/oracle/requests/compute/get_virtual_disk.rb', line 17 def get_virtual_disk(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb000012000083f79193eb5f331e.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb000012000083f79193eb5f331e.img", "name": "test" }, "name": "test", "description": "", "locked": false, "readOnly": false, "generation": 2, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_DISK", "size": 10737418240, "onDiskSize": 0, "path": "/VirtualDisks/0004fb000012000083f79193eb5f331e.img", "shareable": false, "importFileName": null, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000f79077fbb602029e", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000f79077fbb602029e", "name": "Mapping for disk Id (0004fb000012000083f79193eb5f331e.img)" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null } JSON response end |
#get_virtual_nic(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/fog/oracle/requests/compute/get_virtual_nic.rb', line 17 def get_virtual_nic(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000d1272c5187d1bef0", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000d1272c5187d1bef0", "name": "00:21:f6:0f:d6:2c" }, "name": "00:21:f6:0f:d6:2c", "description": "", "locked": false, "readOnly": false, "generation": 2, "userData": [], "resourceGroupIds": [], "macAddress": "00:21:f6:0f:d6:2c", "ipAddresses": [], "interfaceName": "", "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, "networkId": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" } } JSON response end |
#get_virtual_switch(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/fog/oracle/requests/compute/get_virtual_switch.rb', line 17 def get_virtual_switch(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualSwitch", "value": "0004fb0000300000260eb4696557f882", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualSwitch/0004fb0000300000260eb4696557f882", "name": null }, "name": "", "description": "Virtual Switch for Port", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "networkId": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" }, "ethernetPortId": { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000a0cc6d2cfde52f39", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000a0cc6d2cfde52f39", "name": "bond0 on oracle-vm-server" }, "vlanInterfaceId": null } JSON response end |
#get_vm(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/fog/oracle/requests/compute/get_vm.rb', line 17 def get_vm(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, "name": "Test3.0", "description": "", "locked": false, "readOnly": false, "generation": 23, "userData": [], "resourceGroupIds": [], "vmRunState": "RUNNING", "cpuPriority": 50, "memory": 512, "memoryLimit": 512, "hugePagesEnabled": false, "cpuCount": 1, "cpuCountLimit": 1, "cpuUtilizationCap": 100, "highAvailability": false, "bootOrder": [ "CDROM", "DISK" ], "vmMouseType": "OS_DEFAULT", "osType": "Other Linux", "vmDomainType": "XEN_HVM", "diskLimit": 4, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000030d92b2d5d22870d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000030d92b2d5d22870d", "name": "Mapping for disk Id (0004fb0000120000be8645e8d8b9bf65.img)" } ], "virtualNicIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000d1272c5187d1bef0", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000d1272c5187d1bef0", "name": "00:21:f6:0f:d6:2c" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "serverPoolId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" }, "networkInstallPath": "", "vmCloneDefinitionIds": [], "origin": "", "keymapName": "en-us", "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "sslVncPort": "6902", "sslTtyPort": "10000", "affinityGroupIds": [], "osVersion": null, "kernelVersion": null, "guestDriverVersion": null, "vmApiVersion": null, "vmStartPolicy": "BEST_SERVER", "currentMemory": 515, "currentCpuCount": 1, "currentDomainId": 7, "architecture": null, "restartActionOnCrash": "RESTART", "restartActionOnPowerOff": "STOP", "restartActionOnRestart": "RESTART" } JSON response end |
#get_vm_disk_mapping(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/fog/oracle/requests/compute/get_vm_disk_mapping.rb', line 17 def get_vm_disk_mapping(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000065273ee6acff3715", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000065273ee6acff3715", "name": "Mapping for disk Id (0004fb00001200009da84520b0d03dd5.img)" }, "name": "Mapping for disk Id (0004fb00001200009da84520b0d03dd5.img)", "description": "", "locked": false, "readOnly": false, "generation": 3, "userData": [], "resourceGroupIds": [], "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" }, "virtualDiskId": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001200009da84520b0d03dd5.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001200009da84520b0d03dd5.img", "name": "Test4.0" }, "storageElementId": null, "diskTarget": 0, "emulatedBlockDevice": false, "diskWriteMode": "READ_WRITE" } JSON response end |
#get_volume_group(id) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/fog/oracle/requests/compute/get_volume_group.rb', line 17 def get_volume_group(id) response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON { "id": { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb0000320000d2f0672a5b606681", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb0000320000d2f0672a5b606681", "name": "FibreChannel Volume Group" }, "name": "FibreChannel Volume Group", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "storageArrayId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged FibreChannel Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20FibreChannel%20Storage%20Array", "name": "Unmanaged FibreChannel Storage Array" }, "storageElementIds": [], "totalSize": 0, "usedSize": 0, "freeSize": 0, "allocatedSize": 0, "volumeDescription": null, "nameOnArray": "Generic_SAN_Volume_Group" } JSON response end |
#ipaddresses(attributes = {}) ⇒ Object
302 303 304 |
# File 'lib/fog/oracle/compute.rb', line 302 def ipaddresses(attributes = {}) Fog::Compute::Oracle::IPAddresses.new({ :service => self }.merge(attributes)) end |
#list_access_groups ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_access_groups.rb', line 17 def list_access_groups() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_affinity_groups ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_affinity_groups.rb', line 17 def list_affinity_groups() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_assemblies ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_assemblies.rb', line 17 def list_assemblies() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_assembly_virtual_disks ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_assembly_virtual_disks.rb', line 17 def list_assembly_virtual_disks() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_assembly_vms ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_assembly_vms.rb', line 17 def list_assembly_vms() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_cluster_heartbeat_devices ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_cluster_heartbeat_devices.rb', line 17 def list_cluster_heartbeat_devices() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_cluster_storage_fses ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_cluster_storage_fses.rb', line 17 def list_cluster_storage_fses() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_clusters ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_clusters.rb', line 17 def list_clusters() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_control_domains ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/fog/oracle/requests/compute/list_control_domains.rb', line 17 def list_control_domains() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.ControlDomain", "value": "0004fb0000210000e7c92f6882593287", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ControlDomain/0004fb0000210000e7c92f6882593287", "name": "Control Domain" }, "name": "Control Domain", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "osType": "Linux", "osName": "Oracle VM server", "osMajorVersion": "3", "osMinorVersion": "3", "osKernelRelease": "3.8.13-68.3.3.el6uek.x86_64", "osKernelVersion": "#2 SMP Tue Jun 23 23:43:15 PDT 2015", "rpmVersion": "3.3.3-1.1.el6", "ovmVersion": "3.3.3-1085", "agentVersion": "3.3.3-1.1.el6", "memory": 1102, "cpuCount": 8, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } } ] JSON response end |
#list_cpu_compatibility_groups ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/fog/oracle/requests/compute/list_cpu_compatibility_groups.rb', line 17 def list_cpu_compatibility_groups() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.CpuCompatibilityGroup", "value": "Default_Intel_F6_M60", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/CpuCompatibilityGroup/Default_Intel_F6_M60", "name": "Default_Intel_Family:6_Model:60" }, "name": "Default_Intel_Family:6_Model:60", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "serverIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ] } ] JSON response end |
#list_cpus ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'lib/fog/oracle/requests/compute/list_cpus.rb', line 17 def list_cpus() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (8) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(8)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "cpuNumber": 8, "levelTwoCacheSize": 8192, "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat xsaveopt pln pts dtherm fsgsbase bmi1 hle avx2 bmi2 erms rtm", "modelName": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "virtualCpuNumber": -1, "vendorId": "GenuineIntel", "cpuFamily": 6, "cpuModel": 60, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (7) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(7)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "cpuNumber": 7, "levelTwoCacheSize": 8192, "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat xsaveopt pln pts dtherm fsgsbase bmi1 hle avx2 bmi2 erms rtm", "modelName": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "virtualCpuNumber": -1, "vendorId": "GenuineIntel", "cpuFamily": 6, "cpuModel": 60, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (6) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(6)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "cpuNumber": 6, "levelTwoCacheSize": 8192, "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat xsaveopt pln pts dtherm fsgsbase bmi1 hle avx2 bmi2 erms rtm", "modelName": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "virtualCpuNumber": -1, "vendorId": "GenuineIntel", "cpuFamily": 6, "cpuModel": 60, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (5) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(5)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "cpuNumber": 5, "levelTwoCacheSize": 8192, "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat xsaveopt pln pts dtherm fsgsbase bmi1 hle avx2 bmi2 erms rtm", "modelName": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "virtualCpuNumber": -1, "vendorId": "GenuineIntel", "cpuFamily": 6, "cpuModel": 60, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (4) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(4)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "cpuNumber": 4, "levelTwoCacheSize": 8192, "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat xsaveopt pln pts dtherm fsgsbase bmi1 hle avx2 bmi2 erms rtm", "modelName": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "virtualCpuNumber": -1, "vendorId": "GenuineIntel", "cpuFamily": 6, "cpuModel": 60, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (3) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(3)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "cpuNumber": 3, "levelTwoCacheSize": 8192, "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat xsaveopt pln pts dtherm fsgsbase bmi1 hle avx2 bmi2 erms rtm", "modelName": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "virtualCpuNumber": -1, "vendorId": "GenuineIntel", "cpuFamily": 6, "cpuModel": 60, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (2) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(2)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "cpuNumber": 2, "levelTwoCacheSize": 8192, "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat xsaveopt pln pts dtherm fsgsbase bmi1 hle avx2 bmi2 erms rtm", "modelName": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "virtualCpuNumber": -1, "vendorId": "GenuineIntel", "cpuFamily": 6, "cpuModel": 60, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (1) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(1)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "cpuNumber": 1, "levelTwoCacheSize": 8192, "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm ida arat xsaveopt pln pts dtherm fsgsbase bmi1 hle avx2 bmi2 erms rtm", "modelName": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz", "virtualCpuNumber": -1, "vendorId": "GenuineIntel", "cpuFamily": 6, "cpuModel": 60, "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } } ] JSON response end |
#list_ethernet_ports ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/fog/oracle/requests/compute/list_ethernet_ports.rb', line 17 def list_ethernet_ports() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000bd65b4a15a3af1c8", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000bd65b4a15a3af1c8", "name": "eth0 on oracle-vm-server" }, "name": "eth0 on oracle-vm-server", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "bondMode": null, "interfaceName": "eth0", "macAddress": "fc:aa:14:e3:f5:de", "mtu": 1500, "networkId": null, "physicalPortIds": null, "bondPortId": { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000a0cc6d2cfde52f39", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000a0cc6d2cfde52f39", "name": "bond0 on oracle-vm-server" }, "portType": "PHYSICAL", "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "vlanInterfaceIds": [], "portState": "PORT_UP", "virtualSwitchId": null, "ipaddresses": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000a0cc6d2cfde52f39", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000a0cc6d2cfde52f39", "name": "bond0 on oracle-vm-server" }, "name": "bond0 on oracle-vm-server", "description": "", "locked": false, "readOnly": false, "generation": 3, "userData": [], "resourceGroupIds": [], "bondMode": "ACTIVE_PASSIVE", "interfaceName": "bond0", "macAddress": "fc:aa:14:e3:f5:de", "mtu": 1500, "networkId": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" }, "physicalPortIds": [ { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000bd65b4a15a3af1c8", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000bd65b4a15a3af1c8", "name": "eth0 on oracle-vm-server" } ], "bondPortId": null, "portType": "BOND", "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "vlanInterfaceIds": [], "portState": "PORT_UP", "virtualSwitchId": { "type": "com.oracle.ovm.mgr.ws.model.VirtualSwitch", "value": "0004fb0000300000260eb4696557f882", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualSwitch/0004fb0000300000260eb4696557f882", "name": null }, "ipaddresses": [ { "address": "172.16.92.64", "netmask": "255.255.0.0", "type": "IPV4", "configType": "STATIC" } ] } ] JSON response end |
#list_file_server_plugins ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
# File 'lib/fog/oracle/requests/compute/list_file_server_plugins.rb', line 17 def list_file_server_plugins() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.FileServerPlugin", "value": "oracle.ocfs2.OCFS2.OCFS2Plugin (0.1.0-42.1)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServerPlugin/oracle.ocfs2.OCFS2.OCFS2Plugin%20(0.1.0-42.1)", "name": "Oracle OCFS2 File system" }, "name": "Oracle OCFS2 File system", "description": "Oracle OCFS2 File system Storage Connect Plugin", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "fileServerIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileServer", "value": "0004fb0000090000b2906e6e2750ffc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServer/0004fb0000090000b2906e6e2750ffc9", "name": "Local FS oracle-vm-server" } ], "serverIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "storageAbilityRecords": [ { "ability": "CLONE", "value": "FULLY_SUPPORTED" }, { "ability": "CLONE_CUSTOM_NAME", "value": "YES" }, { "ability": "CLONE_SPLITTING_WHILE_OPEN", "value": "NO" }, { "ability": "STORAGE_NAME_REQUIRED", "value": "NO" }, { "ability": "CLONE_SPLITTING", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CLONE", "value": "FULLY_SUPPORTED" }, { "ability": "SNAPSHOT_CLONE_SYNCHRONOUS", "value": "YES" }, { "ability": "SNAPSHOT_SYNCHRONOUS", "value": "YES" }, { "ability": "CLONE_SYNCHRONOUS", "value": "YES" }, { "ability": "RESIZE", "value": "FULLY_SUPPORTED" }, { "ability": "CLONE_SPLITTING_SYNCHRONOUS", "value": "NO" }, { "ability": "SNAPSHOT_CUSTOM_NAME", "value": "YES" }, { "ability": "SNAPSHOT", "value": "FULLY_SUPPORTED" }, { "ability": "ACCESS_CONTROL", "value": "NO" }, { "ability": "RESIZE_SYNCHRONOUS", "value": "YES" } ], "pluginName": "Oracle OCFS2 File system", "pluginDescription": "Oracle OCFS2 File system Storage Connect Plugin", "pluginVendor": "Oracle", "pluginVersion": "0.1.0-42.1", "genericPlugin": false, "clusterRequired": true, "extraInfoHelpText": null, "backingDeviceType": "LOCALDEVICE_SINGLE" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.FileServerPlugin", "value": "oracle.generic.NFSPlugin.GenericNFSPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServerPlugin/oracle.generic.NFSPlugin.GenericNFSPlugin%20(1.1.0)", "name": "Oracle Generic Network File System" }, "name": "Oracle Generic Network File System", "description": "Oracle Generic Network File System Storage Connect Plugin", "locked": false, "readOnly": false, "generation": 6, "userData": [], "resourceGroupIds": [], "fileServerIds": [], "serverIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "storageAbilityRecords": [ { "ability": "CLONE", "value": "UNSUPPORTED" }, { "ability": "CLONE_CUSTOM_NAME", "value": "UNSUPPORTED" }, { "ability": "CLONE_SPLITTING_WHILE_OPEN", "value": "UNSUPPORTED" }, { "ability": "STORAGE_NAME_REQUIRED", "value": "NO" }, { "ability": "CLONE_SPLITTING", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CLONE", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CLONE_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "CLONE_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "RESIZE", "value": "UNSUPPORTED" }, { "ability": "CLONE_SPLITTING_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CUSTOM_NAME", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT", "value": "UNSUPPORTED" }, { "ability": "ACCESS_CONTROL", "value": "NO" }, { "ability": "RESIZE_SYNCHRONOUS", "value": "UNSUPPORTED" } ], "pluginName": "Oracle Generic Network File System", "pluginDescription": "Oracle Generic Network File System Storage Connect Plugin", "pluginVendor": "Oracle", "pluginVersion": "1.1.0", "genericPlugin": true, "clusterRequired": false, "extraInfoHelpText": null, "backingDeviceType": "INVALID" } ] JSON response end |
#list_file_servers ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/fog/oracle/requests/compute/list_file_servers.rb', line 17 def list_file_servers() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.FileServer", "value": "0004fb0000090000b2906e6e2750ffc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServer/0004fb0000090000b2906e6e2750ffc9", "name": "Local FS oracle-vm-server" }, "name": "Local FS oracle-vm-server", "description": "", "locked": false, "readOnly": false, "generation": 9, "userData": [], "resourceGroupIds": [], "fileSystemIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null } ], "fileServerType": "LOCAL", "zoneIds": [], "fileServerPluginId": { "type": "com.oracle.ovm.mgr.ws.model.FileServerPlugin", "value": "oracle.ocfs2.OCFS2.OCFS2Plugin (0.1.0-42.1)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServerPlugin/oracle.ocfs2.OCFS2.OCFS2Plugin%20(0.1.0-42.1)", "name": "Oracle OCFS2 File system" }, "accessHost": "", "storageDescription": null, "adminServerIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "refreshServerIds": null, "accessGroupIds": null, "uniformExports": null } ] JSON response end |
#list_file_system_mounts ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/fog/oracle/requests/compute/list_file_system_mounts.rb', line 17 def list_file_system_mounts() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.FileSystemMount", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_/OVS/Repositories/0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystemMount/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_%2FOVS%2FRepositories%2F0004fb00000300003076225fcb290271", "name": "oracle-vm-server_/OVS/Repositories/0004fb00000300003076225fcb290271" }, "name": "oracle-vm-server_/OVS/Repositories/0004fb00000300003076225fcb290271", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "fileSystemId": { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null }, "absolutePath": "/OVS/Repositories/0004fb00000300003076225fcb290271", "sharePath": "", "options": null } ] JSON response end |
#list_file_systems ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/fog/oracle/requests/compute/list_file_systems.rb', line 17 def list_file_systems() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 19, "userData": [], "resourceGroupIds": [], "fileServerIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileServer", "value": "0004fb0000090000b2906e6e2750ffc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServer/0004fb0000090000b2906e6e2750ffc9", "name": "Local FS oracle-vm-server" } ], "fileSystemMountIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileSystemMount", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_/OVS/Repositories/0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystemMount/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_%2FOVS%2FRepositories%2F0004fb00000300003076225fcb290271", "name": "oracle-vm-server_/OVS/Repositories/0004fb00000300003076225fcb290271" } ], "repositoryIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" } ], "storageElementId": { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb0000180000a2a5409294f4eb35", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb0000180000a2a5409294f4eb35", "name": "OVM_SYS_REPO_PART_35002538da0269d57" }, "clusterId": null, "clusterHeartbeatDeviceId": null, "path": "/dev/mapper/OVM_SYS_REPO_PART_35002538da0269d57", "size": 187709784064, "freeSize": 169837854720, "refreshed": true, "accessGroupId": null, "shared": false } ] JSON response end |
#list_jobs ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/fog/oracle/requests/compute/list_jobs.rb', line 17 def list_jobs() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.Job", "value": "1448907178095", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Job/1448907178095", "name": "StatsIntervalAdjusterTaskDbImpl_1448907178094" }, "name": "StatsIntervalAdjusterTaskDbImpl_1448907178094", "description": "Set statistic manager interval to 20 seconds", "locked": false, "readOnly": false, "generation": 11, "userData": [], "resourceGroupIds": [], "resultId": null, "jobRunState": "SUCCESS", "jobSummaryState": "SUCCESS", "done": true, "summaryDone": true, "jobGroup": false, "error": null, "progressMessage": null, "latestSummaryProgressMessage": "", "extraInfo": null, "parentJobId": null, "childJobIds": [], "user": "@OvmAdmin", "abortedByUser": null, "startTime": 1448907178170, "endTime": 1448907178191 } ] JSON response end |
#list_managers ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/fog/oracle/requests/compute/list_managers.rb', line 17 def list_managers() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.Manager", "value": "0004fb000001000078b1f88e034c8105", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Manager/0004fb000001000078b1f88e034c8105", "name": "OVM Manager" }, "name": "OVM Manager", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "managerUuid": "0004fb000001000078b1f88e034c8105", "managerVersion": "3.3.3.1085", "managerRunState": "RUNNING", "managerTime": 1448909453163 } ] JSON response end |
#list_networks ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/fog/oracle/requests/compute/list_networks.rb', line 17 def list_networks() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" }, "name": "172.16.0.0", "description": "", "locked": false, "readOnly": false, "generation": 12, "userData": [], "resourceGroupIds": [], "roles": [ "MANAGEMENT", "CLUSTER_HEARTBEAT", "LIVE_MIGRATE", "VIRTUAL_MACHINE", "STORAGE" ], "virtualNicIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000f35dc14d694dadc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000f35dc14d694dadc9", "name": "00:21:f6:3a:60:bc" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000bcfbd74f6571fc9d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000bcfbd74f6571fc9d", "name": "Template Vnic" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000aaf69e494353ebb9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000aaf69e494353ebb9", "name": "00:21:f6:4b:c7:1d" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000d1272c5187d1bef0", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000d1272c5187d1bef0", "name": "00:21:f6:0f:d6:2c" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000db41c339b6242c51", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000db41c339b6242c51", "name": "00:21:f6:26:2d:d2" } ], "ethernetPortIds": [ { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000a0cc6d2cfde52f39", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000a0cc6d2cfde52f39", "name": "bond0 on oracle-vm-server" } ], "vlanInterfaceIds": [], "serverLocal": false, "mtu": 0, "serverId": null } ] JSON response end |
#list_repositories ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/fog/oracle/requests/compute/list_repositories.rb', line 17 def list_repositories() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "name": "test-pool", "description": "", "locked": false, "readOnly": false, "generation": 17, "userData": [], "resourceGroupIds": [], "virtualDiskIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb000012000083f79193eb5f331e.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb000012000083f79193eb5f331e.img", "name": "test" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001200006b0be3e9eece06c8.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001200006b0be3e9eece06c8.img", "name": "test (2)" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000120000bd2532803aa551fe.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000120000bd2532803aa551fe.img", "name": "test (3)" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000120000be8645e8d8b9bf65.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000120000be8645e8d8b9bf65.img", "name": "Test3disk" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001200009da84520b0d03dd5.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001200009da84520b0d03dd5.img", "name": "Test4.0" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000371dba26e69f20f6.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000371dba26e69f20f6.iso", "name": "CentOS-7-x86_64-Minimal-1503-01.iso" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000d4103fe39b16ac7a.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000d4103fe39b16ac7a.iso", "name": "ubuntu-14.04.3-server-amd64.iso" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000b57ac11b9bf3970e.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000b57ac11b9bf3970e.iso", "name": "OracleLinux-R6-U7-Server-x86_64-dvd.iso" }, { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001500009d25437163f7d3fb.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001500009d25437163f7d3fb.iso", "name": "OracleLinux-R7-U1-Server-x86_64-dvd.iso" } ], "vmIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000bc56cffe6e9aba7a", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000bc56cffe6e9aba7a", "name": "centos-7-template.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000fae47dddca76434d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000fae47dddca76434d", "name": "test2.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" } ], "assemblyIds": [], "presentedServerIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "fileSystemId": { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null }, "managerUuid": "0004fb000001000078b1f88e034c8105", "refreshed": true, "sharePath": "" } ] JSON response end |
#list_repository_exports ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_repository_exports.rb', line 17 def list_repository_exports() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_resource_groups ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_resource_groups.rb', line 17 def list_resource_groups() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_server_controllers ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_server_controllers.rb', line 17 def list_server_controllers() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_server_pool_network_policies ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_server_pool_network_policies.rb', line 17 def list_server_pool_network_policies() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_server_pool_policies ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/fog/oracle/requests/compute/list_server_pool_policies.rb', line 17 def list_server_pool_policies() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.ServerPoolPolicy", "value": "balancer_0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPoolPolicy/balancer_0004fb0000020000b5995e9c15a0a4a5", "name": null }, "name": "", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "mode": "OFF", "cpuEnable": false, "periodMinutes": 10, "cpuThreshold": 75, "serverIds": [], "serverPoolNetworkPolicyIds": [], "serverPoolId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" } } ] JSON response end |
#list_server_pools ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/fog/oracle/requests/compute/list_server_pools.rb', line 17 def list_server_pools() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" }, "name": "test-pool", "description": "", "locked": false, "readOnly": false, "generation": 8, "userData": [], "resourceGroupIds": [], "serverIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "masterServerId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "affinityGroupIds": [], "vmIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000fae47dddca76434d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000fae47dddca76434d", "name": "test2.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" } ], "unassignedVmIds": [], "clusterId": null, "virtualIp": "172.16.92.65", "keymap": "en-us", "secureVmMigrate": false, "serverPoolPolicyId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPoolPolicy", "value": "balancer_0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPoolPolicy/balancer_0004fb0000020000b5995e9c15a0a4a5", "name": null }, "zoneId": null, "vmStartPolicy": "BEST_SERVER", "serverUpdateConfigurationId": null } ] JSON response end |
#list_server_update_configurations ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/fog/oracle/requests/compute/list_server_update_configurations.rb', line 17 def list_server_update_configurations() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.ServerUpdateConfiguration", "value": "GlobalX86ServerUpdateConfiguration", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerUpdateConfiguration/GlobalX86ServerUpdateConfiguration", "name": "GlobalX86ServerUpdateConfiguration" }, "name": "GlobalX86ServerUpdateConfiguration", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "serverPoolId": null, "repositoryType": "X86", "serverUpdateRepositoryConfigurationIds": [], "globalConfiguration": true }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.ServerUpdateConfiguration", "value": "GlobalSparcServerUpdateConfiguration", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerUpdateConfiguration/GlobalSparcServerUpdateConfiguration", "name": "GlobalSparcServerUpdateConfiguration" }, "name": "GlobalSparcServerUpdateConfiguration", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "serverPoolId": null, "repositoryType": "SPARC", "serverUpdateRepositoryConfigurationIds": [], "globalConfiguration": true } ] JSON response end |
#list_server_update_repository_configurations ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_server_update_repository_configurations.rb', line 17 def list_server_update_repository_configurations() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_servers ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/fog/oracle/requests/compute/list_servers.rb', line 17 def list_servers() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "name": "oracle-vm-server", "description": "", "locked": false, "readOnly": false, "generation": 48, "userData": [], "resourceGroupIds": [], "serverRunState": "RUNNING", "ipAddress": "172.16.92.64", "serverRoles": [ "UTILITY", "VM" ], "maintenanceMode": false, "agentLogin": "oracle", "statisticInterval": 20, "ntpServers": [ "172.16.95.57" ], "biosVendor": "American Megatrends Inc.", "biosVersion": "F7", "biosReleaseDate": "01/17/2014", "processorType": "X86_64", "processorSpeed": 3591797, "populatedProcessorSockets": 1, "threadsPerCore": 2, "coresPerProcessorSocket": 4, "totalProcessorCores": 4, "enabledProcessorCores": 1, "memory": 16264, "usableMemory": 8509, "noExecuteFlag": true, "ovmVersion": "3.3.3-1085", "hostname": "oracle-vm-server", "managerUuid": "0004fb000001000078b1f88e034c8105", "manufacturer": "Gigabyte Technology Co., Ltd.", "productName": "To be filled by O.E.M.", "serialNumber": "To be filled by O.E.M.", "controlDomainIds": [ { "type": "com.oracle.ovm.mgr.ws.model.ControlDomain", "value": "0004fb0000210000e7c92f6882593287", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ControlDomain/0004fb0000210000e7c92f6882593287", "name": "Control Domain" } ], "cpuIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (1) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(1)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (2) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(2)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (3) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(3)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (4) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(4)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (5) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(5)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (6) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(6)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (7) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(7)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null }, { "type": "com.oracle.ovm.mgr.ws.model.Cpu", "value": "Processor (8) in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Cpu/Processor%20(8)%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": null } ], "hypervisor": { "capabilities": [ "XEN_3_0_PVM_x86_64", "XEN_3_0_PVM_x86_32", "XEN_3_0_HVM_x86_32", "XEN_3_0_HVM_x86_32_PAE", "XEN_3_0_HVM_x86_64" ], "version": "4.3.1OVM", "type": "XEN" }, "serverControllerId": null, "cpuCompatibilityGroupId": { "type": "com.oracle.ovm.mgr.ws.model.CpuCompatibilityGroup", "value": "Default_Intel_F6_M60", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/CpuCompatibilityGroup/Default_Intel_F6_M60", "name": "Default_Intel_Family:6_Model:60" }, "repositoryExportIds": [], "vmIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000fae47dddca76434d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000fae47dddca76434d", "name": "test2.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" } ], "serverPoolId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" }, "ethernetPortIds": [ { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000a0cc6d2cfde52f39", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000a0cc6d2cfde52f39", "name": "bond0 on oracle-vm-server" }, { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000bd65b4a15a3af1c8", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000bd65b4a15a3af1c8", "name": "eth0 on oracle-vm-server" } ], "clusterId": null, "networkIds": [], "fileSystemMountIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileSystemMount", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_/OVS/Repositories/0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystemMount/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09_mount_%2FOVS%2FRepositories%2F0004fb00000300003076225fcb290271", "name": "oracle-vm-server_/OVS/Repositories/0004fb00000300003076225fcb290271" } ], "fileServerPluginIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileServerPlugin", "value": "oracle.generic.NFSPlugin.GenericNFSPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServerPlugin/oracle.generic.NFSPlugin.GenericNFSPlugin%20(1.1.0)", "name": "Oracle Generic Network File System" }, { "type": "com.oracle.ovm.mgr.ws.model.FileServerPlugin", "value": "oracle.ocfs2.OCFS2.OCFS2Plugin (0.1.0-42.1)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServerPlugin/oracle.ocfs2.OCFS2.OCFS2Plugin%20(0.1.0-42.1)", "name": "Oracle OCFS2 File system" } ], "storageArrayPluginIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StorageArrayPlugin", "value": "oracle.generic.SCSIPlugin.GenericPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArrayPlugin/oracle.generic.SCSIPlugin.GenericPlugin%20(1.1.0)", "name": "Oracle Generic SCSI Plugin" } ], "localStorageArrayId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "0004fb000009000022fbc1cfc5f3deaf", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/0004fb000009000022fbc1cfc5f3deaf", "name": "Generic Local Storage Array @ oracle-vm-server" }, "storageInitiatorIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "iqn.1988-12.com.oracle:3bd917bbbc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/iqn.1988-12.com.oracle:3bd917bbbc1", "name": "iqn.1988-12.com.oracle:3bd917bbbc1" }, { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/storage.LocalStorageInitiator%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09" } ], "storageElementIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb00001800003ca68d467de2fe48", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb00001800003ca68d467de2fe48", "name": "350014ee65ae7247a" }, { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb0000180000a2a5409294f4eb35", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb0000180000a2a5409294f4eb35", "name": "OVM_SYS_REPO_PART_35002538da0269d57" } ], "refreshFileServerIds": [], "accessGroupIds": [], "localFileServerId": { "type": "com.oracle.ovm.mgr.ws.model.FileServer", "value": "0004fb0000090000b2906e6e2750ffc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileServer/0004fb0000090000b2906e6e2750ffc9", "name": "Local FS oracle-vm-server" }, "serverAbilities": { "cluster": true, "nfs": true, "fibreChannel": true, "highAvailability": true, "vmSuspend": true, "perVmCpuOverSubscribe": true, "allVmCpuOverSubscribe": true, "bondModeActiveBackup": true, "bondModeLinkAggregation": true, "bondModeAdaptiveLoadBalancing": true, "mtuConfiguration": true, "localStorageElement": true, "vmMemoryAlignment": 1048576, "vncConsole": true, "serialConsole": true, "migrationSetup": false, "hvmMaxVnics": 8, "serverPackageUpdate": true, "powerOnWOL": true, "repositoryOnSharedDisk": true, "repositoryOnLocalDisk": true, "clusterFsOnPhysicalDisk": true, "vmEmptyCdrom": true, "iScsi": true }, "serverUpToDate": true, "rebootOnUpgrade": true, "protected": false } ] JSON response end |
#list_storage_array_plugins ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/fog/oracle/requests/compute/list_storage_array_plugins.rb', line 17 def list_storage_array_plugins() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageArrayPlugin", "value": "oracle.generic.SCSIPlugin.GenericPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArrayPlugin/oracle.generic.SCSIPlugin.GenericPlugin%20(1.1.0)", "name": "Oracle Generic SCSI Plugin" }, "name": "Oracle Generic SCSI Plugin", "description": "Oracle Storage Connect Plugin for Generic FC and iSCSI", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "storageArrayIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged FibreChannel Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20FibreChannel%20Storage%20Array", "name": "Unmanaged FibreChannel Storage Array" }, { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged iSCSI Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20iSCSI%20Storage%20Array", "name": "Unmanaged iSCSI Storage Array" }, { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "0004fb000009000022fbc1cfc5f3deaf", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/0004fb000009000022fbc1cfc5f3deaf", "name": "Generic Local Storage Array @ oracle-vm-server" } ], "serverIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "storageTypes": [ "FIBRECHANNEL", "ISCSI" ], "storageAbilityRecords": [ { "ability": "CLONE", "value": "UNSUPPORTED" }, { "ability": "CLONE_CUSTOM_NAME", "value": "UNSUPPORTED" }, { "ability": "STORAGE_NAME_REQUIRED", "value": "UNSUPPORTED" }, { "ability": "CLONE_SPLITTING", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CLONE", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CLONE_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "CLONE_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "RESIZE", "value": "UNSUPPORTED" }, { "ability": "CLONE_SPLITTING_SYNCHRONOUS", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT_CUSTOM_NAME", "value": "UNSUPPORTED" }, { "ability": "SNAPSHOT", "value": "UNSUPPORTED" }, { "ability": "ACCESS_CONTROL", "value": "NO" }, { "ability": "RESIZE_SYNCHRONOUS", "value": "UNSUPPORTED" } ], "pluginName": "Oracle Generic SCSI Plugin", "pluginDescription": "Oracle Storage Connect Plugin for Generic FC and iSCSI", "pluginVendor": "Oracle", "pluginVersion": "1.1.0", "pluginMaxAccessGroupEntries": 0, "genericPlugin": true, "clusterRequired": false, "storageElementExtraInfoHelp": null, "storageArrayExtraInfoHelp": null, "singleAccessHostOnly": false } ] JSON response end |
#list_storage_arrays ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/fog/oracle/requests/compute/list_storage_arrays.rb', line 17 def list_storage_arrays() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged iSCSI Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20iSCSI%20Storage%20Array", "name": "Unmanaged iSCSI Storage Array" }, "name": "Unmanaged iSCSI Storage Array", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "zoneIds": [], "accessGroupIds": [], "storageArrayPluginId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArrayPlugin", "value": "oracle.generic.SCSIPlugin.GenericPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArrayPlugin/oracle.generic.SCSIPlugin.GenericPlugin%20(1.1.0)", "name": "Oracle Generic SCSI Plugin" }, "adminServerIds": [], "volumeGroupIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb000032000016113711f641fd5d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb000032000016113711f641fd5d", "name": "iSCSI Volume Group" } ], "serverId": null, "adminHostname": "", "adminUsername": "", "adminPassword": "****************", "status": null, "totalSize": -1, "usedSize": -1, "freeSize": -1, "allocatedSize": -1, "storageDescription": null, "extraInformation": null, "qosValues": [], "validated": true, "defaultArray": true, "storageName": null, "knownStorageNames": [], "storageType": "ISCSI", "accessHosts": [], "useChap": false }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged FibreChannel Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20FibreChannel%20Storage%20Array", "name": "Unmanaged FibreChannel Storage Array" }, "name": "Unmanaged FibreChannel Storage Array", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "zoneIds": [], "accessGroupIds": [], "storageArrayPluginId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArrayPlugin", "value": "oracle.generic.SCSIPlugin.GenericPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArrayPlugin/oracle.generic.SCSIPlugin.GenericPlugin%20(1.1.0)", "name": "Oracle Generic SCSI Plugin" }, "adminServerIds": [], "volumeGroupIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb0000320000d2f0672a5b606681", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb0000320000d2f0672a5b606681", "name": "FibreChannel Volume Group" } ], "serverId": null, "adminHostname": "", "adminUsername": "", "adminPassword": "****************", "status": null, "totalSize": -1, "usedSize": -1, "freeSize": -1, "allocatedSize": -1, "storageDescription": null, "extraInformation": null, "qosValues": [], "validated": true, "defaultArray": true, "storageName": null, "knownStorageNames": [], "storageType": "FIBRECHANNEL", "accessHosts": null, "useChap": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "0004fb000009000022fbc1cfc5f3deaf", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/0004fb000009000022fbc1cfc5f3deaf", "name": "Generic Local Storage Array @ oracle-vm-server" }, "name": "Generic Local Storage Array @ oracle-vm-server", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "zoneIds": [], "accessGroupIds": [], "storageArrayPluginId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArrayPlugin", "value": "oracle.generic.SCSIPlugin.GenericPlugin (1.1.0)", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArrayPlugin/oracle.generic.SCSIPlugin.GenericPlugin%20(1.1.0)", "name": "Oracle Generic SCSI Plugin" }, "adminServerIds": [ { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" } ], "volumeGroupIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb0000320000421c09640bba4393", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb0000320000421c09640bba4393", "name": "Local Storage Volume Group" } ], "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "adminHostname": "", "adminUsername": "", "adminPassword": "****************", "status": null, "totalSize": -1, "usedSize": -1, "freeSize": -1, "allocatedSize": -1, "storageDescription": null, "extraInformation": null, "qosValues": [], "validated": true, "defaultArray": false, "storageName": null, "knownStorageNames": [], "storageType": "LOCAL", "accessHosts": null, "useChap": null } ] JSON response end |
#list_storage_elements ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/fog/oracle/requests/compute/list_storage_elements.rb', line 17 def list_storage_elements() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb0000180000a2a5409294f4eb35", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb0000180000a2a5409294f4eb35", "name": "OVM_SYS_REPO_PART_35002538da0269d57" }, "name": "OVM_SYS_REPO_PART_35002538da0269d57", "description": "Samsung_SSD_850", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "accessGroupIds": [], "fileSystemIds": [ { "type": "com.oracle.ovm.mgr.ws.model.FileSystem", "value": "0004fb00000500003a887e2393804ccb", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/FileSystem/0004fb00000500003a887e2393804ccb", "name": null } ], "storagePathIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb00002800002b75d6956af23490", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb00002800002b75d6956af23490", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (OVM_SYS_REPO_PART_35002538da0269d57)" } ], "reservingServerIds": [], "vmDiskMappingIds": [], "volumeGroupId": { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb0000320000421c09640bba4393", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb0000320000421c09640bba4393", "name": "Local Storage Volume Group" }, "clusterHeartbeatDeviceId": null, "deviceNames": [], "extraInformation": "", "page83Id": "OVM_SYS_REPO_PART_35002538da0269d57", "qos": null, "serverReserved": false, "shareable": false, "size": 187709784064, "state": "UNKNOWN", "status": null, "storageTargetNames": [], "thinProvision": false, "type": "LUN", "userFriendlyName": null, "vendor": "ATA" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb00001800003ca68d467de2fe48", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb00001800003ca68d467de2fe48", "name": "350014ee65ae7247a" }, "name": "350014ee65ae7247a", "description": "WDC WD2003FZEX-0", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "accessGroupIds": [], "fileSystemIds": [], "storagePathIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb000028000024c3d48e6c823308", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb000028000024c3d48e6c823308", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (350014ee65ae7247a)" } ], "reservingServerIds": [], "vmDiskMappingIds": [], "volumeGroupId": { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb0000320000421c09640bba4393", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb0000320000421c09640bba4393", "name": "Local Storage Volume Group" }, "clusterHeartbeatDeviceId": null, "deviceNames": [], "extraInformation": "", "page83Id": "350014ee65ae7247a", "qos": null, "serverReserved": false, "shareable": false, "size": 2000398934016, "state": "UNKNOWN", "status": null, "storageTargetNames": [], "thinProvision": false, "type": "LUN", "userFriendlyName": null, "vendor": "ATA" } ] JSON response end |
#list_storage_initiators ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/fog/oracle/requests/compute/list_storage_initiators.rb', line 17 def list_storage_initiators() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/storage.LocalStorageInitiator%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09" }, "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "accessGroupIds": [], "storagePathIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb000028000024c3d48e6c823308", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb000028000024c3d48e6c823308", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (350014ee65ae7247a)" }, { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb00002800002b75d6956af23490", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb00002800002b75d6956af23490", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (OVM_SYS_REPO_PART_35002538da0269d57)" } ], "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "initiatorType": "LOCAL", "fibreChannelFabricName": null, "fibreChannelPortId": null, "fibreChannelPortType": null, "fibreChannelPortSpeed": null, "fibreChannelSupportedSpeeds": null, "fibreChannelNodeName": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "iqn.1988-12.com.oracle:3bd917bbbc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/iqn.1988-12.com.oracle:3bd917bbbc1", "name": "iqn.1988-12.com.oracle:3bd917bbbc1" }, "name": "iqn.1988-12.com.oracle:3bd917bbbc1", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "accessGroupIds": [], "storagePathIds": [], "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "initiatorType": "ISCSI", "fibreChannelFabricName": null, "fibreChannelPortId": null, "fibreChannelPortType": null, "fibreChannelPortSpeed": null, "fibreChannelSupportedSpeeds": null, "fibreChannelNodeName": null } ] JSON response end |
#list_storage_paths ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/fog/oracle/requests/compute/list_storage_paths.rb', line 17 def list_storage_paths() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb00002800002b75d6956af23490", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb00002800002b75d6956af23490", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (OVM_SYS_REPO_PART_35002538da0269d57)" }, "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (OVM_SYS_REPO_PART_35002538da0269d57)", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "storageInitiatorId": { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/storage.LocalStorageInitiator%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09" }, "storageTargetId": null, "storageElementId": { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb0000180000a2a5409294f4eb35", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb0000180000a2a5409294f4eb35", "name": "OVM_SYS_REPO_PART_35002538da0269d57" }, "scsiDeviceId": null, "multipathDevice": null, "ipAddress": null, "pathState": "PATH_UP" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.StoragePath", "value": "0004fb000028000024c3d48e6c823308", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StoragePath/0004fb000028000024c3d48e6c823308", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (350014ee65ae7247a)" }, "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09 (350014ee65ae7247a)", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "storageInitiatorId": { "type": "com.oracle.ovm.mgr.ws.model.StorageInitiator", "value": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageInitiator/storage.LocalStorageInitiator%20in%2003:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "storage.LocalStorageInitiator in 03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09" }, "storageTargetId": null, "storageElementId": { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb00001800003ca68d467de2fe48", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb00001800003ca68d467de2fe48", "name": "350014ee65ae7247a" }, "scsiDeviceId": null, "multipathDevice": null, "ipAddress": null, "pathState": "PATH_UP" } ] JSON response end |
#list_storage_targets ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_storage_targets.rb', line 17 def list_storage_targets() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_virtual_disks ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 |
# File 'lib/fog/oracle/requests/compute/list_virtual_disks.rb', line 17 def list_virtual_disks() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb000012000083f79193eb5f331e.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb000012000083f79193eb5f331e.img", "name": "test" }, "name": "test", "description": "", "locked": false, "readOnly": false, "generation": 2, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_DISK", "size": 10737418240, "onDiskSize": 0, "path": "/VirtualDisks/0004fb000012000083f79193eb5f331e.img", "shareable": false, "importFileName": null, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000f79077fbb602029e", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000f79077fbb602029e", "name": "Mapping for disk Id (0004fb000012000083f79193eb5f331e.img)" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000120000be8645e8d8b9bf65.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000120000be8645e8d8b9bf65.img", "name": "Test3disk" }, "name": "Test3disk", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_DISK", "size": 7516192768, "onDiskSize": 0, "path": "/VirtualDisks/0004fb0000120000be8645e8d8b9bf65.img", "shareable": false, "importFileName": null, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000030d92b2d5d22870d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000030d92b2d5d22870d", "name": "Mapping for disk Id (0004fb0000120000be8645e8d8b9bf65.img)" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001200009da84520b0d03dd5.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001200009da84520b0d03dd5.img", "name": "Test4.0" }, "name": "Test4.0", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_DISK", "size": 21474836480, "onDiskSize": 0, "path": "/VirtualDisks/0004fb00001200009da84520b0d03dd5.img", "shareable": false, "importFileName": null, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000065273ee6acff3715", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000065273ee6acff3715", "name": "Mapping for disk Id (0004fb00001200009da84520b0d03dd5.img)" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001200006b0be3e9eece06c8.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001200006b0be3e9eece06c8.img", "name": "test (2)" }, "name": "test (2)", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_DISK", "size": 10737418240, "onDiskSize": 1041235968, "path": "/VirtualDisks/0004fb00001200006b0be3e9eece06c8.img", "shareable": false, "importFileName": null, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb00001300007ec4ddf43e6c59ff", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb00001300007ec4ddf43e6c59ff", "name": "Mapping for disk Id (0004fb00001200006b0be3e9eece06c8.img)" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000120000bd2532803aa551fe.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000120000bd2532803aa551fe.img", "name": "test (3)" }, "name": "test (3)", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_DISK", "size": 10737418240, "onDiskSize": 1041235968, "path": "/VirtualDisks/0004fb0000120000bd2532803aa551fe.img", "shareable": false, "importFileName": null, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000034e2ae0bc056f1dd", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000034e2ae0bc056f1dd", "name": "Mapping for disk Id (0004fb0000120000bd2532803aa551fe.img)" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000b57ac11b9bf3970e.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000b57ac11b9bf3970e.iso", "name": "OracleLinux-R6-U7-Server-x86_64-dvd.iso" }, "name": "OracleLinux-R6-U7-Server-x86_64-dvd.iso", "description": "Import URL: http://iso.linuxquestions.org/download/908/9369/http/ftp5.gwdg.de/OracleLinux-R6-U7-Server-x86_64-dvd.iso", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_CDROM", "size": 3914334208, "onDiskSize": 3914334208, "path": "/ISOs/0004fb0000150000b57ac11b9bf3970e.iso", "shareable": true, "importFileName": "OracleLinux-R6-U7-Server-x86_64-dvd.iso", "vmDiskMappingIds": [], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001500009d25437163f7d3fb.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001500009d25437163f7d3fb.iso", "name": "OracleLinux-R7-U1-Server-x86_64-dvd.iso" }, "name": "OracleLinux-R7-U1-Server-x86_64-dvd.iso", "description": "Import URL: http://iso.linuxquestions.org/download/1684/9132/http/ftp.linux.org.uk/OracleLinux-R7-U1-Server-x86_64-dvd.iso", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_CDROM", "size": 4293918720, "onDiskSize": 4293918720, "path": "/ISOs/0004fb00001500009d25437163f7d3fb.iso", "shareable": true, "importFileName": "OracleLinux-R7-U1-Server-x86_64-dvd.iso", "vmDiskMappingIds": [], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000d4103fe39b16ac7a.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000d4103fe39b16ac7a.iso", "name": "ubuntu-14.04.3-server-amd64.iso" }, "name": "ubuntu-14.04.3-server-amd64.iso", "description": "Import URL: http://de.releases.ubuntu.com/14.04.3/ubuntu-14.04.3-server-amd64.iso", "locked": false, "readOnly": false, "generation": 2, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_CDROM", "size": 601882624, "onDiskSize": 601882624, "path": "/ISOs/0004fb0000150000d4103fe39b16ac7a.iso", "shareable": true, "importFileName": "ubuntu-14.04.3-server-amd64.iso", "vmDiskMappingIds": [], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000371dba26e69f20f6.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000371dba26e69f20f6.iso", "name": "CentOS-7-x86_64-Minimal-1503-01.iso" }, "name": "CentOS-7-x86_64-Minimal-1503-01.iso", "description": "Import URL: http://ftp.arnes.si/pub/mirrors/centos.org/7.1.1503/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso", "locked": false, "readOnly": false, "generation": 3, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_CDROM", "size": 666894336, "onDiskSize": 666894336, "path": "/ISOs/0004fb0000150000371dba26e69f20f6.iso", "shareable": true, "importFileName": "CentOS-7-x86_64-Minimal-1503-01.iso", "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000505334a03f0e1e7a", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000505334a03f0e1e7a", "name": "Mapping for disk Id (0004fb0000150000371dba26e69f20f6.iso)" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "assemblyVirtualDiskId": null }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "EMPTY_CDROM", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/EMPTY_CDROM", "name": "Empty CDROM" }, "name": "Empty CDROM", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "diskType": "VIRTUAL_CDROM", "size": 0, "onDiskSize": 0, "path": null, "shareable": true, "importFileName": null, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000066c06003eb4b125", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000066c06003eb4b125", "name": "Mapping for disk Id (0004fb0000150000371dba26e69f20f6.iso)" } ], "repositoryId": null, "assemblyVirtualDiskId": null } ] JSON response end |
#list_virtual_nics ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/fog/oracle/requests/compute/list_virtual_nics.rb', line 17 def list_virtual_nics() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000d1272c5187d1bef0", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000d1272c5187d1bef0", "name": "00:21:f6:0f:d6:2c" }, "name": "00:21:f6:0f:d6:2c", "description": "", "locked": false, "readOnly": false, "generation": 2, "userData": [], "resourceGroupIds": [], "macAddress": "00:21:f6:0f:d6:2c", "ipAddresses": [], "interfaceName": "", "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, "networkId": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000bcfbd74f6571fc9d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000bcfbd74f6571fc9d", "name": "Template Vnic" }, "name": "Template Vnic", "description": "A dummy vnic used only for templates", "locked": false, "readOnly": false, "generation": 2, "userData": [], "resourceGroupIds": [], "macAddress": null, "ipAddresses": [], "interfaceName": "", "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000bc56cffe6e9aba7a", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000bc56cffe6e9aba7a", "name": "centos-7-template.0" }, "networkId": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000aaf69e494353ebb9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000aaf69e494353ebb9", "name": "00:21:f6:4b:c7:1d" }, "name": "00:21:f6:4b:c7:1d", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "macAddress": "00:21:f6:4b:c7:1d", "ipAddresses": [], "interfaceName": "", "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000fae47dddca76434d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000fae47dddca76434d", "name": "test2.0" }, "networkId": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000db41c339b6242c51", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000db41c339b6242c51", "name": "00:21:f6:26:2d:d2" }, "name": "00:21:f6:26:2d:d2", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "macAddress": "00:21:f6:26:2d:d2", "ipAddresses": [], "interfaceName": "", "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" }, "networkId": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" } }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000f35dc14d694dadc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000f35dc14d694dadc9", "name": "00:21:f6:3a:60:bc" }, "name": "00:21:f6:3a:60:bc", "description": "", "locked": false, "readOnly": false, "generation": 3, "userData": [], "resourceGroupIds": [], "macAddress": "00:21:f6:3a:60:bc", "ipAddresses": [], "interfaceName": "", "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, "networkId": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" } } ] JSON response end |
#list_virtual_switches ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/fog/oracle/requests/compute/list_virtual_switches.rb', line 17 def list_virtual_switches() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.VirtualSwitch", "value": "0004fb0000300000260eb4696557f882", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualSwitch/0004fb0000300000260eb4696557f882", "name": null }, "name": "", "description": "Virtual Switch for Port", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "networkId": { "type": "com.oracle.ovm.mgr.ws.model.Network", "value": "ac100000", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Network/ac100000", "name": "172.16.0.0" }, "ethernetPortId": { "type": "com.oracle.ovm.mgr.ws.model.EthernetPort", "value": "0004fb0000200000a0cc6d2cfde52f39", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/EthernetPort/0004fb0000200000a0cc6d2cfde52f39", "name": "bond0 on oracle-vm-server" }, "vlanInterfaceId": null } ] JSON response end |
#list_vlan_interfaces ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_vlan_interfaces.rb', line 17 def list_vlan_interfaces() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_vm_clone_definitions ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_vm_clone_definitions.rb', line 17 def list_vm_clone_definitions() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_vm_clone_network_mappings ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_vm_clone_network_mappings.rb', line 17 def list_vm_clone_network_mappings() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_vm_clone_storage_mappings ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_vm_clone_storage_mappings.rb', line 17 def list_vm_clone_storage_mappings() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#list_vm_disk_mappings ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
# File 'lib/fog/oracle/requests/compute/list_vm_disk_mappings.rb', line 17 def list_vm_disk_mappings() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000065273ee6acff3715", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000065273ee6acff3715", "name": "Mapping for disk Id (0004fb00001200009da84520b0d03dd5.img)" }, "name": "Mapping for disk Id (0004fb00001200009da84520b0d03dd5.img)", "description": "", "locked": false, "readOnly": false, "generation": 3, "userData": [], "resourceGroupIds": [], "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" }, "virtualDiskId": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001200009da84520b0d03dd5.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001200009da84520b0d03dd5.img", "name": "Test4.0" }, "storageElementId": null, "diskTarget": 0, "emulatedBlockDevice": false, "diskWriteMode": "READ_WRITE" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000f79077fbb602029e", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000f79077fbb602029e", "name": "Mapping for disk Id (0004fb000012000083f79193eb5f331e.img)" }, "name": "Mapping for disk Id (0004fb000012000083f79193eb5f331e.img)", "description": "", "locked": false, "readOnly": false, "generation": 3, "userData": [], "resourceGroupIds": [], "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, "virtualDiskId": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb000012000083f79193eb5f331e.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb000012000083f79193eb5f331e.img", "name": "test" }, "storageElementId": null, "diskTarget": 1, "emulatedBlockDevice": false, "diskWriteMode": "READ_WRITE" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000066c06003eb4b125", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000066c06003eb4b125", "name": "Mapping for disk Id (0004fb0000150000371dba26e69f20f6.iso)" }, "name": "Mapping for disk Id (0004fb0000150000371dba26e69f20f6.iso)", "description": "", "locked": false, "readOnly": false, "generation": 4, "userData": [], "resourceGroupIds": [], "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" }, "virtualDiskId": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "EMPTY_CDROM", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/EMPTY_CDROM", "name": "Empty CDROM" }, "storageElementId": null, "diskTarget": 1, "emulatedBlockDevice": false, "diskWriteMode": "READ_ONLY" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000505334a03f0e1e7a", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000505334a03f0e1e7a", "name": "Mapping for disk Id (0004fb0000150000371dba26e69f20f6.iso)" }, "name": "Mapping for disk Id (0004fb0000150000371dba26e69f20f6.iso)", "description": "", "locked": false, "readOnly": false, "generation": 2, "userData": [], "resourceGroupIds": [], "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, "virtualDiskId": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000150000371dba26e69f20f6.iso", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000150000371dba26e69f20f6.iso", "name": "CentOS-7-x86_64-Minimal-1503-01.iso" }, "storageElementId": null, "diskTarget": 0, "emulatedBlockDevice": false, "diskWriteMode": "READ_ONLY" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000030d92b2d5d22870d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000030d92b2d5d22870d", "name": "Mapping for disk Id (0004fb0000120000be8645e8d8b9bf65.img)" }, "name": "Mapping for disk Id (0004fb0000120000be8645e8d8b9bf65.img)", "description": "", "locked": false, "readOnly": false, "generation": 3, "userData": [], "resourceGroupIds": [], "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, "virtualDiskId": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000120000be8645e8d8b9bf65.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000120000be8645e8d8b9bf65.img", "name": "Test3disk" }, "storageElementId": null, "diskTarget": 0, "emulatedBlockDevice": false, "diskWriteMode": "READ_WRITE" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb00001300007ec4ddf43e6c59ff", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb00001300007ec4ddf43e6c59ff", "name": "Mapping for disk Id (0004fb00001200006b0be3e9eece06c8.img)" }, "name": "Mapping for disk Id (0004fb00001200006b0be3e9eece06c8.img)", "description": "", "locked": false, "readOnly": false, "generation": 2, "userData": [], "resourceGroupIds": [], "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000bc56cffe6e9aba7a", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000bc56cffe6e9aba7a", "name": "centos-7-template.0" }, "virtualDiskId": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb00001200006b0be3e9eece06c8.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb00001200006b0be3e9eece06c8.img", "name": "test (2)" }, "storageElementId": null, "diskTarget": 1, "emulatedBlockDevice": false, "diskWriteMode": "READ_WRITE" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000034e2ae0bc056f1dd", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000034e2ae0bc056f1dd", "name": "Mapping for disk Id (0004fb0000120000bd2532803aa551fe.img)" }, "name": "Mapping for disk Id (0004fb0000120000bd2532803aa551fe.img)", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "vmId": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000fae47dddca76434d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000fae47dddca76434d", "name": "test2.0" }, "virtualDiskId": { "type": "com.oracle.ovm.mgr.ws.model.VirtualDisk", "value": "0004fb0000120000bd2532803aa551fe.img", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualDisk/0004fb0000120000bd2532803aa551fe.img", "name": "test (3)" }, "storageElementId": null, "diskTarget": 1, "emulatedBlockDevice": false, "diskWriteMode": "READ_WRITE" } ] JSON response end |
#list_vms ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
# File 'lib/fog/oracle/requests/compute/list_vms.rb', line 17 def list_vms() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600006f8e65a5d245ea0c", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600006f8e65a5d245ea0c", "name": "Test3.0" }, "name": "Test3.0", "description": "", "locked": false, "readOnly": false, "generation": 23, "userData": [], "resourceGroupIds": [], "vmRunState": "RUNNING", "cpuPriority": 50, "memory": 512, "memoryLimit": 512, "hugePagesEnabled": false, "cpuCount": 1, "cpuCountLimit": 1, "cpuUtilizationCap": 100, "highAvailability": false, "bootOrder": [ "CDROM", "DISK" ], "vmMouseType": "OS_DEFAULT", "osType": "Other Linux", "vmDomainType": "XEN_HVM", "diskLimit": 4, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000030d92b2d5d22870d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000030d92b2d5d22870d", "name": "Mapping for disk Id (0004fb0000120000be8645e8d8b9bf65.img)" } ], "virtualNicIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000d1272c5187d1bef0", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000d1272c5187d1bef0", "name": "00:21:f6:0f:d6:2c" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "serverPoolId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" }, "networkInstallPath": "", "vmCloneDefinitionIds": [], "origin": "", "keymapName": "en-us", "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "sslVncPort": "6902", "sslTtyPort": "10000", "affinityGroupIds": [], "osVersion": null, "kernelVersion": null, "guestDriverVersion": null, "vmApiVersion": null, "vmStartPolicy": "BEST_SERVER", "currentMemory": 515, "currentCpuCount": 1, "currentDomainId": 7, "architecture": null, "restartActionOnCrash": "RESTART", "restartActionOnPowerOff": "STOP", "restartActionOnRestart": "RESTART" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000bc56cffe6e9aba7a", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000bc56cffe6e9aba7a", "name": "centos-7-template.0" }, "name": "centos-7-template.0", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "vmRunState": "TEMPLATE", "cpuPriority": 50, "memory": 1024, "memoryLimit": 1024, "hugePagesEnabled": false, "cpuCount": 1, "cpuCountLimit": 1, "cpuUtilizationCap": 100, "highAvailability": false, "bootOrder": [ "DISK", "CDROM" ], "vmMouseType": "OS_DEFAULT", "osType": "Other Linux", "vmDomainType": "XEN_HVM", "diskLimit": 4, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb00001300007ec4ddf43e6c59ff", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb00001300007ec4ddf43e6c59ff", "name": "Mapping for disk Id (0004fb00001200006b0be3e9eece06c8.img)" } ], "virtualNicIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000bcfbd74f6571fc9d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000bcfbd74f6571fc9d", "name": "Template Vnic" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "serverPoolId": null, "networkInstallPath": "", "vmCloneDefinitionIds": [], "origin": "", "keymapName": "en-us", "serverId": null, "sslVncPort": null, "sslTtyPort": null, "affinityGroupIds": null, "osVersion": null, "kernelVersion": null, "guestDriverVersion": null, "vmApiVersion": null, "vmStartPolicy": null, "currentMemory": -1, "currentCpuCount": -1, "currentDomainId": -1, "architecture": null, "restartActionOnCrash": "RESTART", "restartActionOnPowerOff": "STOP", "restartActionOnRestart": "RESTART" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb00000600002d441b5e6431b729", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb00000600002d441b5e6431b729", "name": "test" }, "name": "test", "description": "", "locked": false, "readOnly": false, "generation": 13, "userData": [], "resourceGroupIds": [], "vmRunState": "RUNNING", "cpuPriority": 50, "memory": 1024, "memoryLimit": 1024, "hugePagesEnabled": false, "cpuCount": 1, "cpuCountLimit": 1, "cpuUtilizationCap": 100, "highAvailability": false, "bootOrder": [ "DISK", "CDROM" ], "vmMouseType": "OS_DEFAULT", "osType": "Other Linux", "vmDomainType": "XEN_HVM", "diskLimit": 4, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000505334a03f0e1e7a", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000505334a03f0e1e7a", "name": "Mapping for disk Id (0004fb0000150000371dba26e69f20f6.iso)" }, { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000f79077fbb602029e", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000f79077fbb602029e", "name": "Mapping for disk Id (0004fb000012000083f79193eb5f331e.img)" } ], "virtualNicIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000f35dc14d694dadc9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000f35dc14d694dadc9", "name": "00:21:f6:3a:60:bc" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "serverPoolId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" }, "networkInstallPath": "", "vmCloneDefinitionIds": [], "origin": "", "keymapName": "en-us", "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "sslVncPort": "6900", "sslTtyPort": "10001", "affinityGroupIds": [], "osVersion": null, "kernelVersion": null, "guestDriverVersion": null, "vmApiVersion": null, "vmStartPolicy": "BEST_SERVER", "currentMemory": 1030, "currentCpuCount": 1, "currentDomainId": 2, "architecture": null, "restartActionOnCrash": "RESTART", "restartActionOnPowerOff": "STOP", "restartActionOnRestart": "RESTART" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000fae47dddca76434d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000fae47dddca76434d", "name": "test2.0" }, "name": "test2.0", "description": "", "locked": false, "readOnly": false, "generation": 5, "userData": [], "resourceGroupIds": [], "vmRunState": "RUNNING", "cpuPriority": 50, "memory": 1024, "memoryLimit": 1024, "hugePagesEnabled": false, "cpuCount": 1, "cpuCountLimit": 1, "cpuUtilizationCap": 100, "highAvailability": false, "bootOrder": [ "DISK", "CDROM" ], "vmMouseType": "OS_DEFAULT", "osType": "Other Linux", "vmDomainType": "XEN_HVM", "diskLimit": 4, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000034e2ae0bc056f1dd", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000034e2ae0bc056f1dd", "name": "Mapping for disk Id (0004fb0000120000bd2532803aa551fe.img)" } ], "virtualNicIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000aaf69e494353ebb9", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000aaf69e494353ebb9", "name": "00:21:f6:4b:c7:1d" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "serverPoolId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" }, "networkInstallPath": "", "vmCloneDefinitionIds": [], "origin": "", "keymapName": "en-us", "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "sslVncPort": "6901", "sslTtyPort": "10003", "affinityGroupIds": [], "osVersion": null, "kernelVersion": null, "guestDriverVersion": null, "vmApiVersion": null, "vmStartPolicy": "USE_POOL_POLICY", "currentMemory": 1027, "currentCpuCount": 1, "currentDomainId": 3, "architecture": null, "restartActionOnCrash": "RESTART", "restartActionOnPowerOff": "STOP", "restartActionOnRestart": "RESTART" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.Vm", "value": "0004fb0000060000048aa9b21a891dc1", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Vm/0004fb0000060000048aa9b21a891dc1", "name": "Test4.0" }, "name": "Test4.0", "description": "", "locked": false, "readOnly": false, "generation": 35, "userData": [], "resourceGroupIds": [], "vmRunState": "RUNNING", "cpuPriority": 50, "memory": 4096, "memoryLimit": 4096, "hugePagesEnabled": false, "cpuCount": 2, "cpuCountLimit": 2, "cpuUtilizationCap": 100, "highAvailability": false, "bootOrder": [ "DISK", "CDROM" ], "vmMouseType": "OS_DEFAULT", "osType": "Red Hat Enterprise Linux 7", "vmDomainType": "XEN_HVM", "diskLimit": 4, "vmDiskMappingIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb000013000065273ee6acff3715", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb000013000065273ee6acff3715", "name": "Mapping for disk Id (0004fb00001200009da84520b0d03dd5.img)" }, { "type": "com.oracle.ovm.mgr.ws.model.VmDiskMapping", "value": "0004fb0000130000066c06003eb4b125", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VmDiskMapping/0004fb0000130000066c06003eb4b125", "name": "Mapping for disk Id (0004fb0000150000371dba26e69f20f6.iso)" } ], "virtualNicIds": [ { "type": "com.oracle.ovm.mgr.ws.model.VirtualNic", "value": "0004fb0000070000db41c339b6242c51", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VirtualNic/0004fb0000070000db41c339b6242c51", "name": "00:21:f6:26:2d:d2" } ], "repositoryId": { "type": "com.oracle.ovm.mgr.ws.model.Repository", "value": "0004fb00000300003076225fcb290271", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Repository/0004fb00000300003076225fcb290271", "name": "test-pool" }, "serverPoolId": { "type": "com.oracle.ovm.mgr.ws.model.ServerPool", "value": "0004fb0000020000b5995e9c15a0a4a5", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/ServerPool/0004fb0000020000b5995e9c15a0a4a5", "name": "test-pool" }, "networkInstallPath": "", "vmCloneDefinitionIds": [], "origin": "", "keymapName": "en-us", "serverId": { "type": "com.oracle.ovm.mgr.ws.model.Server", "value": "03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/Server/03:aa:02:fc:04:14:05:e3:f5:06:de:07:00:08:00:09", "name": "oracle-vm-server" }, "sslVncPort": "6903", "sslTtyPort": "10006", "affinityGroupIds": [], "osVersion": null, "kernelVersion": null, "guestDriverVersion": null, "vmApiVersion": null, "vmStartPolicy": "BEST_SERVER", "currentMemory": 3843, "currentCpuCount": 2, "currentDomainId": 13, "architecture": null, "restartActionOnCrash": "RESTART", "restartActionOnPowerOff": "STOP", "restartActionOnRestart": "RESTART" } ] JSON response end |
#list_volume_groups ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/fog/oracle/requests/compute/list_volume_groups.rb', line 17 def list_volume_groups() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [ { "id": { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb0000320000d2f0672a5b606681", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb0000320000d2f0672a5b606681", "name": "FibreChannel Volume Group" }, "name": "FibreChannel Volume Group", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "storageArrayId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged FibreChannel Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20FibreChannel%20Storage%20Array", "name": "Unmanaged FibreChannel Storage Array" }, "storageElementIds": [], "totalSize": 0, "usedSize": 0, "freeSize": 0, "allocatedSize": 0, "volumeDescription": null, "nameOnArray": "Generic_SAN_Volume_Group" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb0000320000421c09640bba4393", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb0000320000421c09640bba4393", "name": "Local Storage Volume Group" }, "name": "Local Storage Volume Group", "description": "", "locked": false, "readOnly": false, "generation": 1, "userData": [], "resourceGroupIds": [], "storageArrayId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "0004fb000009000022fbc1cfc5f3deaf", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/0004fb000009000022fbc1cfc5f3deaf", "name": "Generic Local Storage Array @ oracle-vm-server" }, "storageElementIds": [ { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb0000180000a2a5409294f4eb35", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb0000180000a2a5409294f4eb35", "name": "OVM_SYS_REPO_PART_35002538da0269d57" }, { "type": "com.oracle.ovm.mgr.ws.model.StorageElement", "value": "0004fb00001800003ca68d467de2fe48", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageElement/0004fb00001800003ca68d467de2fe48", "name": "350014ee65ae7247a" } ], "totalSize": 0, "usedSize": 0, "freeSize": 0, "allocatedSize": 0, "volumeDescription": null, "nameOnArray": "Local_Storage_Volume_Group" }, { "id": { "type": "com.oracle.ovm.mgr.ws.model.VolumeGroup", "value": "0004fb000032000016113711f641fd5d", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/VolumeGroup/0004fb000032000016113711f641fd5d", "name": "iSCSI Volume Group" }, "name": "iSCSI Volume Group", "description": "", "locked": false, "readOnly": false, "generation": 0, "userData": [], "resourceGroupIds": [], "storageArrayId": { "type": "com.oracle.ovm.mgr.ws.model.StorageArray", "value": "Unmanaged iSCSI Storage Array", "uri": "https://172.16.95.57:7002/ovm/core/wsapi/rest/StorageArray/Unmanaged%20iSCSI%20Storage%20Array", "name": "Unmanaged iSCSI Storage Array" }, "storageElementIds": [], "totalSize": 0, "usedSize": 0, "freeSize": 0, "allocatedSize": 0, "volumeDescription": null, "nameOnArray": "Generic_iSCSI_Volume_Group" } ] JSON response end |
#list_zones ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/fog/oracle/requests/compute/list_zones.rb', line 17 def list_zones() response = Excon::Response.new response.status = 200 response.body = json_decode <<-JSON [] JSON response end |
#login ⇒ Object
15 16 17 18 19 20 |
# File 'lib/fog/oracle/requests/compute/login.rb', line 15 def login() response = Excon::Response.new response.status = 200 response.body = '' response end |