Settings Update OneView Server Template
Overview
This job updates settings of type 'OVE_SERVER_TEMPLATES_VM' by dynamically fetching data from appliances for the specified OneView server templates.
Job Template ID | Resource Type | Data |
---|---|---|
abfda355-6e58-4c00-be0a-af35dbd70398 | compute-ops-mgmt/settings | templatesData* |
Data properties marked with a
*
are required.
Create Job
A job can be created by issuing a POST
to the /compute-ops-mgmt/v1beta3/jobs
endpoint with the correct payload for the job.
The following properties are used when creating a job:
Property | JSON Type | Description | Required? |
---|---|---|---|
jobTemplateUri |
string (uri) | A job-template URI with the durable Template ID of the job | Yes |
resourceUri |
string (uri) | A resource URI that the job will operate on | Yes |
data |
object | Any additional data required by the job | No |
If the job was created successfully, a 201 Created
response is returned. The response includes the job resource which has a
job resourceUri
that you can use to track the progress of the job.
Data
The following table summarizes the supported properties in data
.
Property | JSON Type | Values | Required? |
---|---|---|---|
templatesData |
list | Oneview Server template URIs and appliance ID | Yes |
Data properties
-
templatesData
: This required field lists the appliance IDs and server templates to be fetched and updated.-
templates
: A list of URIs for OneView server templates. -
applianceId
: The ID of the appliance that these templates belong to.
-
Examples
Here are some example request payloads for creating this job.
Example 1
For a OneView server template setting, fetch OneView server templates from a single source appliance.
{
"jobTemplateUri": "/compute-ops-mgmt/v1beta2/job-templates/abfda355-6e58-4c00-be0a-af35dbd70398",
"resourceUri": "/compute-ops-mgmt/v1beta1/settings/66ca162d-5ca0-4c39-909a-78ba30196c4f",
"data": {
"templatesData": [
{
"applianceId": "df24164d-fb0f-445a-bcdb-f845f40019f7",
"templates": [
{
"uri": "/rest/server-profile-templates/5350a573-4aeb-4af4-b967-2f4e44ba0452"
},
{
"uri": "/rest/server-profile-templates/526a38f5-99c0-42ae-8dca-8f2392a59bd8"
}
]
}
]
}
}
Example 2
For a OneView server template setting, fetch OneView server templates from multiple appliances.
{
"jobTemplateUri": "/compute-ops-mgmt/v1beta2/job-templates/abfda355-6e58-4c00-be0a-af35dbd70398",
"resourceUri": "/compute-ops-mgmt/v1beta1/settings/66ca162d-5ca0-4c39-909a-78ba30196c4f",
"data": {
"templatesData": [
{
"applianceId": "df24164d-fb0f-445a-bcdb-f845f40019f7",
"templates": [
{
"uri": "/rest/server-profile-templates/5350a573-4aeb-4af4-b967-2f4e44ba0452"
},
{
"uri": "/rest/server-profile-templates/526a38f5-99c0-42ae-8dca-8f2392a59bd8"
}
]
},
{
"applianceId": "d42c2b9b-b366-4e40-96a2-95e1138cf968",
"templates": [
{
"uri": "/rest/server-profile-templates/a56e80bc-6ee4-4414-82e7-36dc7f79a62e"
}
]
}
]
}
}