vcenter deployment question: get
Get the question that was raised during the configuration. This operation was added in vSphere API 6.7.
Request:
HTTP request
GET https://{server}/rest/vcenter/deployment/question
No request parameters
Response:
HTTP Status Code: 200
Representation:
{
"value" : {
"questions" : [
{
"question" : {
"args" : [
"string",
"string"
],
"default_message" : "string",
"localized" : "string",
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"key" : "string"
}
]
}
},
"key" : "string"
}
]
}
},
"key" : "string"
}
]
},
"possible_answers" : [
"string",
"string"
],
"default_answer" : "string",
"id" : "string",
"type" : "YES_NO"
},
{
"question" : {
"args" : [
"string",
"string"
],
"default_message" : "string",
"localized" : "string",
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"key" : "string"
}
]
}
},
"key" : "string"
}
]
}
},
"key" : "string"
}
]
},
"possible_answers" : [
"string",
"string"
],
"default_answer" : "string",
"id" : "string",
"type" : "YES_NO"
}
]
}
}
"value" : {
"questions" : [
{
"question" : {
"args" : [
"string",
"string"
],
"default_message" : "string",
"localized" : "string",
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"key" : "string"
}
]
}
},
"key" : "string"
}
]
}
},
"key" : "string"
}
]
},
"possible_answers" : [
"string",
"string"
],
"default_answer" : "string",
"id" : "string",
"type" : "YES_NO"
},
{
"question" : {
"args" : [
"string",
"string"
],
"default_message" : "string",
"localized" : "string",
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"key" : "string"
}
]
}
},
"key" : "string"
}
]
}
},
"key" : "string"
}
]
},
"possible_answers" : [
"string",
"string"
],
"default_answer" : "string",
"id" : "string",
"type" : "YES_NO"
}
]
}
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | info | Info structure containing the question. |
value.questions | question[] | One or more questions raised during the deployment. This attribute was added in vSphere API 6.7. |
value.questions[].id | string | Id of the question raised. This attribute was added in vSphere API 6.7. |
value.questions[].question | localizable_message | Message describing the question. This attribute was added in vSphere API 6.7. |
value.questions[].question.id | string | Unique identifier of the localizable string or message template. This identifier is typically used to retrieve a locale-specific string or message template from a message catalog. |
value.questions[].question.default_message | string | The value of this localizable string or message template in the en_US (English) locale. If vapi.std.localizable_message.id refers to a message template, the default message will contain the substituted arguments. This value can be used by clients that do not need to display strings and messages in the native language of the user. It could also be used as a fallback if a client is unable to access the appropriate message catalog. |
value.questions[].question.args | string[] | Positional arguments to be substituted into the message template. This list will be empty if the message uses named arguments or has no arguments. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
401 | unauthenticated | if the caller is not authenticated. |
400 | not_allowed_in_current_state | if the appliance is not in QUESTION_RAISED state. |
500 | internal_server_error | if questions could not be retrieved although the appliance is in QUESTION_RAISED state. |