NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform.
You will still be able to view content, but posting and replying will be temporarily disabled.
To learn more, please review the information in this blog post.

Python Discussions

POST Rest api method for creating datasources in OCI

sadhana
3,673 Views

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

 

Note:

 

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?

0 REPLIES 0
Public