ExamGecko
Question list
Search
Search

Question 7 - HPE2-T37 discussion

Report
Export

Which REST API method can be used to create a resource?

A.

POST

Answers
A.

POST

B.

GET

Answers
B.

GET

C.

DELETE

Answers
C.

DELETE

D.

PUT

Answers
D.

PUT

Suggested answer: A

Explanation:

In the context of RESTful APIs, the POST method is used to create a new resource on the server. When interacting with the HPE OneView REST API, you use the POST method to create new resources such as server profiles, networks, or volumes. This method sends data to the server to create a new subordinate of the resource identified by the URI.

GET is used to retrieve information about resources.

PUT is typically used to update or replace an existing resource.

DELETE is used to remove a resource.

HPE OneView REST API Reference Guide: Describes the use of HTTP methods in the API, specifying that POST is used for creating resources.

HPE OneView API Methods: Outlines how different HTTP methods interact with HPE OneView resources.

asked 01/11/2024
carlos salgado
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first