{"info":{"_postman_id":"4b5e8bbe-8e9d-4fe9-a528-611dd728946f","name":"ETag Validation in Redfish PATCH API request.","description":"<html><head></head><body><h2 id=\"introduction\">Introduction</h2>\n<h5 id=\"what-does-your-api-do\">What does your API do?</h5>\n<h6 id=\"api-validate-the-etag-functionality-in-redfish-patch-api-request-with-correct-and-incorrect-etag\">API validate the \"ETag\" functionality in Redfish PATCH API request, with correct and incorrect ETag.</h6>\n<h2 id=\"overview\">Overview</h2>\n<h6 id=\"things-that-the-developers-should-know-about-validate-this-functionality-with-patch-request-only-to-get-correct-response\">Things that the developers should know about Validate this functionality with PATCH request only to get correct response.</h6>\n<h2 id=\"error-codes\">Error Codes</h2>\n<h5 id=\"what-errors-and-status-codes-can-a-user-expect\">What errors and status codes can a user expect?</h5>\n<h6 id=\"for-correct-etag-user-get-status-code-204-for-incorrect-etag-user-get-status-code-412\">For correct ETag user get status code 204. For incorrect ETag user get status code 412.</h6>\n<h2 id=\"rate-limit\">Rate limit</h2>\n<h5 id=\"is-there-a-limit-to-the-number-of-requests-an-user-can-send\">Is there a limit to the number of requests an user can send?</h5>\n<h6 id=\"yes-user-can-use-generated-etag-only-one-time-once-its-used-user-needs-to-get-new-etag\">Yes, User can use generated ETag, only one time. Once it's used, user needs to get new ETag.</h6>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11902441","collectionId":"4b5e8bbe-8e9d-4fe9-a528-611dd728946f","publishedId":"T17Dh9Fg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-07-01T08:59:46.000Z"},"item":[{"name":"https://192.168.0.194/redfish/v1/AccountService/Accounts/SLSAccount","id":"f73171bf-de58-41cb-ba49-4593bf6aa7d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://192.168.0.194/redfish/v1/AccountService/Accounts/SLSAccount","urlObject":{"protocol":"https","path":["redfish","v1","AccountService","Accounts","SLSAccount"],"host":["192","168","0","194"],"query":[],"variable":[]}},"response":[{"id":"4592ad33-aafa-4042-95a9-9bc3cc367014","name":"To get ETag.","originalRequest":{"method":"GET","header":[],"url":"https://192.168.0.194/redfish/v1/AccountService/Accounts/SLSAccount"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 01 Jul 2020 06:30:03 GMT"},{"key":"Server","value":"Apache/2.4.42 (Unix) OpenSSL/1.0.2k"},{"key":"Allow","value":"GET, PATCH, DELETE"},{"key":"Content-Length","value":"491"},{"key":"ETag","value":"\"1f994bccf33d4d2e98a6380ab8878c411\""},{"key":"Link","value":"http://redfish.dmtf.org/schemas/v1/ManagerAccount.1.0.0.json; rel=\"describedby\""},{"key":"OData-Version","value":"4.0"},{"key":"Cache-Control","value":"\"no-store\""},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"@odata.context\": \"/redfish/v1/$metadata#ManagerAccount.ManagerAccount\",\n    \"@odata.id\": \"/redfish/v1/AccountService/Accounts/SLSAccount\",\n    \"@odata.type\": \"#ManagerAccount.1.0.0.ManagerAccount\",\n    \"Id\": \"SLSAccount\",\n    \"Name\": \"User Account\",\n    \"Description\": \"User Account\",\n    \"Enabled\": true,\n    \"Password\": null,\n    \"UserName\": \"SLSAccount\",\n    \"RoleId\": \"Operator\",\n    \"Locked\": false,\n    \"Links\": {\n        \"Role\": {\n            \"@odata.id\": \"/redfish/v1/AccountService/Roles/Operator\"\n        }\n    }\n}"}],"_postman_id":"f73171bf-de58-41cb-ba49-4593bf6aa7d9"},{"name":"https://192.168.0.194/redfish/v1/AccountService/Accounts/SLSAccount","id":"479d16cd-10f3-44bf-a8f1-3f6455d33042","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"If-Match","value":"\"1f994bccf33d4d2e98a6380ab8878c411\"","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"Enabled\": true,\r\n    \"Password\": \"123456\",\r\n    \"RoleId\": \"Operator\",\r\n    \"Locked\": false\r\n}"},"url":"https://192.168.0.194/redfish/v1/AccountService/Accounts/SLSAccount","urlObject":{"protocol":"https","path":["redfish","v1","AccountService","Accounts","SLSAccount"],"host":["192","168","0","194"],"query":[],"variable":[]}},"response":[{"id":"22513513-9fb9-4de3-b300-bcc807b303cc","name":"ETag validation in Redfish PATCH API request, with correct ETag.","originalRequest":{"method":"PATCH","header":[{"key":"If-Match","value":"\"1f994bccf33d4d2e98a6380ab8878c411\"","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"Enabled\": true,\r\n    \"Password\": \"123456\",\r\n    \"RoleId\": \"Operator\",\r\n    \"Locked\": false\r\n}"},"url":"https://192.168.0.194/redfish/v1/AccountService/Accounts/SLSAccount"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 01 Jul 2020 06:30:43 GMT"},{"key":"Server","value":"Apache/2.4.42 (Unix) OpenSSL/1.0.2k"},{"key":"Allow","value":"GET, PATCH, DELETE"},{"key":"Link","value":"http://redfish.dmtf.org/schemas/v1/; rel=\"describedby\""},{"key":"OData-Version","value":"4.0"},{"key":"Cache-Control","value":"\"no-store\""},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"fddc8c95-f5e5-49e8-9003-7e4bbfc43288","name":"ETag validation in Redfish PATCH API request, with incorrect ETag.","originalRequest":{"method":"PATCH","header":[{"key":"If-Match","value":"\"111111119999900000111111119999999\"","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"Enabled\": true,\r\n    \"Password\": \"123456\",\r\n    \"RoleId\": \"Operator\",\r\n    \"Locked\": false\r\n}"},"url":"https://192.168.0.194/redfish/v1/AccountService/Accounts/SLSAccount"},"status":"Precondition Failed","code":412,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 01 Jul 2020 06:29:18 GMT"},{"key":"Server","value":"Apache/2.4.42 (Unix) OpenSSL/1.0.2k"},{"key":"Allow","value":"GET, PATCH, DELETE"},{"key":"Content-Length","value":"0"},{"key":"Link","value":"http://redfish.dmtf.org/schemas/v1/; rel=\"describedby\""},{"key":"OData-Version","value":"4.0"},{"key":"Cache-Control","value":"\"no-store\""},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"479d16cd-10f3-44bf-a8f1-3f6455d33042"}]}