1. Packages
  2. Google Cloud Native
  3. API Docs
  4. file
  5. file/v1
  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.file/v1.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

    Creates a snapshot. Auto-naming is currently not supported for this resource.

    Create Snapshot Resource

    new Snapshot(name: string, args: SnapshotArgs, opts?: CustomResourceOptions);
    @overload
    def Snapshot(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 description: Optional[str] = None,
                 instance_id: Optional[str] = None,
                 labels: Optional[Mapping[str, str]] = None,
                 location: Optional[str] = None,
                 project: Optional[str] = None,
                 snapshot_id: Optional[str] = None)
    @overload
    def Snapshot(resource_name: str,
                 args: SnapshotArgs,
                 opts: Optional[ResourceOptions] = 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:file/v1:Snapshot
    properties: # The arguments to resource properties.
    options: # 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.
    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.

    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

    The Snapshot resource accepts the following input properties:

    InstanceId string
    SnapshotId string
    Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    Description string
    A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
    Labels Dictionary<string, string>
    Resource labels to represent user provided metadata.
    Location string
    Project string
    InstanceId string
    SnapshotId string
    Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    Description string
    A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
    Labels map[string]string
    Resource labels to represent user provided metadata.
    Location string
    Project string
    instanceId String
    snapshotId String
    Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    description String
    A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
    labels Map<String,String>
    Resource labels to represent user provided metadata.
    location String
    project String
    instanceId string
    snapshotId string
    Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    description string
    A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
    labels {[key: string]: string}
    Resource labels to represent user provided metadata.
    location string
    project string
    instance_id str
    snapshot_id str
    Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    description str
    A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
    labels Mapping[str, str]
    Resource labels to represent user provided metadata.
    location str
    project str
    instanceId String
    snapshotId String
    Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    description String
    A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
    labels Map<String>
    Resource labels to represent user provided metadata.
    location String
    project String

    Outputs

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

    CreateTime string
    The time when the snapshot was created.
    FilesystemUsedBytes string
    The amount of bytes needed to allocate a full copy of the snapshot content
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}.
    State string
    The snapshot state.
    CreateTime string
    The time when the snapshot was created.
    FilesystemUsedBytes string
    The amount of bytes needed to allocate a full copy of the snapshot content
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}.
    State string
    The snapshot state.
    createTime String
    The time when the snapshot was created.
    filesystemUsedBytes String
    The amount of bytes needed to allocate a full copy of the snapshot content
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}.
    state String
    The snapshot state.
    createTime string
    The time when the snapshot was created.
    filesystemUsedBytes string
    The amount of bytes needed to allocate a full copy of the snapshot content
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}.
    state string
    The snapshot state.
    create_time str
    The time when the snapshot was created.
    filesystem_used_bytes str
    The amount of bytes needed to allocate a full copy of the snapshot content
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}.
    state str
    The snapshot state.
    createTime String
    The time when the snapshot was created.
    filesystemUsedBytes String
    The amount of bytes needed to allocate a full copy of the snapshot content
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}.
    state String
    The snapshot state.

    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