Suppression d'un service horaire
Conditions préalables
Authentifier - Soumettez vos informations d'identification de l'utilisateur, l'ID du client et le secret du client pour l'authentification OAuth2. Reportez-vous à API Authentication pour savoir comment appeler l'API OAuth afin de valider et d'authentifier vos informations d'identification.
Supprimer un service horaire
Pour supprimer un service de temps, envoyez une requête DELETE au point de terminaison /fabric/v4/timeServices/{serviceId}. Spécifiez l'ID du service dans le chemin de la requête.
Exemple de requête cURL :
curl -X
DELETE 'https://api.equinix.com/fabric/v4/timeServices/3a58dd05-f46d-4b1d-a154-2e85c396ea62'
-H 'authorization: Bearer <token>'
Exemple de réponse :
{
"href": "https://api.equinix.com/fabric/v4/timeServices/a8ba52de-faae-43b5-b0b1-6904d37ee011",
"uuid": "a8ba52de-faae-43b5-b0b1-6904d37ee011",
"name": "EPT-Single-Service",
"type": "NTP",
"state": "PROVISIONING",
"connections": [
{
"href": "https://api.equinix.com/fabric/v4/connections/a8ba52de-faae-43b5-b0b1-6904d37ee011",
"uuid": "06dbb0e3-e55d-4090-8aff-fc5654abaad0"
}
],
"package": {
"href": "https://api.equinix.com/fabric/v4/timeServicePackages/NTP_STANDARD",
"code": "NTP_STANDARD"
},
"ipv4": {
"primary": "192.168.0.2",
"secondary": "192.168.0.3",
"networkMask": "255.255.255.240",
"defaultGateway": "192.168.0.1"
},
"account": {
"accountNumber": 123456
}
}