-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path_client.rb.example
68 lines (62 loc) · 2.91 KB
/
_client.rb.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
require_relative './../lib/oneview-sdk'
require 'pry'
@client = OneviewSDK::Client.new(
url: 'https://oneview.example.com', # or set ENV['ONEVIEWSDK_URL']
user: 'Administrator', # or set ENV['ONEVIEWSDK_USER']
password: 'secret123', # or set ENV['ONEVIEWSDK_PASSWORD']
ssl_enabled: false,
api_version: 3000
)
## This setting allows the SDK to flush messages to the screen as it is being run.
# # It defaults to true when a client is created, and can be set to false in order
# # to only flush at the end of execution.
# STDOUT.sync = false
# This setting allows for use of the shortened name of the resources, like OneviewSDK::<Resource_name>,
# when referring to OneviewSDK::<API_version>::Synergy::<Resource_name>
# Versions supported: [200, 300, 500, 600, 800, 1000, 1200, 1600, 1800, 2000, 2200, 2400, 2600]
# Variants supported[C7000, Synergy]
# OneviewSDK::API<version>.variant='Synergy'
puts "Connected to OneView appliance at #{@client.url}\n\n"
# Instance variables for examples:
# @server_hardware_type_uri = '/rest/server-hardware-types/11111111-1111-1111-1111-111111111111'
# @enclosure_group_uri = '/rest/enclosure-groups/11111111-1111-1111-1111-111111111111'
# @enclosure_name = '0000A66101'
# @enclosure_hostname = '172.1.1.11'
# @enclosure_username = 'Administrator'
# @enclosure_password = 'password123'
# @ipdu_username = 'dcs'
# @ipdu_password = 'dcs'
# @ipdu_hostname = '172.18.8.12'
# @server_hardware_hostname = '172.1.1.12'
# @server_hardware_username = 'Administrator'
# @server_hardware_password = 'password123'
# @server_mpHostsAndRanges = ["Hostname.Domain", "172.1.1.10-172.1.1.20"]
# @storage_system_ip = '172.18.11.11'
# @storage_system_username = 'Administrator'
# @storage_system_password = 'password123'
# @store_virtual_ip = "172.18.30.1",
# @store_virtual_user = "dcs",
# @store_virtual_password = "dcs",
# @unmanaged_volume_wwn = 'DC:72:02:07:87:00:10:00:30:71:49:79:72:48:86:60'
# @firmware_bundle_spp_path = 'custom-spp-c7000.iso'
# @firmware_bundle_hotfix_path = 'hp-firmware-a1b08f8a6b-HPGH-1.1.i386.rpm'
# @sas_interconnect_type = 'Synergy 12Gb SAS Connection Module'
# @synergy_enclosure_hostname = 'fe80::2:0:9:1%eth2'
# @interconnect_name = '0000A66101, interconnect 3'
# @logical_switch1_ip = '172.18.16.91'
# @logical_switch2_ip = '172.18.16.92'
# @logical_switch_ssh_user = "dcs"
# @logical_switch_ssh_password = "dcs"
# @logical_switch_community_string = "public"
# @logical_interconnect_name = 'Encl1-LogicalInterconnectGroup_1'
# @hypervisor_manager_ip = '172.18.13.11'
# @hypervisor_manager_username ='dcs'
# @hypervisor_manager_password ='dcs'
# @hypervisor_cluster_profile_name = "Cluster5"
# @hypervisor_path = "DC2"
# @hypervisor_server_password = "dcs"
# @hypervisor_host_prefix = "Test-Cluster-host"
# @hypervisor_hypervisorType = "Vmware"
# @hypervisor_type = "HypervisorClusterProfileV4"
# @hypervisor_serverProfileTemplate = "spt-hypervisor"
# @hypervisor_deploymentPlan = "Basic Deployment Plan"