1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. backupdisasterrecovery
  5. getManagementServer
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.backupdisasterrecovery.getManagementServer

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 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",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    my_backup_dr_management_server = gcp.backupdisasterrecovery.get_management_server(location="us-central1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      my-backup-dr-management-server:
        fn::invoke:
          Function: gcp:backupdisasterrecovery:getManagementServer
          Arguments:
            location: us-central1
    

    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>
    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]
    func LookupManagementServer(ctx *Context, args *LookupManagementServerArgs, opts ...InvokeOption) (*LookupManagementServerResult, error)
    func LookupManagementServerOutput(ctx *Context, args *LookupManagementServerOutputArgs, opts ...InvokeOption) LookupManagementServerResultOutput

    > 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)
    }
    public static CompletableFuture<GetManagementServerResult> getManagementServer(GetManagementServerArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:backupdisasterrecovery/getManagementServer:getManagementServer
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    Location string
    location String
    location string
    location 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 string
    The management console api endpoint.
    WebUi string
    The management console webUi.
    Api string
    The management console api endpoint.
    WebUi string
    The management console webUi.
    api String
    The management console api endpoint.
    webUi String
    The management console webUi.
    api string
    The management console api endpoint.
    webUi string
    The management console webUi.
    api str
    The management console api endpoint.
    web_ui str
    The management console webUi.
    api String
    The management console api endpoint.
    webUi String
    The management console webUi.

    GetManagementServerNetwork

    Network string
    Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
    PeeringMode string
    Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
    Network string
    Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
    PeeringMode string
    Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
    network String
    Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
    peeringMode String
    Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
    network string
    Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
    peeringMode string
    Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
    network str
    Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
    peering_mode str
    Type of Network peeringMode Default value: "PRIVATE_SERVICE_ACCESS" Possible values: ["PRIVATE_SERVICE_ACCESS"]
    network String
    Network with format 'projects/{{project_id}}/global/networks/{{network_id}}'
    peeringMode 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.
    gcp logo
    Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi