在Java中获取GCP托管实例外部IP的方法是什么?

时间:2016-10-21 11:27:36

标签: java google-api java-8 google-cloud-platform

我有List<ManagedInstance>

的列表

我在java-8中寻找this等价物 - 如何找到ManagedInstance的外部ip?

我在java-doc中看到过,但没有找到“外部IP”属性。

@SuppressWarnings("javadoc")
public final class ManagedInstance extends   /**
   * [Output only] The unique identifier for this resource. This field is empty when instance does
   * not exist.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.math.BigInteger id;

  /**
   * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been
   * created.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String instance;

  /**
   * [Output Only] The status of the instance. This field is empty when the instance does not exist.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String instanceStatus;

...

0 个答案:

没有答案