backupdisasterrecovery

package
v6.67.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagementServer

type ManagementServer struct {
	pulumi.CustomResourceState

	// The location for the management server (management console)
	Location pulumi.StringOutput `pulumi:"location"`
	// The management console URI
	// Structure is documented below.
	ManagementUris ManagementServerManagementUriArrayOutput `pulumi:"managementUris"`
	// The name of management server (management console)
	Name pulumi.StringOutput `pulumi:"name"`
	// Network details to create management server (management console).
	// Structure is documented below.
	Networks ManagementServerNetworkArrayOutput `pulumi:"networks"`
	// The oauth2ClientId of management console.
	Oauth2ClientId pulumi.StringOutput `pulumi:"oauth2ClientId"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// The type of management server (management console).
	// Default value is `BACKUP_RESTORE`.
	// Possible values are: `BACKUP_RESTORE`.
	Type pulumi.StringPtrOutput `pulumi:"type"`
}

## Example Usage ### Backup Dr Management Server

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/backupdisasterrecovery"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultNetwork, err := compute.NewNetwork(ctx, "defaultNetwork", nil, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		privateIpAddress, err := compute.NewGlobalAddress(ctx, "privateIpAddress", &compute.GlobalAddressArgs{
			AddressType:  pulumi.String("INTERNAL"),
			Purpose:      pulumi.String("VPC_PEERING"),
			PrefixLength: pulumi.Int(20),
			Network:      defaultNetwork.ID(),
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		defaultConnection, err := servicenetworking.NewConnection(ctx, "defaultConnection", &servicenetworking.ConnectionArgs{
			Network: defaultNetwork.ID(),
			Service: pulumi.String("servicenetworking.googleapis.com"),
			ReservedPeeringRanges: pulumi.StringArray{
				privateIpAddress.Name,
			},
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		_, err = backupdisasterrecovery.NewManagementServer(ctx, "ms-console", &backupdisasterrecovery.ManagementServerArgs{
			Location: pulumi.String("us-central1"),
			Type:     pulumi.String("BACKUP_RESTORE"),
			Networks: backupdisasterrecovery.ManagementServerNetworkArray{
				&backupdisasterrecovery.ManagementServerNetworkArgs{
					Network:     defaultNetwork.ID(),
					PeeringMode: pulumi.String("PRIVATE_SERVICE_ACCESS"),
				},
			},
		}, pulumi.Provider(google_beta), pulumi.DependsOn([]pulumi.Resource{
			defaultConnection,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ManagementServer can be imported using any of these accepted formats

```sh

$ pulumi import gcp:backupdisasterrecovery/managementServer:ManagementServer default projects/{{project}}/locations/{{location}}/managementServers/{{name}}

```

```sh

$ pulumi import gcp:backupdisasterrecovery/managementServer:ManagementServer default {{project}}/{{location}}/{{name}}

```

```sh

$ pulumi import gcp:backupdisasterrecovery/managementServer:ManagementServer default {{location}}/{{name}}

```

func GetManagementServer

func GetManagementServer(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ManagementServerState, opts ...pulumi.ResourceOption) (*ManagementServer, error)

GetManagementServer gets an existing ManagementServer resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewManagementServer

func NewManagementServer(ctx *pulumi.Context,
	name string, args *ManagementServerArgs, opts ...pulumi.ResourceOption) (*ManagementServer, error)

NewManagementServer registers a new resource with the given unique name, arguments, and options.

func (*ManagementServer) ElementType

func (*ManagementServer) ElementType() reflect.Type

func (*ManagementServer) ToManagementServerOutput

func (i *ManagementServer) ToManagementServerOutput() ManagementServerOutput

func (*ManagementServer) ToManagementServerOutputWithContext

func (i *ManagementServer) ToManagementServerOutputWithContext(ctx context.Context) ManagementServerOutput

func (*ManagementServer) ToOutput added in v6.65.1

type ManagementServerArgs

type ManagementServerArgs struct {
	// The location for the management server (management console)
	Location pulumi.StringInput
	// The name of management server (management console)
	Name pulumi.StringPtrInput
	// Network details to create management server (management console).
	// Structure is documented below.
	Networks ManagementServerNetworkArrayInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The type of management server (management console).
	// Default value is `BACKUP_RESTORE`.
	// Possible values are: `BACKUP_RESTORE`.
	Type pulumi.StringPtrInput
}

The set of arguments for constructing a ManagementServer resource.

func (ManagementServerArgs) ElementType

func (ManagementServerArgs) ElementType() reflect.Type

type ManagementServerArray

type ManagementServerArray []ManagementServerInput

func (ManagementServerArray) ElementType

func (ManagementServerArray) ElementType() reflect.Type

func (ManagementServerArray) ToManagementServerArrayOutput

func (i ManagementServerArray) ToManagementServerArrayOutput() ManagementServerArrayOutput

func (ManagementServerArray) ToManagementServerArrayOutputWithContext

func (i ManagementServerArray) ToManagementServerArrayOutputWithContext(ctx context.Context) ManagementServerArrayOutput

func (ManagementServerArray) ToOutput added in v6.65.1

type ManagementServerArrayInput

type ManagementServerArrayInput interface {
	pulumi.Input

	ToManagementServerArrayOutput() ManagementServerArrayOutput
	ToManagementServerArrayOutputWithContext(context.Context) ManagementServerArrayOutput
}

ManagementServerArrayInput is an input type that accepts ManagementServerArray and ManagementServerArrayOutput values. You can construct a concrete instance of `ManagementServerArrayInput` via:

ManagementServerArray{ ManagementServerArgs{...} }

type ManagementServerArrayOutput

type ManagementServerArrayOutput struct{ *pulumi.OutputState }

func (ManagementServerArrayOutput) ElementType

func (ManagementServerArrayOutput) Index

func (ManagementServerArrayOutput) ToManagementServerArrayOutput

func (o ManagementServerArrayOutput) ToManagementServerArrayOutput() ManagementServerArrayOutput

func (ManagementServerArrayOutput) ToManagementServerArrayOutputWithContext

func (o ManagementServerArrayOutput) ToManagementServerArrayOutputWithContext(ctx context.Context) ManagementServerArrayOutput

func (ManagementServerArrayOutput) ToOutput added in v6.65.1

type ManagementServerInput

type ManagementServerInput interface {
	pulumi.Input

	ToManagementServerOutput() ManagementServerOutput
	ToManagementServerOutputWithContext(ctx context.Context) ManagementServerOutput
}

type ManagementServerManagementUri

type ManagementServerManagementUri struct {
	// (Output)
	// The management console api endpoint.
	Api *string `pulumi:"api"`
	// (Output)
	// The management console webUi.
	WebUi *string `pulumi:"webUi"`
}

type ManagementServerManagementUriArgs

type ManagementServerManagementUriArgs struct {
	// (Output)
	// The management console api endpoint.
	Api pulumi.StringPtrInput `pulumi:"api"`
	// (Output)
	// The management console webUi.
	WebUi pulumi.StringPtrInput `pulumi:"webUi"`
}

func (ManagementServerManagementUriArgs) ElementType

func (ManagementServerManagementUriArgs) ToManagementServerManagementUriOutput

func (i ManagementServerManagementUriArgs) ToManagementServerManagementUriOutput() ManagementServerManagementUriOutput

func (ManagementServerManagementUriArgs) ToManagementServerManagementUriOutputWithContext

func (i ManagementServerManagementUriArgs) ToManagementServerManagementUriOutputWithContext(ctx context.Context) ManagementServerManagementUriOutput

func (ManagementServerManagementUriArgs) ToOutput added in v6.65.1

type ManagementServerManagementUriArray

type ManagementServerManagementUriArray []ManagementServerManagementUriInput

func (ManagementServerManagementUriArray) ElementType

func (ManagementServerManagementUriArray) ToManagementServerManagementUriArrayOutput

func (i ManagementServerManagementUriArray) ToManagementServerManagementUriArrayOutput() ManagementServerManagementUriArrayOutput

func (ManagementServerManagementUriArray) ToManagementServerManagementUriArrayOutputWithContext

func (i ManagementServerManagementUriArray) ToManagementServerManagementUriArrayOutputWithContext(ctx context.Context) ManagementServerManagementUriArrayOutput

func (ManagementServerManagementUriArray) ToOutput added in v6.65.1

type ManagementServerManagementUriArrayInput

type ManagementServerManagementUriArrayInput interface {
	pulumi.Input

	ToManagementServerManagementUriArrayOutput() ManagementServerManagementUriArrayOutput
	ToManagementServerManagementUriArrayOutputWithContext(context.Context) ManagementServerManagementUriArrayOutput
}

ManagementServerManagementUriArrayInput is an input type that accepts ManagementServerManagementUriArray and ManagementServerManagementUriArrayOutput values. You can construct a concrete instance of `ManagementServerManagementUriArrayInput` via:

ManagementServerManagementUriArray{ ManagementServerManagementUriArgs{...} }

type ManagementServerManagementUriArrayOutput

type ManagementServerManagementUriArrayOutput struct{ *pulumi.OutputState }

func (ManagementServerManagementUriArrayOutput) ElementType

func (ManagementServerManagementUriArrayOutput) Index

func (ManagementServerManagementUriArrayOutput) ToManagementServerManagementUriArrayOutput

func (o ManagementServerManagementUriArrayOutput) ToManagementServerManagementUriArrayOutput() ManagementServerManagementUriArrayOutput

func (ManagementServerManagementUriArrayOutput) ToManagementServerManagementUriArrayOutputWithContext

func (o ManagementServerManagementUriArrayOutput) ToManagementServerManagementUriArrayOutputWithContext(ctx context.Context) ManagementServerManagementUriArrayOutput

func (ManagementServerManagementUriArrayOutput) ToOutput added in v6.65.1

type ManagementServerManagementUriInput

type ManagementServerManagementUriInput interface {
	pulumi.Input

	ToManagementServerManagementUriOutput() ManagementServerManagementUriOutput
	ToManagementServerManagementUriOutputWithContext(context.Context) ManagementServerManagementUriOutput
}

ManagementServerManagementUriInput is an input type that accepts ManagementServerManagementUriArgs and ManagementServerManagementUriOutput values. You can construct a concrete instance of `ManagementServerManagementUriInput` via:

ManagementServerManagementUriArgs{...}

type ManagementServerManagementUriOutput

type ManagementServerManagementUriOutput struct{ *pulumi.OutputState }

func (ManagementServerManagementUriOutput) Api

(Output) The management console api endpoint.

func (ManagementServerManagementUriOutput) ElementType

func (ManagementServerManagementUriOutput) ToManagementServerManagementUriOutput

func (o ManagementServerManagementUriOutput) ToManagementServerManagementUriOutput() ManagementServerManagementUriOutput

func (ManagementServerManagementUriOutput) ToManagementServerManagementUriOutputWithContext

func (o ManagementServerManagementUriOutput) ToManagementServerManagementUriOutputWithContext(ctx context.Context) ManagementServerManagementUriOutput

func (ManagementServerManagementUriOutput) ToOutput added in v6.65.1

func (ManagementServerManagementUriOutput) WebUi

(Output) The management console webUi.

type ManagementServerMap

type ManagementServerMap map[string]ManagementServerInput

func (ManagementServerMap) ElementType

func (ManagementServerMap) ElementType() reflect.Type

func (ManagementServerMap) ToManagementServerMapOutput

func (i ManagementServerMap) ToManagementServerMapOutput() ManagementServerMapOutput

func (ManagementServerMap) ToManagementServerMapOutputWithContext

func (i ManagementServerMap) ToManagementServerMapOutputWithContext(ctx context.Context) ManagementServerMapOutput

func (ManagementServerMap) ToOutput added in v6.65.1

type ManagementServerMapInput

type ManagementServerMapInput interface {
	pulumi.Input

	ToManagementServerMapOutput() ManagementServerMapOutput
	ToManagementServerMapOutputWithContext(context.Context) ManagementServerMapOutput
}

ManagementServerMapInput is an input type that accepts ManagementServerMap and ManagementServerMapOutput values. You can construct a concrete instance of `ManagementServerMapInput` via:

ManagementServerMap{ "key": ManagementServerArgs{...} }

type ManagementServerMapOutput

type ManagementServerMapOutput struct{ *pulumi.OutputState }

func (ManagementServerMapOutput) ElementType

func (ManagementServerMapOutput) ElementType() reflect.Type

func (ManagementServerMapOutput) MapIndex

func (ManagementServerMapOutput) ToManagementServerMapOutput

func (o ManagementServerMapOutput) ToManagementServerMapOutput() ManagementServerMapOutput

func (ManagementServerMapOutput) ToManagementServerMapOutputWithContext

func (o ManagementServerMapOutput) ToManagementServerMapOutputWithContext(ctx context.Context) ManagementServerMapOutput

func (ManagementServerMapOutput) ToOutput added in v6.65.1

type ManagementServerNetwork

type ManagementServerNetwork struct {
	// Network with format `projects/{{project_id}}/global/networks/{{network_id}}`
	Network string `pulumi:"network"`
	// Type of Network peeringMode
	// Default value is `PRIVATE_SERVICE_ACCESS`.
	// Possible values are: `PRIVATE_SERVICE_ACCESS`.
	//
	// ***
	PeeringMode *string `pulumi:"peeringMode"`
}

type ManagementServerNetworkArgs

type ManagementServerNetworkArgs struct {
	// Network with format `projects/{{project_id}}/global/networks/{{network_id}}`
	Network pulumi.StringInput `pulumi:"network"`
	// Type of Network peeringMode
	// Default value is `PRIVATE_SERVICE_ACCESS`.
	// Possible values are: `PRIVATE_SERVICE_ACCESS`.
	//
	// ***
	PeeringMode pulumi.StringPtrInput `pulumi:"peeringMode"`
}

func (ManagementServerNetworkArgs) ElementType

func (ManagementServerNetworkArgs) ToManagementServerNetworkOutput

func (i ManagementServerNetworkArgs) ToManagementServerNetworkOutput() ManagementServerNetworkOutput

func (ManagementServerNetworkArgs) ToManagementServerNetworkOutputWithContext

func (i ManagementServerNetworkArgs) ToManagementServerNetworkOutputWithContext(ctx context.Context) ManagementServerNetworkOutput

func (ManagementServerNetworkArgs) ToOutput added in v6.65.1

type ManagementServerNetworkArray

type ManagementServerNetworkArray []ManagementServerNetworkInput

func (ManagementServerNetworkArray) ElementType

func (ManagementServerNetworkArray) ToManagementServerNetworkArrayOutput

func (i ManagementServerNetworkArray) ToManagementServerNetworkArrayOutput() ManagementServerNetworkArrayOutput

func (ManagementServerNetworkArray) ToManagementServerNetworkArrayOutputWithContext

func (i ManagementServerNetworkArray) ToManagementServerNetworkArrayOutputWithContext(ctx context.Context) ManagementServerNetworkArrayOutput

func (ManagementServerNetworkArray) ToOutput added in v6.65.1

type ManagementServerNetworkArrayInput

type ManagementServerNetworkArrayInput interface {
	pulumi.Input

	ToManagementServerNetworkArrayOutput() ManagementServerNetworkArrayOutput
	ToManagementServerNetworkArrayOutputWithContext(context.Context) ManagementServerNetworkArrayOutput
}

ManagementServerNetworkArrayInput is an input type that accepts ManagementServerNetworkArray and ManagementServerNetworkArrayOutput values. You can construct a concrete instance of `ManagementServerNetworkArrayInput` via:

ManagementServerNetworkArray{ ManagementServerNetworkArgs{...} }

type ManagementServerNetworkArrayOutput

type ManagementServerNetworkArrayOutput struct{ *pulumi.OutputState }

func (ManagementServerNetworkArrayOutput) ElementType

func (ManagementServerNetworkArrayOutput) Index

func (ManagementServerNetworkArrayOutput) ToManagementServerNetworkArrayOutput

func (o ManagementServerNetworkArrayOutput) ToManagementServerNetworkArrayOutput() ManagementServerNetworkArrayOutput

func (ManagementServerNetworkArrayOutput) ToManagementServerNetworkArrayOutputWithContext

func (o ManagementServerNetworkArrayOutput) ToManagementServerNetworkArrayOutputWithContext(ctx context.Context) ManagementServerNetworkArrayOutput

func (ManagementServerNetworkArrayOutput) ToOutput added in v6.65.1

type ManagementServerNetworkInput

type ManagementServerNetworkInput interface {
	pulumi.Input

	ToManagementServerNetworkOutput() ManagementServerNetworkOutput
	ToManagementServerNetworkOutputWithContext(context.Context) ManagementServerNetworkOutput
}

ManagementServerNetworkInput is an input type that accepts ManagementServerNetworkArgs and ManagementServerNetworkOutput values. You can construct a concrete instance of `ManagementServerNetworkInput` via:

ManagementServerNetworkArgs{...}

type ManagementServerNetworkOutput

type ManagementServerNetworkOutput struct{ *pulumi.OutputState }

func (ManagementServerNetworkOutput) ElementType

func (ManagementServerNetworkOutput) Network

Network with format `projects/{{project_id}}/global/networks/{{network_id}}`

func (ManagementServerNetworkOutput) PeeringMode

Type of Network peeringMode Default value is `PRIVATE_SERVICE_ACCESS`. Possible values are: `PRIVATE_SERVICE_ACCESS`.

***

func (ManagementServerNetworkOutput) ToManagementServerNetworkOutput

func (o ManagementServerNetworkOutput) ToManagementServerNetworkOutput() ManagementServerNetworkOutput

func (ManagementServerNetworkOutput) ToManagementServerNetworkOutputWithContext

func (o ManagementServerNetworkOutput) ToManagementServerNetworkOutputWithContext(ctx context.Context) ManagementServerNetworkOutput

func (ManagementServerNetworkOutput) ToOutput added in v6.65.1

type ManagementServerOutput

type ManagementServerOutput struct{ *pulumi.OutputState }

func (ManagementServerOutput) ElementType

func (ManagementServerOutput) ElementType() reflect.Type

func (ManagementServerOutput) Location

The location for the management server (management console)

func (ManagementServerOutput) ManagementUris

The management console URI Structure is documented below.

func (ManagementServerOutput) Name

The name of management server (management console)

func (ManagementServerOutput) Networks

Network details to create management server (management console). Structure is documented below.

func (ManagementServerOutput) Oauth2ClientId

func (o ManagementServerOutput) Oauth2ClientId() pulumi.StringOutput

The oauth2ClientId of management console.

func (ManagementServerOutput) Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

func (ManagementServerOutput) ToManagementServerOutput

func (o ManagementServerOutput) ToManagementServerOutput() ManagementServerOutput

func (ManagementServerOutput) ToManagementServerOutputWithContext

func (o ManagementServerOutput) ToManagementServerOutputWithContext(ctx context.Context) ManagementServerOutput

func (ManagementServerOutput) ToOutput added in v6.65.1

func (ManagementServerOutput) Type

The type of management server (management console). Default value is `BACKUP_RESTORE`. Possible values are: `BACKUP_RESTORE`.

type ManagementServerState

type ManagementServerState struct {
	// The location for the management server (management console)
	Location pulumi.StringPtrInput
	// The management console URI
	// Structure is documented below.
	ManagementUris ManagementServerManagementUriArrayInput
	// The name of management server (management console)
	Name pulumi.StringPtrInput
	// Network details to create management server (management console).
	// Structure is documented below.
	Networks ManagementServerNetworkArrayInput
	// The oauth2ClientId of management console.
	Oauth2ClientId pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The type of management server (management console).
	// Default value is `BACKUP_RESTORE`.
	// Possible values are: `BACKUP_RESTORE`.
	Type pulumi.StringPtrInput
}

func (ManagementServerState) ElementType

func (ManagementServerState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL