Python Discussions

POST Rest api method for creating datasources in OCI


I get an error when I try to invoke rest-api POST method with the URL. URL for POST is : "https://localhost/rest/v1/admin/datasources" .


When I invoked the rest api it gave the following error:


raise HTTPError('{} Client Error: {}'.format(response.status_code, response.reason), response=response)
requests.exceptions.HTTPError: 404 Client Error: Not Found




The server to which I want to post data is logged in.


I am able to access the URL and see the information of the datasources that are already created.


The file is in the JSON format. The contents are as per requirement.


Can someone help me with this?

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.