Service-Discovery-Anwendungsfall

In diesem Anwendungsfall wird dargestellt, wie Sie die Liste Ihrer Serviceberechtigungs-IDs abrufen.

Wichtig

Das Dashboard "Meine Services" und die zugehörigen APIs sind veraltet.

Aktuelle Serviceberechtigungs-IDs ermitteln

Bei vielen Vorgängen der API "Meine Services" müssen Sie die serviceEntitlementId angeben. Um die Liste aller Ihrer Serviceberechtigungs-IDs abzurufen, verwenden Sie den Vorgang GET ServiceEntitlements. Dieser Vorgang gibt Informationen zurück, mit denen Sie spezifischere Anforderungen mit der Oracle Cloud-API "Meine Services" senden können.

Beispiel:

GET /itas/<domain>/myservices/api/v1/serviceEntitlements
Hinweis

In den Beispielen ist <domain> die Identitätsdomain-ID. Eine Identitätsdomain-ID kann entweder die IDCS-GUID sein, die die Identitätsdomain für die Benutzer in Identity Cloud Service (IDCS) identifiziert, oder der Identitätsdomainname für einen traditionellen Cloud-Account.

Beispiel-Payload, die für diese Anforderung zurückgegeben wird:

{
     "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
 }
So rufen Sie die IDCS-GUID ab

Gehen Sie zur Seite "Benutzer" im Dashboard "Meine Services", und klicken Sie auf Identity-Konsole. Die URL im Adressfeld des Browsers zeigt die IDCS-GUID für Ihre Identitätsdomain an. Beispiel:

https://idcs-105bbbdfe5644611bf7ce04496073adf.identity.oraclecloud.com/ui/v1/adminconsole/?root=users

In der obigen URL ist idcs-105bbbdfe5644611bf7ce04496073adf die IDCS-GUID für Ihre Identitätsdomain.