Supprimer une connexion de point de terminaison privé
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}?api-version=2022-06-01
Paramètres URI
Nom |
Dans |
Obligatoire |
Type |
Description |
privateEndpointConnectionName
|
path |
True
|
string
|
Nom de la connexion de point de terminaison privé associée à la ressource Azure
|
resourceGroupName
|
path |
True
|
string
|
Nom du groupe de ressources qui contient le service instance.
Modèle d’expression régulière: ^[-\w\._\(\)]+$
|
resourceName
|
path |
True
|
string
|
Nom du service instance.
|
subscriptionId
|
path |
True
|
string
|
Identificateur de l’abonnement.
|
api-version
|
query |
True
|
string
|
Version de l’API cliente.
|
Réponses
Nom |
Type |
Description |
200 OK
|
|
La demande a réussi ; la demande a été bien formée et reçue correctement.
|
202 Accepted
|
|
La demande a réussi ; l’opération se termine de manière asynchrone.
|
204 No Content
|
|
Aucun contenu : la connexion de point de terminaison privé n’existe pas.
|
Other Status Codes
|
ErrorDetails
|
DefaultErrorResponse
|
Sécurité
azure_auth
Flux OAuth2 Azure Active Directory
Type:
oauth2
Flux:
implicit
URL d’autorisation:
https://login.microsoftonline.com/common/oauth2/authorize
Étendues
Nom |
Description |
user_impersonation
|
Emprunter l’identité de votre compte d’utilisateur
|
Exemples
PrivateEndpointConnections_Delete
Exemple de requête
DELETE https://management.azure.com/subscriptions/subid/resourceGroups/rgname/providers/Microsoft.HealthcareApis/services/service1/privateEndpointConnections/myConnection?api-version=2022-06-01
from azure.identity import DefaultAzureCredential
from azure.mgmt.healthcareapis import HealthcareApisManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-healthcareapis
# USAGE
python service_delete_private_endpoint_connection.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = HealthcareApisManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.private_endpoint_connections.begin_delete(
resource_group_name="rgname",
resource_name="service1",
private_endpoint_connection_name="myConnection",
).result()
print(response)
# x-ms-original-file: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2022-06-01/examples/legacy/ServiceDeletePrivateEndpointConnection.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.HealthcareApis;
using Azure.ResourceManager.HealthcareApis.Models;
// Generated from example definition: specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2022-06-01/examples/legacy/ServiceDeletePrivateEndpointConnection.json
// this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this HealthcareApisServicePrivateEndpointConnectionResource created on azure
// for more information of creating HealthcareApisServicePrivateEndpointConnectionResource, please refer to the document of HealthcareApisServicePrivateEndpointConnectionResource
string subscriptionId = "subid";
string resourceGroupName = "rgname";
string resourceName = "service1";
string privateEndpointConnectionName = "myConnection";
ResourceIdentifier healthcareApisServicePrivateEndpointConnectionResourceId = HealthcareApisServicePrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, privateEndpointConnectionName);
HealthcareApisServicePrivateEndpointConnectionResource healthcareApisServicePrivateEndpointConnection = client.GetHealthcareApisServicePrivateEndpointConnectionResource(healthcareApisServicePrivateEndpointConnectionResourceId);
// invoke the operation
await healthcareApisServicePrivateEndpointConnection.DeleteAsync(WaitUntil.Completed);
Console.WriteLine($"Succeeded");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Exemple de réponse
Azure-AsyncOperation: https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/westus/operationresults/f7eb8g4f1ncj3jgk6bg8jlqf8?api-version=2022-06-01
Définitions
ErrorDetails
Détails de l’erreur.
ErrorDetailsInternal
Détails de l’erreur.
Nom |
Type |
Description |
code
|
string
|
Code d'erreur.
|
message
|
string
|
Message d’erreur.
|
target
|
string
|
Cible de l’erreur particulière.
|