如何列出GCE http负载均衡?

时间:2014-09-25 01:50:26

标签: php google-compute-engine

使用php API列出GCE Http负载平衡和网络负载平衡的方法是什么?

1 个答案:

答案 0 :(得分:1)

public function listForwardingRules($project, $region, $optParams = array())
  {
    $params = array('project' => $project, 'region' => $region);
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList");
  }