Tuesday, 18 October 2022

Atlas Client: Delete glossary category by id

AtlasClientV2#deleteGlossaryCategoryByGuid method is used to delete the glossary category by id.

 

Signature

public void deleteGlossaryCategoryByGuid(String categoryGuid) throws AtlasServiceException 




Example

String categoryId = "80e199fb-f924-4470-adc1-8227b5650f6c";
atlasClient.deleteGlossaryCategoryByGuid(categoryId);

Find the below application.

 

atlas-application.properties

atlas.client.readTimeoutMSecs=30000
atlas.client.connectTimeoutMSecs=30000

DeleteGlossaryCategoryById.java

package com.sample.app.glossary;

import org.apache.atlas.AtlasClientV2;
import org.apache.atlas.AtlasServiceException;

public class DeleteGlossaryCategoryById {

  public static void main(String[] args) throws AtlasServiceException {
    AtlasClientV2 atlasClient = new AtlasClientV2(new String[] { "http://localhost:21000" },
        new String[] { "admin", "admin" });

    String categoryId = "80e199fb-f924-4470-adc1-8227b5650f6c";

    atlasClient.deleteGlossaryCategoryByGuid(categoryId);
  }

}

After running the application, category1 is deleted.




 

Previous                                                    Next                                                    Home

No comments:

Post a Comment