hi micheal
Thanks for your sharing.
In the wiki:https://wiki.onap.org/display/DW/Consumer+creation
The following users are predefined:
appc
vid
dcae
aai
sdnc
mso
could you add the vfc as the predefined in R1?
Thanks
BR
Maopeng
原始邮件
发件人: <ml6...@intl.att.com>
收件人:傅锦华10108953 <rene.rob...@orange.com>
抄送人: <onap-discuss@lists.onap.org>
日 期 :2017年08月31日 03:34
主 题 :Re: [onap-discuss] Re: [SDC] Access sdc api failed.
Hi,
As described before SDC has two sets of API’s:
Internal:
Internal API’s use a header called user_id to check if the user is provisioned
in the system and if his role allows him to execute this API.
The internal API’s are provided to the SDC UI and should not be used by
external components.
External:
This is a set of API’s provide to external component access to the SDC catalog
this API’s are protected by basic authentication.
In order to use them you will first need to create a consumer in the system.
After one is created you will add the user and password to the request as a
basic authentication header.
Please take a look here on how to generate the consumer and input him into the
system: https://wiki.onap.org/display/DW/Consumer+creation
LINK to sdc external API’s:
https://wiki.onap.org/display/DW/SDC+API
Now in your case option 1 is missing the USER_ID header
And option two you did not create a consumer in the system.
Hope this helps
BR,
Michael Lando
Opensource & Frontend Team Lead, SDC
AT&T Network Application Development · NetCom
Tel Aviv | Tampa | Atlanta | New Jersey |Chicago
···········································································
Office: +972 (3) 5451487
Mobile: +972 (54) 7833603
e-mail: ml6...@intl.att.com
From: onap-discuss-boun...@lists.onap.org
[mailto:onap-discuss-boun...@lists.onap.org] On Behalf Of fu.jin...@zte.com.cn
Sent: Wednesday, August 30, 2017 6:17 AM
To: rene.rob...@orange.com
Cc: onap-discuss@lists.onap.org
Subject: [onap-discuss] Re: [SDC] Access sdc api failed.
Hi Rene,
Can you give me more details about the rest call for sdc catalog, such as
Header info, Auth info(user&passwd),
I just use GET
http://10.74.148.219:8080/sdc2/rest/v1/catalog/resources/fc006225-1364-43f2-a905-3ef08f211ea0,
but got the following msg:
status=403,resp_body={
"requestError": {
"serviceException": {
"messageId": "SVC4002",
"text": "Error: Missing information.",
"variables": []
}
}
}
Is there something need to be added to the request header?
And I have another question, I have downloaded the
SDC_Catalog_External_API_AID_v1.1.0.docx from wikipage of sdc, In the document,
I see the rest api for get list of resoures or services which is different from
your sample, should I use your sample or ref the api document?
6.1.2 Request (GET)
https://{serverRoot}/sdc/v1/catalog/{assetType}
Thanks,
Jinhua
发件人: <rene.rob...@orange.com>
收件人:袁虎10090474 <ml6...@intl.att.com>
抄送人: <onap-discuss@lists.onap.org>
日 期 :2017年08月29日 20:26
主 题 :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.
René Robert
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
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