What's the way to get in java a GCP managed-Instance external IP?

孤街浪徒 提交于 2020-01-05 07:17:07

问题


I have a list of List<ManagedInstance>

I'm looking for this equivalant in java-8 - how to find an external ip of a ManagedInstance ?

I saw in the java-doc, but found no "external IP" property.

@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;

...

来源:https://stackoverflow.com/questions/40175519/whats-the-way-to-get-in-java-a-gcp-managed-instance-external-ip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!