diff --git a/v1/api/swagger/components/schemas/OSServiceImage.yaml b/v1/api/swagger/components/schemas/OSServiceImage.yaml index ba9de67..a54c01a 100644 --- a/v1/api/swagger/components/schemas/OSServiceImage.yaml +++ b/v1/api/swagger/components/schemas/OSServiceImage.yaml @@ -20,6 +20,7 @@ allOf: - UserDefinedSteps - Classifiers - ProjectID + - DownloadHealth properties: ProjectID: type: string @@ -27,6 +28,8 @@ allOf: description: >- Unique ID of the project that owns this OS service image. example: 046b6c7f-0b8a-43b9-b35d-6489e6daee92 + DownloadHealth: + $ref: OSServiceImageDownloadHealth.yaml Description: type: string example: Description of the image diff --git a/v1/api/swagger/components/schemas/OSServiceImageDetailedDownloadHealth.yaml b/v1/api/swagger/components/schemas/OSServiceImageDetailedDownloadHealth.yaml new file mode 100644 index 0000000..f5d73be --- /dev/null +++ b/v1/api/swagger/components/schemas/OSServiceImageDetailedDownloadHealth.yaml @@ -0,0 +1,3 @@ +type: object +additionalProperties: + $ref: OSServiceImageDownloadHealthDetails.yaml \ No newline at end of file diff --git a/v1/api/swagger/components/schemas/OSServiceImageDownloadHealth.yaml b/v1/api/swagger/components/schemas/OSServiceImageDownloadHealth.yaml new file mode 100644 index 0000000..8d35438 --- /dev/null +++ b/v1/api/swagger/components/schemas/OSServiceImageDownloadHealth.yaml @@ -0,0 +1,11 @@ +type: object +required: + - DetailedDownloadHealth + - DownloadHealthSummary +properties: + DetailedDownloadHealth: + $ref: OSServiceImageDetailedDownloadHealth.yaml + DownloadHealthSummary: + $ref: OSServiceImageDownloadHealthSummary.yaml +description: >- + Provides download health info of the OS service image. \ No newline at end of file diff --git a/v1/api/swagger/components/schemas/OSServiceImageDownloadHealthDetails.yaml b/v1/api/swagger/components/schemas/OSServiceImageDownloadHealthDetails.yaml new file mode 100644 index 0000000..f869cd1 --- /dev/null +++ b/v1/api/swagger/components/schemas/OSServiceImageDownloadHealthDetails.yaml @@ -0,0 +1,24 @@ +type: object +required: + - Changed + - Details + - Reason + - Summary +properties: + Changed: + type: string + format: date-time + example: 2019-06-27T22:59:01.661Z + description: >- + Indicates last time this download health has been updated. + Details: + type: object + additionalProperties: + $ref: OSServiceImageDownloadHealthSummary.yaml + Reason: + type: string + example: "Service download health timed out" + description: >- + Indicates the reason for the reported download health status if not OK. + Summary: + $ref: OSServiceImageDownloadHealthSummary.yaml \ No newline at end of file diff --git a/v1/api/swagger/components/schemas/OSServiceImageDownloadHealthSummary.yaml b/v1/api/swagger/components/schemas/OSServiceImageDownloadHealthSummary.yaml new file mode 100644 index 0000000..dc1581d --- /dev/null +++ b/v1/api/swagger/components/schemas/OSServiceImageDownloadHealthSummary.yaml @@ -0,0 +1,9 @@ +type: string +enum: + - OK + - Warning + - Critical + - Unknown +example: OK +description: > + Indicates the download health summary of the OS service image. \ No newline at end of file diff --git a/v1/html/index.html b/v1/html/index.html index 3f331b4..ecbee12 100644 --- a/v1/html/index.html +++ b/v1/html/index.html @@ -3000,7 +3000,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",
- "ProjectID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "Description": "Description of the image",
- "Category": "linux",
- "Flavor": "ubuntu",
- "Version": "20.04.5",
- "Origin": "Custom",
- "Timeout": 1000,
- "DeviceLayouts": [
- {
- "Device": "/dev/sda",
- "Description": "string",
- "StartOffset": 0,
- "TableType": "gpt",
- "Partitions": [
- {
- "Type": "ext2",
- "Formula": {
- "Equation": "500M",
- "MinSize": "1M",
- "MaxSize": "string"
}, - "Name": "My Partition",
- "MountPoint": "/",
- "PartitionID": 1,
- "Bootable": false,
- "MakeOptions": [
- "string"
], - "MountOptions": "errors=remount-ro"
}
]
}
], - "PermittedProjects": [
- "string"
], - "Files": [
- {
- "ID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "Path": "image.tgz",
- "FileSize": 934960345,
- "DownloadTimeout": 32000,
- "Signature": "5260deb631d6a9f29bca14043d406bea36d704677dff4cae1a4d48dc568406eb",
- "Algorithm": "sha512sum",
- "Expand": true,
- "DisplayURL": "s3://bmmas-images20210506193558893900000003/images/linux/ubuntu/18.04-20220404/v2-kiwi-ubuntu18.04-15616.04_appliance.x86_64-1.16.4.tar.gz",
- "SecureURL": "string",
- "SkipSslVerify": true
}
], - "Info": [
- {
- "Contents": "string",
- "Encoding": "base64",
- "Templating": "go-text-template",
- "TemplatingInput": "hostdef-v2",
- "Target": "vmedia-floppy",
- "Path": "/etc/cloud/cloud.cfg.d/92_datasource.cfg"
}
], - "Approach": "vmedia",
- "AssumedBootMethod": "na",
- "NoSwitchLAG": false,
- "BondMode": "none",
- "FWBaselineID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "UserDefinedSteps": {
- "ImagingPrepSteps": [
- {
- "ID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "Operation": "Boot Service OS",
- "Description": "string",
- "Parameters": [
- {
- "Name": "string",
- "Value": "string",
- "Description": "string",
- "Type": "Integer",
- "SecureValue": "string"
}
]
}
], - "ImagingCompleteSteps": [
- {
- "ID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "Operation": "Boot Service OS",
- "Description": "string",
- "Parameters": [
- {
- "Name": "string",
- "Value": "string",
- "Description": "string",
- "Type": "Integer",
- "SecureValue": "string"
}
]
}
], - "MaintenanceSteps": [
- {
- "ID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "Operation": "Boot Service OS",
- "Description": "string",
- "Parameters": [
- {
- "Name": "string",
- "Value": "string",
- "Description": "string",
- "Type": "Integer",
- "SecureValue": "string"
}
]
}
]
}, - "Classifiers": [
- {
- "Name": "string",
- "Rules": [
- {
- "SubAttributeRules": [
- {
- "Attribute": "model",
- "Value": "Gen10",
- "Operator": "contains"
}
], - "Attribute": "model",
- "Value": "Gen10",
- "Operator": "contains"
}
]
}
]
}
]
Adds a new OS service image that can be referenced during host creation. If GreenLake Cloud Services IAM issued token is used for authentication, then it is required to pass either 'spaceid' header or 'Space' header. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers. Note that Hoster or BMaaS Access Owner role is required for this operation.
+[- {
- "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",
- "ProjectID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "DownloadHealth": {
- "DetailedDownloadHealth": {
- "property1": {
- "Changed": "2019-06-27T22:59:01.661Z",
- "Details": {
- "property1": "OK",
- "property2": "OK"
}, - "Reason": "Service download health timed out",
- "Summary": "OK"
}, - "property2": {
- "Changed": "2019-06-27T22:59:01.661Z",
- "Details": {
- "property1": "OK",
- "property2": "OK"
}, - "Reason": "Service download health timed out",
- "Summary": "OK"
}
}, - "DownloadHealthSummary": "OK"
}, - "Description": "Description of the image",
- "Category": "linux",
- "Flavor": "ubuntu",
- "Version": "20.04.5",
- "Origin": "Custom",
- "Timeout": 1000,
- "DeviceLayouts": [
- {
- "Device": "/dev/sda",
- "Description": "string",
- "StartOffset": 0,
- "TableType": "gpt",
- "Partitions": [
- {
- "Type": "ext2",
- "Formula": {
- "Equation": "500M",
- "MinSize": "1M",
- "MaxSize": "string"
}, - "Name": "My Partition",
- "MountPoint": "/",
- "PartitionID": 1,
- "Bootable": false,
- "MakeOptions": [
- "string"
], - "MountOptions": "errors=remount-ro"
}
]
}
], - "PermittedProjects": [
- "string"
], - "Files": [
- {
- "ID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "Path": "image.tgz",
- "FileSize": 934960345,
- "DownloadTimeout": 32000,
- "Signature": "5260deb631d6a9f29bca14043d406bea36d704677dff4cae1a4d48dc568406eb",
- "Algorithm": "sha512sum",
- "Expand": true,
- "DisplayURL": "s3://bmmas-images20210506193558893900000003/images/linux/ubuntu/18.04-20220404/v2-kiwi-ubuntu18.04-15616.04_appliance.x86_64-1.16.4.tar.gz",
- "SecureURL": "string",
- "SkipSslVerify": true
}
], - "Info": [
- {
- "Contents": "string",
- "Encoding": "base64",
- "Templating": "go-text-template",
- "TemplatingInput": "hostdef-v2",
- "Target": "vmedia-floppy",
- "Path": "/etc/cloud/cloud.cfg.d/92_datasource.cfg"
}
], - "Approach": "vmedia",
- "AssumedBootMethod": "na",
- "NoSwitchLAG": false,
- "BondMode": "none",
- "FWBaselineID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "UserDefinedSteps": {
- "ImagingPrepSteps": [
- {
- "ID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "Operation": "Boot Service OS",
- "Description": "string",
- "Parameters": [
- {
- "Name": "string",
- "Value": "string",
- "Description": "string",
- "Type": "Integer",
- "SecureValue": "string"
}
]
}
], - "ImagingCompleteSteps": [
- {
- "ID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "Operation": "Boot Service OS",
- "Description": "string",
- "Parameters": [
- {
- "Name": "string",
- "Value": "string",
- "Description": "string",
- "Type": "Integer",
- "SecureValue": "string"
}
]
}
], - "MaintenanceSteps": [
- {
- "ID": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "Operation": "Boot Service OS",
- "Description": "string",
- "Parameters": [
- {
- "Name": "string",
- "Value": "string",
- "Description": "string",
- "Type": "Integer",
- "SecureValue": "string"
}
]
}
]
}, - "Classifiers": [
- {
- "Name": "string",
- "Rules": [
- {
- "SubAttributeRules": [
- {
- "Attribute": "model",
- "Value": "Gen10",
- "Operator": "contains"
}
], - "Attribute": "model",
- "Value": "Gen10",
- "Operator": "contains"
}
]
}
]
}
]
Adds a new OS service image that can be referenced during host creation. If GreenLake Cloud Services IAM issued token is used for authentication, then it is required to pass either 'spaceid' header or 'Space' header. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers. Note that Hoster or BMaaS Access Owner role is required for this operation.