訂購硬體

本頁面說明如何訂購 Google Distributed Cloud connected 硬體。Distributed Cloud connected 適用於下列國家/地區:

  • 澳洲
  • 奧地利
  • 比利時
  • 巴西
  • 加拿大
  • 丹麥
  • 芬蘭
  • 法國
  • 德國
  • 香港
  • 日本
  • 印度
  • 印尼
  • 義大利
  • 荷蘭
  • 挪威
  • 波蘭
  • 沙烏地阿拉伯
  • 新加坡
  • 韓國
  • 西班牙
  • 瑞典
  • 瑞士
  • 英國
  • 美國

訂購硬體前,請務必符合 Distributed Cloud 連線安裝規定

Distributed Cloud connected 訂單類型

您可以根據業務需求,透過下列任一方式訂購 Distributed Cloud connected 硬體:

  • Google 擁有的硬體。您可以直接向 Google 訂購 Distributed Cloud connected 硬體。在這種情況下,Google 會提供、維護、維修及停用 Distributed Cloud 連線硬體。合約結束後,Google 會收回 Distributed Cloud 硬體,並銷毀儲存在其中的所有資料。

  • 客戶自行提供的硬體。與 Google 討論符合業務需求的部署設定後,您可以向 Google 合作夥伴系統整合商訂購 Distributed Cloud Connected。在這種情況下,您擁有 Distributed Cloud connected 硬體。系統整合商會與您和 Google 合作,部署、維修及停用硬體。合約結束時,系統整合商會清除 Distributed Cloud 連線硬體中的所有 Google 軟體和您的資料。然後就能重複使用或丟棄硬體。

使用 Google Cloud 控制台訂購 Distributed Cloud connected 硬體

  1. 前往 Google Cloud 控制台的「Orders」(訂單) 頁面。

    前往「訂單」頁面

  2. 選取目標 Google Cloud 專案。

  3. 按一下「建立訂單」

  4. 填寫並提交申請表單。

Google Cloud 業務代表會審查您的申請,並與您聯絡以完成訂單。代表會執行下列作業:

  • 審查您的業務需求,協助您選擇最佳硬體設定。
  • 收集有關您當地網路、 Google Cloud 專案、安裝地點,以及安裝需求中列出的其他需求資訊。
  • 在交付 Distributed Cloud 硬體前,請使用這項資訊進行設定。

使用 GDC Hardware Management API 訂購 Distributed Cloud connected 硬體

如要使用 GDC Hardware Management API 下單,您必須建立 Order 資源,以及 Order 資源參照的隨附 SiteZoneHardware 資源。然後將 Order 資源提交給 Google。

這些資源具有下列功能。如要進一步瞭解如何使用 GDC Hardware Management API,請參閱 Google Distributed Cloud CLI 和 API 參考資料

  • Order。這項資源會要求建立一或多個 Distributed Cloud 區域。建立這項資源時,系統會指派一個名稱,可透過 create_order_response.name 欄位存取。Order 資源名稱的格式如下:

    `projects/`PROJECT_ID`/locations/`REGION`/orders/`ORDER_ID

    其中:

    • PROJECT_ID:目標 Google Cloud 專案的 ID。
    • REGION:要部署 Distributed Cloud 區域的 Google Cloud 區域。
    • ORDER_ID:用於識別這筆訂單的專屬 ID。如果省略,系統會自動產生值。建議您提供由小寫英文字母、數字和破折號組成的專屬訂單 ID 值。否則,建立訂單的呼叫失敗可能會產生重複訂單。
  • Site。這項資源代表您要部署 Distributed Cloud 硬體的實際位置。這項資源包括負責協調初始交付和後續維護作業的聯絡人資訊。這個聯絡人可能與訂單上提供的聯絡人不同。

  • Hardware。這個資源代表 Distributed Cloud 伺服器或機架。 每個 Hardware 資源都會參照相關聯的 OrderSiteZone 資源。 如要查看可用的 SKU,請使用 ListSkus API 呼叫。

  • Zone。這項資源代表要部署在您所在位置的 Distributed Cloud connected 硬體。Distributed Cloud 可用區涵蓋一或多個 Distributed Cloud connected 機架,或部署在您所在位置的所有 Distributed Cloud connected 伺服器。

完成本節中的步驟前,請先與 Google 銷售代表合作填寫客戶資訊問卷 (CIQ),並完成 Distributed Cloud 連線部署的範圍和設定。您需要提供這項資訊才能下單。

必要條件

開始之前,請先完成下列必要條件:

  1. 設定 Python 開發環境

  2. 使用下列指令安裝 GDC Hardware Management API 用戶端程式庫:

    python3 -m pip install google-cloud-gdchardwaremanagement
    
  3. 在目標 Google Cloud 專案中啟用 GDC Hardware Management API

使用 GDC Hardware Management API 建立及提交 Distributed Cloud connected 硬體訂單

本節的步驟是範例,說明如何使用 GDC 硬體管理 API,向 Google 建立及提交 Order 資源。如要完成本節中的步驟,您必須在專案中具備「GDC 硬體管理管理員」(roles/gdchardwaremanagement.admin) 角色。 Google Cloud

  1. 建立 Order 資源。例如:

    import datetime
    from google.cloud import gdchardwaremanagement_v1alpha
    from google.protobuf.timestamp_pb2 import Timestamp
    from google.type import postal_address_pb2
    
    client = gdchardwaremanagement_v1alpha.GDCHardwareManagementClient()
    
    contact = gdchardwaremanagement_v1alpha.Contact(
        given_name="John",
        family_name="Customer",
        email="jcustomer@example.com",
        phone="+1 123 456 7890",
    )
    
    organization_contact = gdchardwaremanagement_v1alpha.OrganizationContact(
        address=postal_address_pb2.PostalAddress(
            organization="Example Organization",
            address_lines=["1800 Amphibious Blvd."],
            locality="Mountain View",
            administrative_area="CA",
            postal_code="94045",
            region_code="US",
        ),
        contacts=[contact],
    )
    
    order = gdchardwaremanagement_v1alpha.Order(
        organization_contact=organization_contact,
        customer_motivation="I like Google Distributed Cloud!",
        fulfillment_time=Timestamp(
            seconds=int(datetime.datetime(2024, 11, 22, 9, 0).timestamp()),
        ),
        region_code="US",
    )
    
    create_order_response = client.create_order(
        request=gdchardwaremanagement_v1alpha.CreateOrderRequest(
            parent="projects/myProject/locations/us-east1",
            order_id="myOrderID",
            order=order,
        ),
    ).result()

    訂單現在處於 DRAFT 狀態,且已指派儲存在 create_order_response.name 欄位中的資源名稱。修改或追蹤這項訂單的狀態時,請使用這個資源名稱。

  2. 建立 Site 資源。例如:

    site = gdchardwaremanagement_v1alpha.Site(
        organization_contact=organization_contact,
        google_maps_pin_uri="https://maps.app.goo.gl/z7bE8z8fffg6Sri46",
    )
    
    create_site_response = client.create_site(
        request=gdchardwaremanagement_v1alpha.CreateSiteRequest(
            parent="projects/myProject/locations/us-east1",
            site_id="mySite",
            site=site,
        ),
    ).result()
  3. 建立 Zone 資源。例如:

    zone = gdchardwaremanagement_v1alpha.Zone(
        contacts=[contact],
        network_config=gdchardwaremanagement_v1alpha.ZoneNetworkConfig(
            management_ipv4_subnet=gdchardwaremanagement_v1alpha.Subnet(
                address_range="192.0.2.0/24",
                default_gateway_ip_address="192.0.2.1",
            ),
            machine_mgmt_ipv4_range="192.0.2.8/29",
            kubernetes_ipv4_subnet=gdchardwaremanagement_v1alpha.Subnet(
                address_range="203.0.113.0/24",
                default_gateway_ip_address="203.0.113.1",
            ),
            kubernetes_node_ipv4_range="203.0.113.8/29",
            kubernetes_control_plane_ipv4_range="203.0.113.16/29",
        ),
    )
    
    create_zone_response = client.create_zone(
        request=gdchardwaremanagement_v1alpha.CreateZoneRequest(
            parent="projects/myProject/locations/us-east1",
            zone_id="myZone",
            zone=zone,
        ),
    ).result()
  4. 建立 Hardware 資源。您必須為 Distributed Cloud connected 部署中的每部機器指定不重複的 hardware_id 值。例如:

    from google.type import date_pb2
    
    hardware = gdchardwaremanagement_v1alpha.Hardware(
        order=create_order_response.name,
        site=create_site_response.name,
        zone=create_zone_response.name,
        config=gdchardwaremanagement_v1alpha.HardwareConfig(
            sku="projects/myProject/locations/us-east1/skus/gdce-server-l",
            power_supply=gdchardwaremanagement_v1alpha.types.PowerSupply.POWER_SUPPLY_AC,
        ),
        physical_info=gdchardwaremanagement_v1alpha.HardwarePhysicalInfo(
            power_receptacle=gdchardwaremanagement_v1alpha.types.HardwarePhysicalInfo.PowerReceptacleType.NEMA_5_15,
            network_uplink=gdchardwaremanagement_v1alpha.types.HardwarePhysicalInfo.NetworkUplinkType.RJ_45,
            voltage=gdchardwaremanagement_v1alpha.types.HardwarePhysicalInfo.Voltage.VOLTAGE_110,
            amperes=gdchardwaremanagement_v1alpha.types.HardwarePhysicalInfo.Amperes.AMPERES_15,
        ),
        installation_info=gdchardwaremanagement_v1alpha.HardwareInstallationInfo(
            rack_location="Floor 2, Room 201, Row 7, Rack 3",
            power_distance_meters=2,
            switch_distance_meters=2,
            rack_unit_dimensions=gdchardwaremanagement_v1alpha.Dimensions(
                width_inches=19,
                height_inches=1.75,
                depth_inches=30,
            ),
            rack_space=gdchardwaremanagement_v1alpha.RackSpace(
                start_rack_unit=12,
                end_rack_unit=12,
            ),
            rack_type=gdchardwaremanagement_v1alpha.types.HardwareInstallationInfo.RackType.FOUR_POST,
        ),
        requested_installation_date=date_pb2.Date(year=2024, month=11, day=22),
    )
    
    create_hardware_response = client.create_hardware(
        request=gdchardwaremanagement_v1alpha.CreateHardwareRequest(
            parent="projects/myProject/locations/us-east1",
            hardware_id="machineHardwareID",
            hardware=hardware,
        ),
    ).result()
  5. Order 資源提交給 Google:

    submit_order_response = client.submit_order(
        request=gdchardwaremanagement_v1alpha.SubmitOrderRequest(
            name=create_order_response.name,
        ),
    ).result()

後續步驟