Hi,
Try that kind of uri to get a resource by its name :
GET {{your SDC server
IP}}/8080/sdc2/rest/v1/catalog/resources/resourceName/vEPC/resourceVersion/1.1
Or this uri to get a resource by its unique id :
GET {{your SDC server
IP}}/8080/sdc2/rest/v1/catalog/resources/b5c6cc2c-30c8-4212-8b42-75d2875e8f9f
I do not think that exist an uri to get all resources. Trying your uri, I have
the same response than you.
Best regards.
[Logo Orange]<http://www.orange.com/>
René Robert
[email protected]<mailto:[email protected]>
De : [email protected]
[mailto:[email protected]] De la part de [email protected]
Envoyé : mardi 29 août 2017 10:32
À : [email protected]
Cc : [email protected]
Objet : [onap-discuss] [SDC] Access sdc api failed.
Hi Michael,
I'm trying to get the existing resources of sdc used the SDC Catalog External
API.
But its returns some error message.
Do you know the reason for the failure? And how to resolve this problem?
Request Url (GET):
http://{sdc_ip}:8080/sdc/v1/catalog/resources<http://%7bsdc_ip%7d:8080/sdc/v1/catalog/resources>
Login User Id:
cs0008 or gv0001
Request Body:
N/A
Response:
{
"requestError": {
"policyException": {
"messageId": "POL5003",
"text": "Error: Not authorized to use the API.",
"variables": []
}
}
}
Thanks,
Yuan Hu
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou
falsifie. Merci.
This message and its attachments may contain confidential or privileged
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been
modified, changed or falsified.
Thank you.
_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss