Supprimer une listener rule

Vous pouvez supprimer une listener rule dont vous n’avez plus l’utilité.

Cette action supprime la règle de la listener rule spécifiée, ainsi que la liste des machines virtuelles (VM) backend enregistrées avec celle-ci. Une fois la listener rule supprimée, elle n’est plus utilisée pour rediriger le trafic entrant entre le load balancer et ses VM backend.

Pour modifier la règle d’une listener rule, voir Modifier une listener rule.

À la création d’une listener rule, vous devez enregistrer toutes les backends cibles. Pour modifier la liste des VM backend d’une listener rule, vous devez supprimer la règle et en créer une nouvelle.

Supprimer une listener rule avec OSC CLI

À ce jour, cette section est disponible en anglais uniquement.

The DeleteListenerRule command deletes a listener rule.
The previously active rule is disabled after deletion.

Request sample
$ osc-cli api DeleteListenerRule --profile "default" \
    --ListenerRuleName "example-listener-rule"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • ListenerRuleName: The name of the rule you want to delete.

The DeleteListenerRule command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Supprimer une listener rule avec oapi-cli

À ce jour, cette section est disponible en anglais uniquement.

The DeleteListenerRule command deletes a listener rule.
The previously active rule is disabled after deletion.

Request sample
$ oapi-cli --profile "default" DeleteListenerRule \
    --ListenerRuleName "example-listener-rule"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • ListenerRuleName: The name of the rule you want to delete.

The DeleteListenerRule command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Pages connexes

Méthodes API correspondantes