gcp.gkebackup.RestoreChannel
Explore with Pulumi AI
A RestoreChannel imposes constraints on where backups can be restored. The RestoreChannel should be in the same project and region as the backups. The backups can only be restored in the destination_project.
To get more information about RestoreChannel, see:
- API documentation
- How-to Guides
Example Usage
Gkebackup Restorechannel Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = new gcp.gkebackup.RestoreChannel("basic", {
name: "basic-channel",
location: "us-central1",
description: "",
destinationProject: "projects/24240755850",
labels: {
key: "some-value",
},
});
import pulumi
import pulumi_gcp as gcp
basic = gcp.gkebackup.RestoreChannel("basic",
name="basic-channel",
location="us-central1",
description="",
destination_project="projects/24240755850",
labels={
"key": "some-value",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/gkebackup"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gkebackup.NewRestoreChannel(ctx, "basic", &gkebackup.RestoreChannelArgs{
Name: pulumi.String("basic-channel"),
Location: pulumi.String("us-central1"),
Description: pulumi.String(""),
DestinationProject: pulumi.String("projects/24240755850"),
Labels: pulumi.StringMap{
"key": pulumi.String("some-value"),
},
})
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 basic = new Gcp.GkeBackup.RestoreChannel("basic", new()
{
Name = "basic-channel",
Location = "us-central1",
Description = "",
DestinationProject = "projects/24240755850",
Labels =
{
{ "key", "some-value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.gkebackup.RestoreChannel;
import com.pulumi.gcp.gkebackup.RestoreChannelArgs;
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) {
var basic = new RestoreChannel("basic", RestoreChannelArgs.builder()
.name("basic-channel")
.location("us-central1")
.description("")
.destinationProject("projects/24240755850")
.labels(Map.of("key", "some-value"))
.build());
}
}
resources:
basic:
type: gcp:gkebackup:RestoreChannel
properties:
name: basic-channel
location: us-central1
description: ""
destinationProject: projects/24240755850
labels:
key: some-value
Create RestoreChannel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RestoreChannel(name: string, args: RestoreChannelArgs, opts?: CustomResourceOptions);
@overload
def RestoreChannel(resource_name: str,
args: RestoreChannelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RestoreChannel(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_project: Optional[str] = None,
location: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewRestoreChannel(ctx *Context, name string, args RestoreChannelArgs, opts ...ResourceOption) (*RestoreChannel, error)
public RestoreChannel(string name, RestoreChannelArgs args, CustomResourceOptions? opts = null)
public RestoreChannel(String name, RestoreChannelArgs args)
public RestoreChannel(String name, RestoreChannelArgs args, CustomResourceOptions options)
type: gcp:gkebackup:RestoreChannel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RestoreChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RestoreChannelArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RestoreChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RestoreChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RestoreChannelArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var restoreChannelResource = new Gcp.GkeBackup.RestoreChannel("restoreChannelResource", new()
{
DestinationProject = "string",
Location = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Project = "string",
});
example, err := gkebackup.NewRestoreChannel(ctx, "restoreChannelResource", &gkebackup.RestoreChannelArgs{
DestinationProject: pulumi.String("string"),
Location: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var restoreChannelResource = new RestoreChannel("restoreChannelResource", RestoreChannelArgs.builder()
.destinationProject("string")
.location("string")
.description("string")
.labels(Map.of("string", "string"))
.name("string")
.project("string")
.build());
restore_channel_resource = gcp.gkebackup.RestoreChannel("restoreChannelResource",
destination_project="string",
location="string",
description="string",
labels={
"string": "string",
},
name="string",
project="string")
const restoreChannelResource = new gcp.gkebackup.RestoreChannel("restoreChannelResource", {
destinationProject: "string",
location: "string",
description: "string",
labels: {
string: "string",
},
name: "string",
project: "string",
});
type: gcp:gkebackup:RestoreChannel
properties:
description: string
destinationProject: string
labels:
string: string
location: string
name: string
project: string
RestoreChannel Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RestoreChannel resource accepts the following input properties:
- Destination
Project string - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - Location string
- The region of the Restore Channel.
- Description string
- User specified descriptive string for this RestoreChannel.
- Labels Dictionary<string, string>
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The full name of the RestoreChannel Resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Destination
Project string - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - Location string
- The region of the Restore Channel.
- Description string
- User specified descriptive string for this RestoreChannel.
- Labels map[string]string
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The full name of the RestoreChannel Resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- destination
Project String - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - location String
- The region of the Restore Channel.
- description String
- User specified descriptive string for this RestoreChannel.
- labels Map<String,String>
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The full name of the RestoreChannel Resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- destination
Project string - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - location string
- The region of the Restore Channel.
- description string
- User specified descriptive string for this RestoreChannel.
- labels {[key: string]: string}
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name string
- The full name of the RestoreChannel Resource.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- destination_
project str - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - location str
- The region of the Restore Channel.
- description str
- User specified descriptive string for this RestoreChannel.
- labels Mapping[str, str]
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name str
- The full name of the RestoreChannel Resource.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- destination
Project String - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - location String
- The region of the Restore Channel.
- description String
- User specified descriptive string for this RestoreChannel.
- labels Map<String>
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The full name of the RestoreChannel Resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the RestoreChannel resource produces the following output properties:
- Destination
Project stringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Uid string
- Server generated, unique identifier of UUID format.
- Destination
Project stringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Uid string
- Server generated, unique identifier of UUID format.
- destination
Project StringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- uid String
- Server generated, unique identifier of UUID format.
- destination
Project stringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag string
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- uid string
- Server generated, unique identifier of UUID format.
- destination_
project_ strid - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag str
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- uid str
- Server generated, unique identifier of UUID format.
- destination
Project StringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- uid String
- Server generated, unique identifier of UUID format.
Look up Existing RestoreChannel Resource
Get an existing RestoreChannel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RestoreChannelState, opts?: CustomResourceOptions): RestoreChannel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
destination_project: Optional[str] = None,
destination_project_id: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
etag: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
uid: Optional[str] = None) -> RestoreChannel
func GetRestoreChannel(ctx *Context, name string, id IDInput, state *RestoreChannelState, opts ...ResourceOption) (*RestoreChannel, error)
public static RestoreChannel Get(string name, Input<string> id, RestoreChannelState? state, CustomResourceOptions? opts = null)
public static RestoreChannel get(String name, Output<String> id, RestoreChannelState state, CustomResourceOptions options)
resources: _: type: gcp:gkebackup:RestoreChannel get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- User specified descriptive string for this RestoreChannel.
- Destination
Project string - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - Destination
Project stringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- Labels Dictionary<string, string>
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- The region of the Restore Channel.
- Name string
- The full name of the RestoreChannel Resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Uid string
- Server generated, unique identifier of UUID format.
- Description string
- User specified descriptive string for this RestoreChannel.
- Destination
Project string - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - Destination
Project stringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- Labels map[string]string
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- The region of the Restore Channel.
- Name string
- The full name of the RestoreChannel Resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Uid string
- Server generated, unique identifier of UUID format.
- description String
- User specified descriptive string for this RestoreChannel.
- destination
Project String - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - destination
Project StringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- labels Map<String,String>
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- The region of the Restore Channel.
- name String
- The full name of the RestoreChannel Resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- uid String
- Server generated, unique identifier of UUID format.
- description string
- User specified descriptive string for this RestoreChannel.
- destination
Project string - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - destination
Project stringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag string
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- labels {[key: string]: string}
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location string
- The region of the Restore Channel.
- name string
- The full name of the RestoreChannel Resource.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- uid string
- Server generated, unique identifier of UUID format.
- description str
- User specified descriptive string for this RestoreChannel.
- destination_
project str - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - destination_
project_ strid - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag str
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- labels Mapping[str, str]
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location str
- The region of the Restore Channel.
- name str
- The full name of the RestoreChannel Resource.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- uid str
- Server generated, unique identifier of UUID format.
- description String
- User specified descriptive string for this RestoreChannel.
- destination
Project String - The project where Backups will be restored.
The format is
projects/{project}
. {project} can only be a project number. - destination
Project StringId - The project_id where Backups will be restored. Example Project ID: "my-project-id".
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore channel from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform RestoreChannel updates in order to avoid race conditions: An etag is returned in the response to restoreChannels.get, and systems are expected to put that etag in the request to restoreChannels.patch or restoreChannels.delete to ensure that their change will be applied to the same version of the resource.
- labels Map<String>
Description: A set of custom labels supplied by the user. A list of key->value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- The region of the Restore Channel.
- name String
- The full name of the RestoreChannel Resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- uid String
- Server generated, unique identifier of UUID format.
Import
RestoreChannel can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/restoreChannels/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
When using the pulumi import
command, RestoreChannel can be imported using one of the formats above. For example:
$ pulumi import gcp:gkebackup/restoreChannel:RestoreChannel default projects/{{project}}/locations/{{location}}/restoreChannels/{{name}}
$ pulumi import gcp:gkebackup/restoreChannel:RestoreChannel default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:gkebackup/restoreChannel:RestoreChannel default {{location}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
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.