Aller au contenu principal

Connectivité Cloud AWS - Créer un connecteur privé Self-Made

Préparez les identifiants, le VPN technique et les valeurs de connexion AWS avant de créer le connecteur.

1. Récupérer les identifiants AWS​

Listez les identifiants du projet et utilisez l'id retourné comme awsCredentialId. Si aucun identifiant n'est disponible, créez-en un.

GET https://ope-obs.apibackbone.orange.com/evolutionplatform/aws/api/v1/projects/{projectId}/aws/credentials?limit=10&offset=0

2. Récupérer le VPN technique​

Remplacez {tenantId} par l'UUID du tenant ou de l'organisation. Utilisez l'id du VPN retourné comme technicalVpnId.

GET https://ope-obs.apibackbone.orange.com/evolutionplatform/vpnaaservice/api/v2/tenant/{tenantId}/vpns?connectivity=Any2Any&limit=100&offset=0

3. Récupérer la région AWS​

Utilisez l'identifiant AWS de l'étape 1 et le type d'interface virtuelle choisi (privateVif ou transitVif).

GET https://ope-obs.apibackbone.orange.com/evolutionplatform/aws/api/v1/aws/projects/{projectId}/vif/{vifType}/regions?awsCredentialsId={awsCredentialId}

4. Récupérer la passerelle client​

Utilisez le même type d'interface pour lister les passerelles client du compte AWS. Le paramètre regionName est facultatif ; s'il est fourni, il filtre les résultats.

GET https://ope-obs.apibackbone.orange.com/evolutionplatform/aws/api/v1/projects/{projectId}/aws/vif/{vifValue}/customergateways?awsCredentialsId={awsCredentialId}&regionName={region}

5. Récupérer l'emplacement Orange​

GET https://ope-obs.apibackbone.orange.com/evolutionplatform/aws/api/v1/aws/orangelocations

6. Créer le connecteur privé​

Les champs obligatoires sont name, state, bandwidth, technicalVpnId, awsCredentialId, virtualInterfaceType, location et customerGatewayId. region, maxBandwidth et routingPolicy sont facultatifs.

POST https://ope-obs.apibackbone.orange.com/evolutionplatform/aws/api/v1/projects/{projectId}/aws/cloudconnectors/privates
Authorization: Bearer YOUR_JWT_TOKEN
Content-Type: application/json
{
"name": "YOUR_CONNECTOR_NAME",
"state": "DESIGNED",
"bandwidth": 50,
"technicalVpnId": "YOUR_TECHNICAL_VPN_ID",
"awsCredentialId": "YOUR_AWS_CREDENTIAL_ID",
"virtualInterfaceType": "privateVif",
"location": "YOUR_ORANGE_LOCATION",
"region": "YOUR_AWS_REGION",
"customerGatewayId": "YOUR_CUSTOMER_GATEWAY_ID",
"routingPolicy": "basicAggregate"
}

Une création réussie renvoie 201 Created. Consultez la référence des endpoints pour les valeurs autorisées des champs.