diff --git a/v1/api/swagger/components/schemas/Volume.yaml b/v1/api/swagger/components/schemas/Volume.yaml index f831610..e0adff2 100644 --- a/v1/api/swagger/components/schemas/Volume.yaml +++ b/v1/api/swagger/components/schemas/Volume.yaml @@ -6,6 +6,7 @@ allOf: - FlavorID - StoragePoolID - Capacity + - CapacityUsed - Shareable - LocationID - State @@ -13,6 +14,11 @@ allOf: - Status - Labels - WWN + - ReplicationEnabled + - UnmanagedVolume + - ActiveSite + - CreatedSite + properties: Description: type: string @@ -35,6 +41,12 @@ allOf: example: 10485760 minimum: 0 description: The size of the volume in KiB + CapacityUsed: + type: integer + format: int64 + example: 10485760 + minimum: 0 + description: The amount of the volume currently used as reported by the array in KiB Shareable: type: boolean description: Indicates if the volume can be attached to multiple hosts @@ -63,3 +75,20 @@ allOf: WWN: type: string description: Serial number of the volume. + ReplicationEnabled: + type: boolean + description: Indicates whether replication is enabled for this volume. + UnmanagedVolume: + type: boolean + description: Indicates whether the volume is a native Metal created one or an external one. + ActiveSite: + type: string + format: uuid + description: >- + The site where the remote copy role for the volume is + Primary at the time of most recent import. + CreatedSite: + type: string + format: uuid + description: >- + The site where the volume was originally created. diff --git a/v1/html/index.html b/v1/html/index.html index 0fe268b..e8ab8d2 100644 --- a/v1/html/index.html +++ b/v1/html/index.html @@ -2663,7 +2663,7 @@
[- {
- "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
- "ETag": "a8a0a8d9-d35b-45c6-840f-2b3694efc394",
- "Name": "My Object Name",
- "Created": "2019-06-27T22:59:01.661Z",
- "Modified": "2020-02-27T18:28:02.863Z",
- "Description": "Description of New Volume",
- "FlavorID": "69d82b9f-19a6-47cd-bcb3-7f4b437e8e51",
- "StoragePoolID": "4028a467-4960-41d8-94b5-7611e50c0642",
- "Capacity": 10485760,
- "Shareable": true,
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "VolumeCollectionID": "0bc8d647-85d3-4a49-8d49-8626da150790",
- "State": "new",
- "SubState": "idle",
- "Status": "ok",
- "Labels": {
- "serviceType": "BMaaS"
}, - "WWN": "string"
}
]
Adds a new volume to the project. Volumes may be created separately and then referenced in the create Host call; or volumes may be created directly within the create Host call. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
+[- {
- "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
- "ETag": "a8a0a8d9-d35b-45c6-840f-2b3694efc394",
- "Name": "My Object Name",
- "Created": "2019-06-27T22:59:01.661Z",
- "Modified": "2020-02-27T18:28:02.863Z",
- "Description": "Description of New Volume",
- "FlavorID": "69d82b9f-19a6-47cd-bcb3-7f4b437e8e51",
- "StoragePoolID": "4028a467-4960-41d8-94b5-7611e50c0642",
- "Capacity": 10485760,
- "CapacityUsed": 10485760,
- "Shareable": true,
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "VolumeCollectionID": "0bc8d647-85d3-4a49-8d49-8626da150790",
- "State": "new",
- "SubState": "idle",
- "Status": "ok",
- "Labels": {
- "serviceType": "BMaaS"
}, - "WWN": "string",
- "ReplicationEnabled": true,
- "UnmanagedVolume": true,
- "ActiveSite": "02787c18-fee9-4cd9-bbfc-d9e53da7fb0c",
- "CreatedSite": "90b0f67e-6df2-4563-9928-ed119a84196e"
}
]
Adds a new volume to the project. Volumes may be created separately and then referenced in the create Host call; or volumes may be created directly within the create Host call. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
X-Role | string Example: metal-infra-admin GreenLake Platform role name |
X-Workspaceid | string Example: 1a2ba81600dd11efa47076a3447ec4eb GreenLake Platform workspace ID |
Volume that is to be added to the project
@@ -2681,7 +2681,7 @@{- "Name": "NewVolumeName",
- "Description": "Description of New Volume",
- "FlavorID": "69d82b9f-19a6-47cd-bcb3-7f4b437e8e51",
- "Capacity": 10,
- "Shareable": true,
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "Labels": {
- "serviceType": "BMaaS",
- "region": "us-west-2"
}, - "StoragePoolID": "4028a467-4960-41d8-94b5-7611e50c0642",
- "VolumeCollectionID": "0bc8d647-85d3-4a49-8d49-8626da150790"
}
{- "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
- "ETag": "a8a0a8d9-d35b-45c6-840f-2b3694efc394",
- "Name": "My Object Name",
- "Created": "2019-06-27T22:59:01.661Z",
- "Modified": "2020-02-27T18:28:02.863Z",
- "Description": "Description of New Volume",
- "FlavorID": "69d82b9f-19a6-47cd-bcb3-7f4b437e8e51",
- "StoragePoolID": "4028a467-4960-41d8-94b5-7611e50c0642",
- "Capacity": 10485760,
- "Shareable": true,
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "VolumeCollectionID": "0bc8d647-85d3-4a49-8d49-8626da150790",
- "State": "new",
- "SubState": "idle",
- "Status": "ok",
- "Labels": {
- "serviceType": "BMaaS"
}, - "WWN": "string"
}
{- "Name": "NewVolumeName",
- "Description": "Description of New Volume",
- "FlavorID": "69d82b9f-19a6-47cd-bcb3-7f4b437e8e51",
- "Capacity": 10,
- "Shareable": true,
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "Labels": {
- "serviceType": "BMaaS",
- "region": "us-west-2"
}, - "StoragePoolID": "4028a467-4960-41d8-94b5-7611e50c0642",
- "VolumeCollectionID": "0bc8d647-85d3-4a49-8d49-8626da150790"
}
{- "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
- "ETag": "a8a0a8d9-d35b-45c6-840f-2b3694efc394",
- "Name": "My Object Name",
- "Created": "2019-06-27T22:59:01.661Z",
- "Modified": "2020-02-27T18:28:02.863Z",
- "Description": "Description of New Volume",
- "FlavorID": "69d82b9f-19a6-47cd-bcb3-7f4b437e8e51",
- "StoragePoolID": "4028a467-4960-41d8-94b5-7611e50c0642",
- "Capacity": 10485760,
- "CapacityUsed": 10485760,
- "Shareable": true,
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "VolumeCollectionID": "0bc8d647-85d3-4a49-8d49-8626da150790",
- "State": "new",
- "SubState": "idle",
- "Status": "ok",
- "Labels": {
- "serviceType": "BMaaS"
}, - "WWN": "string",
- "ReplicationEnabled": true,
- "UnmanagedVolume": true,
- "ActiveSite": "02787c18-fee9-4cd9-bbfc-d9e53da7fb0c",
- "CreatedSite": "90b0f67e-6df2-4563-9928-ed119a84196e"
}
Returns a single volume with matching imaged. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
volumeId required | string ID of volume to return |