You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@atlas.apache.org by Nixon Rodrigues <ni...@freestoneinfotech.com> on 2018/10/11 09:27:57 UTC
Re: Referring existing entities in Atlas using Rest API
Hi Anshu,
You can connect to existing entity be referring the guid of already created
entity.
Below is the format of JSON.
{
"entity": {
...
...
"Location" : {
"guid": "<%Existing entity guid)%>",
"typeName": "<type_name_of_existing_entity>"
...
...
}
}
On Thu, Oct 11, 2018 at 2:21 PM Anshu Shukla <an...@ericsson.com>
wrote:
> Hi,
>
> I have used Atlas-scripts in dev-support folder to create entities using
> the given json example file.
> But there is no example to guide and show how to connect to an already
> existing entity in case new entity have attribute of that type.
>
> Example-
>
> <AtlasEntity> Location is an attribute inside the <AtlasEntity> Source
> type. [Using Rest API's]
>
Re: Referring existing entities in Atlas using Rest API
Posted by Sharmadha Sainath <ss...@hortonworks.com>.
Hi Anshu ,
Yes, array should be used.
Example:
"Locations":[
{
guid:"<GUID>",
typeName:“<type name>"
},
{
guid:"<GUID>",
typeName:“<type name>"
},
{
guid:"<GUID>",
typeName:“<type name>"
}
…...
]
Thanks,
Sharmadha S.
On 10/13/18, 11:03 AM, "anshu shukla" <an...@gmail.com> wrote:
>Hi,
>
>Thanks for replying this thing works perfectly for the single referential
>entity but *what format to be used for an array of already existing
>entities. *
>*Can we use an array of JSON for that attribute?*
>
>On Thu, Oct 11, 2018 at 2:58 PM Nixon Rodrigues <
>nixon.rodrigues@freestoneinfotech.com> wrote:
>
>> Hi Anshu,
>>
>> You can connect to existing entity be referring the guid of already
>> created entity.
>> Below is the format of JSON.
>>
>> {
>>
>> "entity": {
>> ...
>> ...
>> "Location" : {
>> "guid": "<%Existing entity guid)%>",
>> "typeName": "<type_name_of_existing_entity>"
>> ...
>> ...
>> }
>>
>> }
>>
>>
>>
>> On Thu, Oct 11, 2018 at 2:21 PM Anshu Shukla <an...@ericsson.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I have used Atlas-scripts in dev-support folder to create entities using
>>> the given json example file.
>>> But there is no example to guide and show how to connect to an already
>>> existing entity in case new entity have attribute of that type.
>>>
>>> Example-
>>>
>>> <AtlasEntity> Location is an attribute inside the <AtlasEntity> Source
>>> type. [Using Rest API's]
>>>
>>
>
>--
>Thanks & Regards,
>Anshu Shukla
Re: Referring existing entities in Atlas using Rest API
Posted by anshu shukla <an...@gmail.com>.
Hi,
Thanks for replying this thing works perfectly for the single referential
entity but *what format to be used for an array of already existing
entities. *
*Can we use an array of JSON for that attribute?*
On Thu, Oct 11, 2018 at 2:58 PM Nixon Rodrigues <
nixon.rodrigues@freestoneinfotech.com> wrote:
> Hi Anshu,
>
> You can connect to existing entity be referring the guid of already
> created entity.
> Below is the format of JSON.
>
> {
>
> "entity": {
> ...
> ...
> "Location" : {
> "guid": "<%Existing entity guid)%>",
> "typeName": "<type_name_of_existing_entity>"
> ...
> ...
> }
>
> }
>
>
>
> On Thu, Oct 11, 2018 at 2:21 PM Anshu Shukla <an...@ericsson.com>
> wrote:
>
>> Hi,
>>
>> I have used Atlas-scripts in dev-support folder to create entities using
>> the given json example file.
>> But there is no example to guide and show how to connect to an already
>> existing entity in case new entity have attribute of that type.
>>
>> Example-
>>
>> <AtlasEntity> Location is an attribute inside the <AtlasEntity> Source
>> type. [Using Rest API's]
>>
>
--
Thanks & Regards,
Anshu Shukla
Re: Referring existing entities in Atlas using Rest API
Posted by anshu shukla <an...@gmail.com>.
Hi,
Thanks for replying this thing works perfectly for the single referential
entity but *what format to be used for an array of already existing
entities. *
*Can we use an array of JSON for that attribute?*
On Thu, Oct 11, 2018 at 2:58 PM Nixon Rodrigues <
nixon.rodrigues@freestoneinfotech.com> wrote:
> Hi Anshu,
>
> You can connect to existing entity be referring the guid of already
> created entity.
> Below is the format of JSON.
>
> {
>
> "entity": {
> ...
> ...
> "Location" : {
> "guid": "<%Existing entity guid)%>",
> "typeName": "<type_name_of_existing_entity>"
> ...
> ...
> }
>
> }
>
>
>
> On Thu, Oct 11, 2018 at 2:21 PM Anshu Shukla <an...@ericsson.com>
> wrote:
>
>> Hi,
>>
>> I have used Atlas-scripts in dev-support folder to create entities using
>> the given json example file.
>> But there is no example to guide and show how to connect to an already
>> existing entity in case new entity have attribute of that type.
>>
>> Example-
>>
>> <AtlasEntity> Location is an attribute inside the <AtlasEntity> Source
>> type. [Using Rest API's]
>>
>
--
Thanks & Regards,
Anshu Shukla