oci.FileStorage.Snapshot
Explore with Pulumi AI
This resource provides the Snapshot resource in Oracle Cloud Infrastructure File Storage service.
Creates a new snapshot of the specified file system. You
can access the snapshot at .snapshot/<name>
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSnapshot = new oci.filestorage.Snapshot("test_snapshot", {
fileSystemId: testFileSystem.id,
name: snapshotName,
definedTags: {
"Operations.CostCenter": "42",
},
expirationTime: snapshotExpirationTime,
freeformTags: {
Department: "Finance",
},
});
import pulumi
import pulumi_oci as oci
test_snapshot = oci.file_storage.Snapshot("test_snapshot",
file_system_id=test_file_system["id"],
name=snapshot_name,
defined_tags={
"Operations.CostCenter": "42",
},
expiration_time=snapshot_expiration_time,
freeform_tags={
"Department": "Finance",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/FileStorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := FileStorage.NewSnapshot(ctx, "test_snapshot", &FileStorage.SnapshotArgs{
FileSystemId: pulumi.Any(testFileSystem.Id),
Name: pulumi.Any(snapshotName),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
ExpirationTime: pulumi.Any(snapshotExpirationTime),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSnapshot = new Oci.FileStorage.Snapshot("test_snapshot", new()
{
FileSystemId = testFileSystem.Id,
Name = snapshotName,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
ExpirationTime = snapshotExpirationTime,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FileStorage.Snapshot;
import com.pulumi.oci.FileStorage.SnapshotArgs;
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 testSnapshot = new Snapshot("testSnapshot", SnapshotArgs.builder()
.fileSystemId(testFileSystem.id())
.name(snapshotName)
.definedTags(Map.of("Operations.CostCenter", "42"))
.expirationTime(snapshotExpirationTime)
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
resources:
testSnapshot:
type: oci:FileStorage:Snapshot
name: test_snapshot
properties:
fileSystemId: ${testFileSystem.id}
name: ${snapshotName}
definedTags:
Operations.CostCenter: '42'
expirationTime: ${snapshotExpirationTime}
freeformTags:
Department: Finance
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,
file_system_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
expiration_time: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
name: 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: oci:FileStorage: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 Oci.FileStorage.Snapshot("snapshotResource", new()
{
FileSystemId = "string",
DefinedTags =
{
{ "string", "string" },
},
ExpirationTime = "string",
FreeformTags =
{
{ "string", "string" },
},
Name = "string",
});
example, err := FileStorage.NewSnapshot(ctx, "snapshotResource", &FileStorage.SnapshotArgs{
FileSystemId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ExpirationTime: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var snapshotResource = new Snapshot("snapshotResource", SnapshotArgs.builder()
.fileSystemId("string")
.definedTags(Map.of("string", "string"))
.expirationTime("string")
.freeformTags(Map.of("string", "string"))
.name("string")
.build());
snapshot_resource = oci.file_storage.Snapshot("snapshotResource",
file_system_id="string",
defined_tags={
"string": "string",
},
expiration_time="string",
freeform_tags={
"string": "string",
},
name="string")
const snapshotResource = new oci.filestorage.Snapshot("snapshotResource", {
fileSystemId: "string",
definedTags: {
string: "string",
},
expirationTime: "string",
freeformTags: {
string: "string",
},
name: "string",
});
type: oci:FileStorage:Snapshot
properties:
definedTags:
string: string
expirationTime: string
fileSystemId: string
freeformTags:
string: string
name: 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
The Snapshot resource accepts the following input properties:
- File
System stringId - The OCID of the file system to take a snapshot of.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Expiration
Time string - (Updatable) The time when this snapshot will be deleted.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Name string
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- File
System stringId - The OCID of the file system to take a snapshot of.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Expiration
Time string - (Updatable) The time when this snapshot will be deleted.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Name string
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- file
System StringId - The OCID of the file system to take a snapshot of.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- expiration
Time String - (Updatable) The time when this snapshot will be deleted.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- name String
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- file
System stringId - The OCID of the file system to take a snapshot of.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- expiration
Time string - (Updatable) The time when this snapshot will be deleted.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- name string
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- file_
system_ strid - The OCID of the file system to take a snapshot of.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- expiration_
time str - (Updatable) The time when this snapshot will be deleted.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- name str
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- file
System StringId - The OCID of the file system to take a snapshot of.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- expiration
Time String - (Updatable) The time when this snapshot will be deleted.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- name String
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the Snapshot resource produces the following output properties:
- Filesystem
Snapshot stringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Clone boolSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- Lifecycle
Details string - Additional information about the current
lifecycleState
. - Provenance
Id string - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - Snapshot
Time string - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- Snapshot
Type string - Specifies the generation type of the snapshot.
- State string
- The current state of the snapshot.
- Time
Created string - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Filesystem
Snapshot stringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Clone boolSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- Lifecycle
Details string - Additional information about the current
lifecycleState
. - Provenance
Id string - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - Snapshot
Time string - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- Snapshot
Type string - Specifies the generation type of the snapshot.
- State string
- The current state of the snapshot.
- Time
Created string - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- filesystem
Snapshot StringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Clone BooleanSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- lifecycle
Details String - Additional information about the current
lifecycleState
. - provenance
Id String - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - snapshot
Time String - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- snapshot
Type String - Specifies the generation type of the snapshot.
- state String
- The current state of the snapshot.
- time
Created String - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- filesystem
Snapshot stringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Clone booleanSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- lifecycle
Details string - Additional information about the current
lifecycleState
. - provenance
Id string - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - snapshot
Time string - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- snapshot
Type string - Specifies the generation type of the snapshot.
- state string
- The current state of the snapshot.
- time
Created string - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- filesystem_
snapshot_ strpolicy_ id - The OCID of the file system snapshot policy that created this snapshot.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
clone_ boolsource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- lifecycle_
details str - Additional information about the current
lifecycleState
. - provenance_
id str - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - snapshot_
time str - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- snapshot_
type str - Specifies the generation type of the snapshot.
- state str
- The current state of the snapshot.
- time_
created str - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- filesystem
Snapshot StringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Clone BooleanSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- lifecycle
Details String - Additional information about the current
lifecycleState
. - provenance
Id String - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - snapshot
Time String - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- snapshot
Type String - Specifies the generation type of the snapshot.
- state String
- The current state of the snapshot.
- time
Created String - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
Look up Existing Snapshot Resource
Get an existing Snapshot 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?: SnapshotState, opts?: CustomResourceOptions): Snapshot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
defined_tags: Optional[Mapping[str, str]] = None,
expiration_time: Optional[str] = None,
file_system_id: Optional[str] = None,
filesystem_snapshot_policy_id: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_clone_source: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
name: Optional[str] = None,
provenance_id: Optional[str] = None,
snapshot_time: Optional[str] = None,
snapshot_type: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None) -> Snapshot
func GetSnapshot(ctx *Context, name string, id IDInput, state *SnapshotState, opts ...ResourceOption) (*Snapshot, error)
public static Snapshot Get(string name, Input<string> id, SnapshotState? state, CustomResourceOptions? opts = null)
public static Snapshot get(String name, Output<String> id, SnapshotState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Expiration
Time string - (Updatable) The time when this snapshot will be deleted.
- File
System stringId - The OCID of the file system to take a snapshot of.
- Filesystem
Snapshot stringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Clone boolSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- Lifecycle
Details string - Additional information about the current
lifecycleState
. - Name string
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Provenance
Id string - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - Snapshot
Time string - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- Snapshot
Type string - Specifies the generation type of the snapshot.
- State string
- The current state of the snapshot.
- Time
Created string - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Expiration
Time string - (Updatable) The time when this snapshot will be deleted.
- File
System stringId - The OCID of the file system to take a snapshot of.
- Filesystem
Snapshot stringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Clone boolSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- Lifecycle
Details string - Additional information about the current
lifecycleState
. - Name string
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Provenance
Id string - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - Snapshot
Time string - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- Snapshot
Type string - Specifies the generation type of the snapshot.
- State string
- The current state of the snapshot.
- Time
Created string - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- expiration
Time String - (Updatable) The time when this snapshot will be deleted.
- file
System StringId - The OCID of the file system to take a snapshot of.
- filesystem
Snapshot StringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Clone BooleanSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- lifecycle
Details String - Additional information about the current
lifecycleState
. - name String
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- provenance
Id String - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - snapshot
Time String - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- snapshot
Type String - Specifies the generation type of the snapshot.
- state String
- The current state of the snapshot.
- time
Created String - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- expiration
Time string - (Updatable) The time when this snapshot will be deleted.
- file
System stringId - The OCID of the file system to take a snapshot of.
- filesystem
Snapshot stringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Clone booleanSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- lifecycle
Details string - Additional information about the current
lifecycleState
. - name string
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- provenance
Id string - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - snapshot
Time string - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- snapshot
Type string - Specifies the generation type of the snapshot.
- state string
- The current state of the snapshot.
- time
Created string - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- expiration_
time str - (Updatable) The time when this snapshot will be deleted.
- file_
system_ strid - The OCID of the file system to take a snapshot of.
- filesystem_
snapshot_ strpolicy_ id - The OCID of the file system snapshot policy that created this snapshot.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is_
clone_ boolsource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- lifecycle_
details str - Additional information about the current
lifecycleState
. - name str
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- provenance_
id str - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - snapshot_
time str - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- snapshot_
type str - Specifies the generation type of the snapshot.
- state str
- The current state of the snapshot.
- time_
created str - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- expiration
Time String - (Updatable) The time when this snapshot will be deleted.
- file
System StringId - The OCID of the file system to take a snapshot of.
- filesystem
Snapshot StringPolicy Id - The OCID of the file system snapshot policy that created this snapshot.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Clone BooleanSource - Specifies whether the snapshot has been cloned. See Cloning a File System.
- lifecycle
Details String - Additional information about the current
lifecycleState
. - name String
Name of the snapshot. This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example:
Sunday
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- provenance
Id String - An OCID identifying the parent from which this snapshot was cloned. If this snapshot was not cloned, then the
provenanceId
is the same as the snapshotid
value. If this snapshot was cloned, then theprovenanceId
value is the parent'sprovenanceId
. See Cloning a File System. - snapshot
Time String - The date and time the snapshot was taken, expressed in RFC 3339 timestamp format. This value might be the same or different from
timeCreated
depending on the following factors:- If the snapshot is created in the original file system directory.
- If the snapshot is cloned from a file system.
- If the snapshot is replicated from a file system.
- snapshot
Type String - Specifies the generation type of the snapshot.
- state String
- The current state of the snapshot.
- time
Created String - The date and time the snapshot was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
Import
Snapshots can be imported using the id
, e.g.
$ pulumi import oci:FileStorage/snapshot:Snapshot test_snapshot "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.