hi michael
thank you.
In the wiki,
https://wiki.onap.org/display/DW/SDC+API?preview=/10781738/10781741/SDC_Catalog_External_API_AID_v1.1.0.docx
I think the apis in this docx are for the external, right?
we also meet the problem, could you give us some example? I think
maybe the auth meets something problem.
Response:{ "requestError": { "policyException": {
"messageId": "POL5003", "text": "Error: Not authorized to
use the API.", "variables": [] } }}
BR
Maopeng
原始邮件
发件人: <ml6...@intl.att.com>
收件人: <rene.rob...@orange.com>袁虎10090474
抄送人: <onap-discuss@lists.onap.org>
日 期 :2017年08月29日 20:37
主 题 :Re: [onap-discuss] [SDC] Access sdc api failed.
Sdc has two sets of apis one internal and one used by external components. In
order to accses our internal api you will need to creat a consumer. I will
creat an entry in the wiki describing it.
-------- Original Message --------
From: rene.rob...@orange.com
Date: Tue, Aug 29, 2017, 15:26
To: yuan....@zte.com.cn, "Lando,Michael" <ml6...@intl.att.com>
CC: onap-discuss@lists.onap.org
Subject: RE: [onap-discuss] [SDC] Access sdc api failed.
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]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.orange.com_&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=FYvXSElfSmWIXOeZxWIxQysejuz9-TXmaL6uftBh8MY&m=SC8IhaKWlBzm3RNV1IHy-VGC2DWEsBRLOkd9dbZgZTc&s=mSgKJq-yVRaUUNuhZ6fXgNAdakl_gUtU9SDjzwYbCKM&e=>
René Robert
rene.rob...@orange.com<mailto:rene.rob...@orange.com>
De : onap-discuss-boun...@lists.onap.org
[mailto:onap-discuss-boun...@lists..onap.org] De la part de yuan....@zte.com.cn
Envoyé : mardi 29 août 2017 10:32
À : ml6...@intl.att.com
Cc : onap-discuss@lists.onap.org
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<https://urldefense.proofpoint..com/v2/url?u=http-3A__-257bsdc-5Fip-257d-3A8080_sdc_v1_catalog_resources&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=FYvXSElfSmWIXOeZxWIxQysejuz9-TXmaL6uftBh8MY&m=SC8IhaKWlBzm3RNV1IHy-VGC2DWEsBRLOkd9dbZgZTc&s=x5ZXsYYcIJM_nW9gNPgZhKSths5LRdST41raO6ry6r4&e=>
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
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss