Identifiants Azure - Create
Créer des identifiants Azure dans un projet spécifié.
POST https://{envUri}/api/v1/projects/{projectId}/azure/credentials
Paramètres URI
Nom | Dans | Obligatoire | Type | Description |
---|---|---|---|---|
envUri | path | true | string | URL de la plateforme cible. |
project | path | true | string | Identifiant unique du projet dans Evolution Platform. |
Corps de la demande
Nom | Obligatoire | Type | Description |
---|---|---|---|
name | true | string | Nom de l'identifiant Azure dans Evolution Plateforme |
description | true | string | Description de l'identifiant Azure |
subscription | true | string | Identifiant d'abonnement qui identifie de manière unique l'abonnement Microsoft Azure. |
tenant | true | string | Identifiant du tenant Azure Active Directory associé à l'abonnement. |
client | true | string | Identifiant de l'application enregistrée dans Azure Active Directory pour l'authentification. |
client | true | string | Secret associé à l'application, utilisé pour authentifier l'application avec Azure. |
expiration | true | string | La date d'expiration du jeton d'authentification ou du secret client. |
Réponses
Nom | Type | Description |
---|---|---|
201 Created | Identifiant | POST réussi. L'opération retourne l'identifiant créé. |
Autres Codes | Réponse d'erreur | Réponse d’erreur décrivant pourquoi l’opération a échoué. |
Contenu de la réponse
Nom | Type | Description |
---|---|---|
id | uuid | Identifiant de l'identifiant Azure dans Evolution Platform |
projectId | string | Identifiant du projet dans Evolution Platform |
name | string | Nom de l'identifiant Azure dans Evolution Platform |
csp | string | Nom du fournisseur de services cloud (Cloud Service Provider) |
description | string | Description de l'identifiant Azure |
projectName | string | Nom du projet dans Evolution Platform |
expiration | string | La date d'expiration du jeton d'authentification ou du secret client. |
Sécurité
Type : oauth2
URL d’autorisation : https://api.orange.com/oauth/v3/token
Exemples
Exemple de requête
POST https://{envUri}/api/v1/projects/projectId/azure/credentials
{
"name":"CredentialsAzure",
"description":"This set of credentials allow provisionning on Azure",
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"subscriptionId": {AZURE_SUBSCRIPTION_ID},
"tenantId": {AZURE_TENANT_ID},
"clientId": {AZURE_CLIENT_ID},
"clientSecret": {AZURE_CLIENT_SECRET},
"expirationDate":"2025-06-15"
}
Exemple de réponse
Code d’état : 201 (Created)
{
"id": "29f85f64-5717-4562-b3fc-2c963f66afa6",
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name":"CredentialsAzure",
"csp":"AZURE",
"description":"This set of credentials allow provisionning on Azure",
"projectName": "orchestrator",
"expirationDate":"2025-06-15"
}