1. Packages
  2. Google Cloud Native
  3. API Docs
  4. baremetalsolution
  5. baremetalsolution/v2
  6. Snapshot

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.baremetalsolution/v2.Snapshot

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.

    Create Snapshot Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Snapshot(name: string, args: SnapshotArgs, opts?: CustomResourceOptions);
    @overload
    def Snapshot(resource_name: str,
                 args: SnapshotArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Snapshot(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 volume_id: Optional[str] = None,
                 description: Optional[str] = None,
                 location: Optional[str] = None,
                 name: Optional[str] = None,
                 project: Optional[str] = None)
    func NewSnapshot(ctx *Context, name string, args SnapshotArgs, opts ...ResourceOption) (*Snapshot, error)
    public Snapshot(string name, SnapshotArgs args, CustomResourceOptions? opts = null)
    public Snapshot(String name, SnapshotArgs args)
    public Snapshot(String name, SnapshotArgs args, CustomResourceOptions options)
    
    type: google-native:baremetalsolution/v2:Snapshot
    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 SnapshotArgs
    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 SnapshotArgs
    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 SnapshotArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SnapshotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SnapshotArgs
    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 snapshotResource = new GoogleNative.BareMetalSolution.V2.Snapshot("snapshotResource", new()
    {
        VolumeId = "string",
        Description = "string",
        Location = "string",
        Name = "string",
        Project = "string",
    });
    
    example, err := baremetalsolution.NewSnapshot(ctx, "snapshotResource", &baremetalsolution.SnapshotArgs{
    	VolumeId:    pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Location:    pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Project:     pulumi.String("string"),
    })
    
    var snapshotResource = new Snapshot("snapshotResource", SnapshotArgs.builder()
        .volumeId("string")
        .description("string")
        .location("string")
        .name("string")
        .project("string")
        .build());
    
    snapshot_resource = google_native.baremetalsolution.v2.Snapshot("snapshotResource",
        volume_id="string",
        description="string",
        location="string",
        name="string",
        project="string")
    
    const snapshotResource = new google_native.baremetalsolution.v2.Snapshot("snapshotResource", {
        volumeId: "string",
        description: "string",
        location: "string",
        name: "string",
        project: "string",
    });
    
    type: google-native:baremetalsolution/v2:Snapshot
    properties:
        description: string
        location: string
        name: string
        project: string
        volumeId: string
    

    Snapshot 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 Snapshot resource accepts the following input properties:

    VolumeId string
    Description string
    The description of the snapshot.
    Location string
    Name string
    The name of the snapshot.
    Project string
    VolumeId string
    Description string
    The description of the snapshot.
    Location string
    Name string
    The name of the snapshot.
    Project string
    volumeId String
    description String
    The description of the snapshot.
    location String
    name String
    The name of the snapshot.
    project String
    volumeId string
    description string
    The description of the snapshot.
    location string
    name string
    The name of the snapshot.
    project string
    volume_id str
    description str
    The description of the snapshot.
    location str
    name str
    The name of the snapshot.
    project str
    volumeId String
    description String
    The description of the snapshot.
    location String
    name String
    The name of the snapshot.
    project String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Snapshot resource produces the following output properties:

    CreateTime string
    The creation time of the snapshot.
    Id string
    The provider-assigned unique ID for this managed resource.
    StorageVolume string
    The name of the volume which this snapshot belongs to.
    Type string
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    CreateTime string
    The creation time of the snapshot.
    Id string
    The provider-assigned unique ID for this managed resource.
    StorageVolume string
    The name of the volume which this snapshot belongs to.
    Type string
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    createTime String
    The creation time of the snapshot.
    id String
    The provider-assigned unique ID for this managed resource.
    storageVolume String
    The name of the volume which this snapshot belongs to.
    type String
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    createTime string
    The creation time of the snapshot.
    id string
    The provider-assigned unique ID for this managed resource.
    storageVolume string
    The name of the volume which this snapshot belongs to.
    type string
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    create_time str
    The creation time of the snapshot.
    id str
    The provider-assigned unique ID for this managed resource.
    storage_volume str
    The name of the volume which this snapshot belongs to.
    type str
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    createTime String
    The creation time of the snapshot.
    id String
    The provider-assigned unique ID for this managed resource.
    storageVolume String
    The name of the volume which this snapshot belongs to.
    type String
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi