---
name: "ocf_heartbeat_gcp-vpc-move-vip"
section: "7"
platform: "linux"
package: "resource-agents"
version: "1:4.16.0-3+deb13u2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ocf_heartbeat_gcp-vpc-move-vip"
---

# ocf\_heartbeat\_gcp-vpc-move-vip(7)

Floating IP Address or Range on Google Cloud Platform

## NAME

ocf\_heartbeat\_gcp-vpc-move-vip - Floating IP Address or Range on Google Cloud Platform

## SYNOPSIS

**gcp-vpc-move-vip** \[start \| stop \| monitor \| meta-data \| validate-all\]

## DESCRIPTION

Floating IP Address or Range on Google Cloud Platform - Using Alias IP address functionality to attach a secondary IP range to a running instance

## SUPPORTED PARAMETERS

**alias\_ip**

IP range to be added including CIDR netmask (e.g., 192.168.0.1/32)

(unique, required, string, no default)

**alias\_range\_name**

Subnet name for the Alias IP

(optional, string, no default)

**hostlist**

List of hosts in the cluster, separated by spaces

(optional, string, no default)

**project**

Project ID of the instance. It can be useful to set this attribute if the instance is in a shared service project. Otherwise, the agent should be able to determine the project ID automatically.

(optional, string, default "default")

**serviceaccount**

Path to Service account JSON file

(optional, string, no default)

**stackdriver\_logging**

If enabled (set to true), IP failover logs will be posted to stackdriver logging

(optional, boolean, default false)

## SUPPORTED ACTIONS

This resource agent supports the following actions (operations):

**start**

Starts the resource. Suggested minimum timeout: 300s.

**stop**

Stops the resource. Suggested minimum timeout: 15s.

**monitor**

Performs a detailed status check. Suggested minimum timeout: 15s. Suggested interval: 60s.

**meta-data**

Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 15s.

**validate-all**

Performs a validation of the resource configuration. Suggested minimum timeout: 15s.

## EXAMPLE CRM SHELL

The following is an example configuration for a gcp-vpc-move-vip resource using the [**crm**(8)](/crm/8.md) shell:

```
primitive p_gcp-vpc-move-vip ocf:heartbeat:gcp-vpc-move-vip \
  params \
    alias_ip=string \
  op monitor timeout="15s" interval="60s" depth="0"
```

## EXAMPLE PCS

The following is an example configuration for a gcp-vpc-move-vip resource using [**pcs**(8)](/pcs/8.md)

```
pcs resource create p_gcp-vpc-move-vip ocf:heartbeat:gcp-vpc-move-vip \
  alias_ip=string \
  op monitor timeout="15s" interval="60s" OCF_CHECK_LEVEL="0"
```

## SEE ALSO

**http://clusterlabs.org/**

## AUTHOR

**ClusterLabs contributors (see the resource agent source for information about individual authors)**
