ネットワークにルートを作成する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このサンプルでは、宛先とネクストホップ名を指定して、選択したネットワークに新しいルートを作成します。
もっと見る
このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["\u003cp\u003eThis content provides code samples in Go, Java, and Python for creating a new route within a specified network, including setting the destination and the next hop.\u003c/p\u003e\n"],["\u003cp\u003eThe Go sample creates a route with a destination range of \u003ccode\u003e0.0.0.0/0\u003c/code\u003e and uses the \u003ccode\u003edefault-internet-gateway\u003c/code\u003e as the next hop.\u003c/p\u003e\n"],["\u003cp\u003eThe Java example configures a route with a destination range of \u003ccode\u003e10.0.0.0/16\u003c/code\u003e, setting the \u003ccode\u003edefault-internet-gateway\u003c/code\u003e as its next hop, demonstrating route creation within a specified project.\u003c/p\u003e\n"],["\u003cp\u003eThe Python sample offers flexibility by enabling the configuration of various next hop options, including gateways, IPs, instances, VPN tunnels, and Internal Load Balancers, all while allowing for selection of destination ranges and networks.\u003c/p\u003e\n"],["\u003cp\u003eThe code samples require setting up Application Default Credentials for authentication and directs the user to the sample browser to explore more examples.\u003c/p\u003e\n"]]],[],null,[]]