1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. backupdisasterrecovery
  5. getManagementServer
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.backupdisasterrecovery.getManagementServer

Explore with Pulumi AI

Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const my_backup_dr_management_server = gcp.backupdisasterrecovery.getManagementServer({
    location: "us-central1",
});
Copy
import pulumi
import pulumi_gcp as gcp

my_backup_dr_management_server = gcp.backupdisasterrecovery.get_management_server(location="us-central1")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/backupdisasterrecovery"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := backupdisasterrecovery.LookupManagementServer(ctx, &backupdisasterrecovery.LookupManagementServerArgs{
			Location: "us-central1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var my_backup_dr_management_server = Gcp.BackupDisasterRecovery.GetManagementServer.Invoke(new()
    {
        Location = "us-central1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.BackupdisasterrecoveryFunctions;
import com.pulumi.gcp.backupdisasterrecovery.inputs.GetManagementServerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var my-backup-dr-management-server = BackupdisasterrecoveryFunctions.getManagementServer(GetManagementServerArgs.builder()
            .location("us-central1")
            .build());

    }
}
Copy
variables:
  my-backup-dr-management-server:
    fn::invoke:
      function: gcp:backupdisasterrecovery:getManagementServer
      arguments:
        location: us-central1
Copy

Using getManagementServer

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getManagementServer(args: GetManagementServerArgs, opts?: InvokeOptions): Promise<GetManagementServerResult>
function getManagementServerOutput(args: GetManagementServerOutputArgs, opts?: InvokeOptions): Output<GetManagementServerResult>
Copy
def get_management_server(location: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetManagementServerResult
def get_management_server_output(location: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetManagementServerResult]
Copy
func LookupManagementServer(ctx *Context, args *LookupManagementServerArgs, opts ...InvokeOption) (*LookupManagementServerResult, error)
func LookupManagementServerOutput(ctx *Context, args *LookupManagementServerOutputArgs, opts ...InvokeOption) LookupManagementServerResultOutput
Copy

> Note: This function is named LookupManagementServer in the Go SDK.

public static class GetManagementServer 
{
    public static Task<GetManagementServerResult> InvokeAsync(GetManagementServerArgs args, InvokeOptions? opts = null)
    public static Output<GetManagementServerResult> Invoke(GetManagementServerInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagementServerResult> getManagementServer(GetManagementServerArgs args, InvokeOptions options)
public static Output<GetManagementServerResult> getManagementServer(GetManagementServerArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:backupdisasterrecovery/getManagementServer:getManagementServer
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Location This property is required. string
Location This property is required. string
location This property is required. String
location This property is required. string
location This property is required. str
location This property is required. String

getManagementServer Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Location string
ManagementUris List<GetManagementServerManagementUri>
Name string
Networks List<GetManagementServerNetwork>
Oauth2ClientId string
Project string
Type string
Id string
The provider-assigned unique ID for this managed resource.
Location string
ManagementUris []GetManagementServerManagementUri
Name string
Networks []GetManagementServerNetwork
Oauth2ClientId string
Project string
Type string
id String
The provider-assigned unique ID for this managed resource.
location String
managementUris List<GetManagementServerManagementUri>
name String
networks List<GetManagementServerNetwork>
oauth2ClientId String
project String
type String
id string
The provider-assigned unique ID for this managed resource.
location string
managementUris GetManagementServerManagementUri[]
name string
networks GetManagementServerNetwork[]
oauth2ClientId string
project string
type string
id String
The provider-assigned unique ID for this managed resource.
location String
managementUris List<Property Map>
name String
networks List<Property Map>
oauth2ClientId String
project String
type String

Supporting Types

GetManagementServerManagementUri

Api This property is required. string
The management console api endpoint.
WebUi This property is required. string
The management console webUi.
Api This property is required. string
The management console api endpoint.
WebUi This property is required. string
The management console webUi.
api This property is required. String
The management console api endpoint.
webUi This property is required. String
The management console webUi.
api This property is required. string
The management console api endpoint.
webUi This property is required. string
The management console webUi.
api This property is required. str
The management console api endpoint.
web_ui This property is required. str
The management console webUi.
api This property is required. String
The management console api endpoint.
webUi This property is required. String
The management console webUi.

GetManagementServerNetwork

Network This property is required. string
Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
PeeringMode This property is required. string
Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
Network This property is required. string
Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
PeeringMode This property is required. string
Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
network This property is required. String
Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
peeringMode This property is required. String
Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
network This property is required. string
Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
peeringMode This property is required. string
Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
network This property is required. str
Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
peering_mode This property is required. str
Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
network This property is required. String
Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
peeringMode This property is required. String
Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi