Skip to content

Commit

Permalink
Merge pull request #227 from HewlettPackard/api/1200/storage_system
Browse files Browse the repository at this point in the history
Api/1200/storage system
  • Loading branch information
sijeesh committed Mar 2, 2020
2 parents c6585fc + ebfa61f commit 3e36b7a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- Server hardware type
- Server profile
- Server profile template
- Storage system
- Uplink set

### Image Streamer support
Expand Down
12 changes: 12 additions & 0 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,18 @@
|<sub>/rest/server-profiles/{id}/new-profile-template</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/server-profiles/{id}/messages</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
|<sub>/rest/server-profiles/{id}/transformation</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |
| **Storage Systems** |
|<sub>/rest/storage-systems</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-systems</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-systems/host-types</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-systems/{arrayId}/storage-pools</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-systems/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-systems/{id}</sub> | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-systems/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-systems/{id}/managedPorts</sub> | GET | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
|<sub>/rest/storage-systems/{id}/managedPorts/{portId}</sub> | GET | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
|<sub>/rest/storage-systems/{id}/reachable-ports</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x:|
|<sub>/rest/storage-systems/{id}/templates</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
| **Uplink Sets** |
|<sub>/rest/uplink-sets</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/uplink-sets</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
Expand Down
40 changes: 14 additions & 26 deletions examples/storage_system.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
Expand All @@ -23,11 +23,11 @@
oneview_storage_system{'storage_system_1':
ensure => 'present',
data => {
managedDomain => 'TestDomain',
credentials => {
ip_hostname => '172.18.11.12',
username => 'dcs',
password => 'dcs',
family => 'StoreServ',
hostname => '172.18.11.11',
credentials => {
username => 'dcs',
password => 'dcs',
}
}
}
Expand All @@ -36,11 +36,12 @@
ensure => 'present',
require => Oneview_storage_system['storage_system_1'],
data => {
credentials => {
ip_hostname => '172.18.11.12',
username => 'dcs',
family => 'StoreServ',
hostname => '172.18.11.11',
deviceSpecificAttributes => {
managedDomain => 'TestDomain'
},
description => 'Standard Description for Sample Purposes',
description => 'Standard Description for Sample Purposes'
}
}

Expand All @@ -52,30 +53,17 @@
ensure => 'get_storage_pools',
require => Oneview_storage_system['storage_system_3'],
data => {
credentials => {
ip_hostname => '172.18.11.12',
}
}
}

oneview_storage_system{'storage_system_5':
ensure => 'get_managed_ports',
require => Oneview_storage_system['storage_system_4'],
data => {
credentials => {
ip_hostname => '172.18.11.12',
}
hostname => '172.18.11.11'
}
}

oneview_storage_system{'storage_system_6':
ensure => 'get_host_types',
}

oneview_storage_system{'storage_system_7':
ensure => 'absent',
data => {
credentials => {
ip_hostname => '172.18.11.12',
}
hostname => '172.18.11.11'
}
}

0 comments on commit 3e36b7a

Please sign in to comment.