Remplacez MANAGEMENT_API_SERVER_ENDPOINT par le point de terminaison du serveur de l'API Management.
Document de découverte
Utilisez la commande kubectl proxy --port=8001 pour ouvrir un proxy vers le serveur d'API sur votre ordinateur local. Vous pouvez accéder au document de découverte aux URL suivantes :
Voici un exemple d'objet ProjectNetworkPolicy qui permet aux charges de travail du projet project-1 d'autoriser les connexions des charges de travail du projet project-2, ainsi que le trafic de retour pour les mêmes flux :
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/16 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/16 (UTC)."],[[["The Networking API utilizes Kubernetes custom resources and the Kubernetes Resource Model (KRM) for managing networking in Google Distributed Cloud (GDC) air-gapped."],["Networking APIs are available in two packages, supporting zonal and global deployments respectively."],["The API endpoints for zonal and global Networking APIs are `https://\u003cvar\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e/apis/networking.gdc.goog/v1` and `https://\u003cvar\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e/apis/networking.global.gdc.goog/v1`."],["You can access the discovery document using `kubectl proxy --port=8001`, and find it at `http://127.0.0.1:8001/apis/networking.gdc.goog/v1` and `http://127.0.0.1:8001/apis/networking.global.gdc.goog/v1`."],["`ProjectNetworkPolicy` objects can be defined to allow traffic between different projects, as seen in the example for allowing ingress traffic from `project-2` to `project-1`."]]],[]]