Skip to main content
 print this page

Retrieve resource id for a resource with a specific name

Amorphic users can retrieve the resource Id based on the specific resource name using the below API call.

Datasets

PropertyValue
Http MethodGET
API<API_GW_URL/environment>/resourcetypes/datasets/resources/{resource_name}

Example:

https://1abcdefghi.execute-api.us-west-2.amazonaws.com/dev/resourcetypes/datasets/resources/Test_Dataset

If user has more than one dataset in the environment with the same name (in different domains) then user should include the domain name in the API as <domainName>::<datasetName>

Ex: /resourcetypes/datasets/resources/testdomain::Test_Dataset

Jobs

PropertyValue
Http MethodGET
API<API_GW_URL/environment>/resourcetypes/jobs/resources/{resource_name}

Example:

https://1abcdefghi.execute-api.us-west-2.amazonaws.com/dev/resourcetypes/jobs/resources/Test_ETL_Job

Response of the APIs will be returned as a JSON object described as below:

{
"ResourceId": "UUID",
"ResourceName": "string"
}