This resource represents a service registry. Use it to retrieve attributes related to a service registry in JSM.
Retrieve the attributes of given service registries.
Permissions required: Only Connect apps can make this request and the servicesIds belong to the tenant you are requesting
Connect apps cannot access this REST resource.
array<string>
RequiredReturned if the request is successful.
array<ServiceRegistry>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
//
// This API resource doesn't support Oauth2 (3LO). See alternate authorization methods:
// https://developer.atlassian.com/cloud/jira/platform/rest/v3/#authentication
import api, { route } from "@forge/api";
const response = await api.requestJira(route`/rest/atlassian-connect/1/service-registry?serviceIds={serviceIds}`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[
{
"description": "<string>",
"id": "<string>",
"name": "<string>",
"organizationId": "<string>",
"revision": "<string>",
"serviceTier": {
"description": "<string>",
"id": "<string>",
"level": 10,
"name": "<string>",
"nameKey": "service-registry.tier1.name"
}
}
]
Rate this page: