サービス検出のユース・ケース
このユース・ケースでは、サービス資格IDのリストを取得する方法を示します。
重要
My ServicesダッシュボードおよびAPIは非推奨です。
My ServicesダッシュボードおよびAPIは非推奨です。
現在のサービス資格IDの検出
My Services API操作の多くでは、serviceEntitlementId
を指定する必要があります。すべてのサービス資格IDのリストを取得するには、GET ServiceEntitlements操作を使用します。この操作では、Oracle Cloud My Services APIを使用して、より具体的なリクエストを行う際に使用できる情報が返されます。
例:
GET /itas/<domain>/myservices/api/v1/serviceEntitlements
ノート
この例の<domain>はアイデンティティ・ドメインIDです。アイデンティティ・ドメインIDは、Identity Cloud Service (IDCS)におけるのユーザーのアイデンティティ・ドメインを識別するIDCS GUID、または従来のクラウド・アカウントのアイデンティティ・ドメイン名のいずれでもかまいません。
このリクエストに対して返されるペイロードの例:
{
"items": [
{
"id": "cesi-511202718", // Unique ServiceEntitlementId
"purchaseEntitlement": { // Purchase Entitlement is the entity bought by a customer
"subscriptionId": "511203590",
"id": "511203590",
"canonicalLink": "/itas/<domain>/myservices/api/v1/purchaseEntitlements/511203590"
},
"serviceDefinition": {
"canonicalLink": "/itas/<domain>/myservices/api/v1/serviceDefinitions/500089778",
"id": "500089778",
"name": "Storage" // The customer is entitled to use the Storage Service
},
"createdOn": "2017-12-20T16:23:23.326Z",
"createdBy": "paul.smith@oracle.com",
"modifiedOn": "2017-12-20T18:35:40.628Z",
"modifiedBy": "paul.smith@oracle.com",
"identityDomain": { // Identity Domain to which the Service Entitlement is associated
"id": "511203592",
"name": "myenvironment",
"displayName": "myenvironment"
},
"cloudAccount": { // Cloud Account to which the Service Entitlement is associated
"id": "cacct-be7475efc2c54995bc842d3379d35812",
"name": "myenvironment",
"canonicalLink": "/itas/<domain>/myservices/api/v1/cloudAccounts/cacct-be7475efc2c54995bc842d3379d35812"
},
"status": "ACTIVE", // Current Status
"serviceConfigurations": { // Specific configuration information such as Exadata configuration
"canonicalLink": "/itas/<domain>/myservices/api/v1/serviceEntitlements/cesi-511202718/serviceConfigurations"
},
"canonicalLink": "/itas/{domain}/myservices/api/v1/serviceEntitlements/cesi-511202718"
},
{
"id": "cesi-511202719",
"purchaseEntitlement": {
"subscriptionId": "511203590",
"id": "511203590",
"canonicalLink": "/itas/<domain>/myservices/api/v1/purchaseEntitlements/511203590"
},
"serviceDefinition": {
"canonicalLink": "/itas/<domain>/myservices/api/v1/serviceDefinitions/500123193",
"id": "500123193",
"name": "Compute" // The customer is entitled to use the Compute Service
},
"createdOn": "2017-12-20T16:23:23.326Z",
"createdBy": "paul.smith@oracle.com",
"modifiedOn": "2017-12-20T18:35:40.628Z",
"modifiedBy": "paul.smith@oracle.com",
"identityDomain": {
"id": "511203592",
"name": "myenvironment",
"displayName": "myenvironment"
},
"cloudAccount": {
"id": "cacct-be7475efc2c54995bc842d3379d35812",
"name": "myenvironment",
"canonicalLink": "/itas/<domain>/myservices/api/v1/cloudAccounts/cacct-be7475efc2c54995bc842d3379d35812"
},
"status": "ACTIVE",
"serviceConfigurations": {
"canonicalLink": "/itas/<domain>/myservices/api/v1/serviceEntitlements/cesi-511202719/serviceConfigurations"
},
"canonicalLink": "/itas/<domain>/myservices/api/v1/serviceEntitlements/cesi-511202719"
},
... // More Service Entitlements could be displayed
],
"canonicalLink": "/itas/<domain>/myservices/api/v1/serviceEntitlements",
"hasMore": false,
"limit": 25,
"offset": 0
}
IDCS GUIDを取得するには
My Servicesダッシュボードの「ユーザー」ページに移動し、「アイデンティティ・コンソール」をクリックします。ブラウザのアドレス・フィールドのURLに、アイデンティティ・ドメインのIDCS GUIDが表示されています。例:
https://idcs-105bbbdfe5644611bf7ce04496073adf.identity.oraclecloud.com/ui/v1/adminconsole/?root=users
上のURLで、idcs-105bbbdfe5644611bf7ce04496073adf
がアイデンティティ・ドメインのIDCS GUIDです。