google_backup_dr_management_server

A Backup and DR Management Server (Also referred as Management Console)

To get more information about ManagementServer, see:

Example Usage - Backup Dr Management Server

resource "google_compute_network" "default" {
  provider = google-beta
  name = "vpc-network"
}

resource "google_compute_global_address" "private_ip_address" {
  provider = google-beta
  name          = "vpc-network"
  address_type  = "INTERNAL"
  purpose       = "VPC_PEERING"
  prefix_length = 20
  network       = google_compute_network.default.id
}

resource "google_service_networking_connection" "default" {
  provider = google-beta
  network                 = google_compute_network.default.id
  service                 = "servicenetworking.googleapis.com"
  reserved_peering_ranges = [google_compute_global_address.private_ip_address.name]
}

resource "google_backup_dr_management_server" "ms-console" {
  provider = google-beta
  location = "us-central1"
  name     = "ms-console"
  type     = "BACKUP_RESTORE" 
  networks {
    network      = google_compute_network.default.id
    peering_mode = "PRIVATE_SERVICE_ACCESS"
  }
  depends_on = [ google_service_networking_connection.default ]
}

Argument Reference

The following arguments are supported:

The networks block supports:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

The management_uri block contains:

Timeouts

This resource provides the following Timeouts configuration options:

Import

ManagementServer can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import ManagementServer using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{location}}/managementServers/{{name}}"
  to = google_backup_dr_management_server.default
}

When using the terraform import command, ManagementServer can be imported using one of the formats above. For example:

$ terraform import google_backup_dr_management_server.default projects/{{project}}/locations/{{location}}/managementServers/{{name}}
$ terraform import google_backup_dr_management_server.default {{project}}/{{location}}/{{name}}
$ terraform import google_backup_dr_management_server.default {{location}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.