Skip to content

Commit

Permalink
Merge 407d981 into 3e36b7a
Browse files Browse the repository at this point in the history
  • Loading branch information
sijeesh committed Mar 2, 2020
2 parents 3e36b7a + 407d981 commit f67ad57
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -25,6 +25,7 @@
- Server hardware type
- Server profile
- Server profile template
- Storage pool
- Storage system
- Uplink set

Expand Down
7 changes: 7 additions & 0 deletions endpoints-support.md
Expand Up @@ -205,6 +205,13 @@
|<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 Pools** |
|<sub>/rest/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-pools</sub> | POST | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
|<sub>/rest/storage-pools/reachable-storage-pools</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/storage-pools/{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-pools/{id}</sub> | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-pools/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
| **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: |
Expand Down
26 changes: 14 additions & 12 deletions examples/storage_pool.pp
@@ -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,35 +23,36 @@
ensure => 'present',
data => {
poolName => 'CPG-SSD-AO',
storageSystemUri => 'ThreePAR7200-9055'
storageSystemUri => 'ThreePAR-2'
# storageSystemUri => '/rest/storage-systems/TXQ1000307'
}
}

oneview_storage_pool{'storage_pool_2':
ensure => 'found',
# require => Oneview_storage_pool['storage_pool_1'],
# This resource accepts a data hash to filter out results or no data hash to display all
# data => {
# poolName => 'CPG-SSD-AO',
# }
ensure => 'found',
require => Oneview_storage_pool['storage_pool_1'],
#This resource accepts a data hash to filter out results or no data hash to display all
data => {
poolName => 'CPG-SSD-AO',
}
}

# Method available from API500 and above
oneview_storage_pool{'storage_pool_4':
ensure => 'manage',
data => {
name => 'cpg_growth-warning-100GiB',
name => 'cpg-growth-limit-1TiB',
isManaged => true,
storageSystemUri => '/rest/storage-systems/TXQ1000307'
storageSystemUri => '/rest/storage-systems/TXQ1010307'
}
}

# Method available from API500 and above
oneview_storage_pool{'storage_pool_5':
ensure => 'reachable',
data => {
uri => '/rest/storage-pools/C2ECD708-4F97-4DC2-925A-A8D90065D7D2',
uri => '/rest/storage-pools/85DEFE8C-939C-4E40-B886-AB6B00DBCB05',
storageSystemUri => '/rest/storage-systems/TXQ1010307'
}
}

Expand All @@ -60,6 +61,7 @@
ensure => 'absent',
require => Oneview_storage_pool['storage_pool_2'],
data => {
poolName => 'CPG-SSD-AO',
poolName => 'cpg-growth-limit-1TiB',
storageSystemUri => '/rest/storage-systems/TXQ1010307'
}
}

0 comments on commit f67ad57

Please sign in to comment.