{"openapi":"3.1.0","info":{"title":"hybrid-workload-govcloud-authentication","version":"3.0"},"servers":[{"url":"https://govapis.druva.com"}],"components":{"securitySchemes":{"sec0":{"type":"http","scheme":"basic"}}},"security":[{"sec0":[]}],"paths":{"/token":{"post":{"summary":"GovCloud Authorization","description":"To use the ***Try It*** feature, use this API to generate OAuth2.0 Access Token for authentication and authorization with Phoenix GovCloud APIs.\n\n**Important** - \n1. This procedure is **APPLICABLE** only for generating **Phoenix GovCloud** token.\n2. After generating the token, ensure the initial letter of the Request Headers in your API request is in Capital, i.e. 'Accept' and 'Authorization'.\n\nTo generate Access Token and use it for authorization with GovCloud APIs - \n1. **Generate API Credentials**, Client ID and Secret Key, from the *[Phoenix GovCloud](https://govphoenix.druva.com/login)* console. For step-by-step instructions, see *[Manage API Credentials](https://docs.druva.com/Druva_Cloud_Platform/Integration_with_Druva_APIs/Create_and_Manage_API_Credentials)*.\n2. Provide **Client ID** as *username* and **Secret Key** as *password* in this API.\n3. Copy the **Access Token** from the response.\n4. Click **Try It** button for the API which you want to call or explore and provide the copied Access Token in the **Authorization** text box in the format - \n**Bearer **\n**Example** - Bearer Zhdsohdspcnxxxxxx","operationId":"govcloud-authorization","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"scope":{"type":"string","default":"read"},"grant_type":{"type":"string","default":"client_credentials"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\"access_token\": \"\", \"token_type\": \"bearer\", \"expires_in\": 1800}"}},"schema":{"type":"object","properties":{"access_token":{"type":"string","example":""},"token_type":{"type":"string","example":"bearer"},"expires_in":{"type":"integer","example":1800,"default":0}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"curl","code":"curl -X POST -H 'authorization: Basic ' -d 'grant_type=client_credentials&scope=read' https://govapis.druva.com/token"}],"samples-languages":["curl"]}}}},"x-readme":{"headers":[],"explorer-enabled":true,"proxy-enabled":true},"x-readme-fauxas":true}