Caso d'uso ricerca automatica servizi
Questo caso d'uso mostra come ottenere la lista degli ID abilitazione servizio.
Il dashboard e le API My Services non sono più validi.
Ricerca automatica ID abilitazione servizio corrente
Molte delle operazioni API My Services richiedono di specificare serviceEntitlementId
. Per ottenere la lista di tutti gli ID abilitazione servizio, utilizzare l'operazione GET ServiceEntitlements. Questa operazione restituisce le informazioni che è possibile utilizzare per effettuare richieste più specifiche utilizzando l'API My Services di Oracle Cloud.
Ad esempio:
GET /itas/<domain>/myservices/api/v1/serviceEntitlements
Negli esempi, <domain> è l'ID del dominio di Identity. Un ID dominio di Identity può essere il GUID IDCS che identifica il dominio di Identity per gli utenti all'interno di Identity Cloud Service (IDCS) o il nome del dominio di Identity per un account cloud tradizionale.
Esempio di payload restituito per questa richiesta:
{
"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
}
Andare alla pagina Utenti nel dashboard My Services e fare clic su Console identità. L'URL nel campo dell'indirizzo del browser visualizza il GUID IDCS per il dominio di Identity. Ad esempio:
https://idcs-105bbbdfe5644611bf7ce04496073adf.identity.oraclecloud.com/ui/v1/adminconsole/?root=users
Nell'URL riportato sopra, idcs-105bbbdfe5644611bf7ce04496073adf
è il GUID IDCS per il dominio di Identity.