logzio.RestoreLogs
Explore with Pulumi AI
Create RestoreLogs Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RestoreLogs(name: string, args: RestoreLogsArgs, opts?: CustomResourceOptions);
@overload
def RestoreLogs(resource_name: str,
args: RestoreLogsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RestoreLogs(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
end_time: Optional[float] = None,
start_time: Optional[float] = None,
username: Optional[str] = None,
restore_logs_id: Optional[str] = None)
func NewRestoreLogs(ctx *Context, name string, args RestoreLogsArgs, opts ...ResourceOption) (*RestoreLogs, error)
public RestoreLogs(string name, RestoreLogsArgs args, CustomResourceOptions? opts = null)
public RestoreLogs(String name, RestoreLogsArgs args)
public RestoreLogs(String name, RestoreLogsArgs args, CustomResourceOptions options)
type: logzio:RestoreLogs
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 RestoreLogsArgs
- 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 RestoreLogsArgs
- 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 RestoreLogsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RestoreLogsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RestoreLogsArgs
- 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 restoreLogsResource = new Logzio.RestoreLogs("restoreLogsResource", new()
{
AccountName = "string",
EndTime = 0,
StartTime = 0,
Username = "string",
RestoreLogsId = "string",
});
example, err := logzio.NewRestoreLogs(ctx, "restoreLogsResource", &logzio.RestoreLogsArgs{
AccountName: pulumi.String("string"),
EndTime: pulumi.Float64(0),
StartTime: pulumi.Float64(0),
Username: pulumi.String("string"),
RestoreLogsId: pulumi.String("string"),
})
var restoreLogsResource = new RestoreLogs("restoreLogsResource", RestoreLogsArgs.builder()
.accountName("string")
.endTime(0)
.startTime(0)
.username("string")
.restoreLogsId("string")
.build());
restore_logs_resource = logzio.RestoreLogs("restoreLogsResource",
account_name="string",
end_time=0,
start_time=0,
username="string",
restore_logs_id="string")
const restoreLogsResource = new logzio.RestoreLogs("restoreLogsResource", {
accountName: "string",
endTime: 0,
startTime: 0,
username: "string",
restoreLogsId: "string",
});
type: logzio:RestoreLogs
properties:
accountName: string
endTime: 0
restoreLogsId: string
startTime: 0
username: string
RestoreLogs 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 RestoreLogs resource accepts the following input properties:
- Account
Name string - Name of the restored account.
- End
Time double UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- Start
Time double - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- Username string
- Owner of the restored account. Effectively, the user's email address.
- Restore
Logs stringId
- Account
Name string - Name of the restored account.
- End
Time float64 UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- Start
Time float64 - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- Username string
- Owner of the restored account. Effectively, the user's email address.
- Restore
Logs stringId
- account
Name String - Name of the restored account.
- end
Time Double UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- start
Time Double - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- username String
- Owner of the restored account. Effectively, the user's email address.
- restore
Logs StringId
- account
Name string - Name of the restored account.
- end
Time number UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- start
Time number - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- username string
- Owner of the restored account. Effectively, the user's email address.
- restore
Logs stringId
- account_
name str - Name of the restored account.
- end_
time float UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- start_
time float - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- username str
- Owner of the restored account. Effectively, the user's email address.
- restore_
logs_ strid
- account
Name String - Name of the restored account.
- end
Time Number UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- start
Time Number - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- username String
- Owner of the restored account. Effectively, the user's email address.
- restore
Logs StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the RestoreLogs resource produces the following output properties:
- Account
Id double - Created
At double - Expires
At double - Finished
At double - Id string
- The provider-assigned unique ID for this managed resource.
- Restore
Operation doubleId - Restored
Volume doubleGb - Started
At double - Status string
- Account
Id float64 - Created
At float64 - Expires
At float64 - Finished
At float64 - Id string
- The provider-assigned unique ID for this managed resource.
- Restore
Operation float64Id - Restored
Volume float64Gb - Started
At float64 - Status string
- account
Id Double - created
At Double - expires
At Double - finished
At Double - id String
- The provider-assigned unique ID for this managed resource.
- restore
Operation DoubleId - restored
Volume DoubleGb - started
At Double - status String
- account
Id number - created
At number - expires
At number - finished
At number - id string
- The provider-assigned unique ID for this managed resource.
- restore
Operation numberId - restored
Volume numberGb - started
At number - status string
- account_
id float - created_
at float - expires_
at float - finished_
at float - id str
- The provider-assigned unique ID for this managed resource.
- restore_
operation_ floatid - restored_
volume_ floatgb - started_
at float - status str
- account
Id Number - created
At Number - expires
At Number - finished
At Number - id String
- The provider-assigned unique ID for this managed resource.
- restore
Operation NumberId - restored
Volume NumberGb - started
At Number - status String
Look up Existing RestoreLogs Resource
Get an existing RestoreLogs 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?: RestoreLogsState, opts?: CustomResourceOptions): RestoreLogs
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[float] = None,
account_name: Optional[str] = None,
created_at: Optional[float] = None,
end_time: Optional[float] = None,
expires_at: Optional[float] = None,
finished_at: Optional[float] = None,
restore_logs_id: Optional[str] = None,
restore_operation_id: Optional[float] = None,
restored_volume_gb: Optional[float] = None,
start_time: Optional[float] = None,
started_at: Optional[float] = None,
status: Optional[str] = None,
username: Optional[str] = None) -> RestoreLogs
func GetRestoreLogs(ctx *Context, name string, id IDInput, state *RestoreLogsState, opts ...ResourceOption) (*RestoreLogs, error)
public static RestoreLogs Get(string name, Input<string> id, RestoreLogsState? state, CustomResourceOptions? opts = null)
public static RestoreLogs get(String name, Output<String> id, RestoreLogsState state, CustomResourceOptions options)
resources: _: type: logzio:RestoreLogs 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.
- Account
Id double - Account
Name string - Name of the restored account.
- Created
At double - End
Time double UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- Expires
At double - Finished
At double - Restore
Logs stringId - Restore
Operation doubleId - Restored
Volume doubleGb - Start
Time double - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- Started
At double - Status string
- Username string
- Owner of the restored account. Effectively, the user's email address.
- Account
Id float64 - Account
Name string - Name of the restored account.
- Created
At float64 - End
Time float64 UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- Expires
At float64 - Finished
At float64 - Restore
Logs stringId - Restore
Operation float64Id - Restored
Volume float64Gb - Start
Time float64 - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- Started
At float64 - Status string
- Username string
- Owner of the restored account. Effectively, the user's email address.
- account
Id Double - account
Name String - Name of the restored account.
- created
At Double - end
Time Double UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- expires
At Double - finished
At Double - restore
Logs StringId - restore
Operation DoubleId - restored
Volume DoubleGb - start
Time Double - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- started
At Double - status String
- username String
- Owner of the restored account. Effectively, the user's email address.
- account
Id number - account
Name string - Name of the restored account.
- created
At number - end
Time number UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- expires
At number - finished
At number - restore
Logs stringId - restore
Operation numberId - restored
Volume numberGb - start
Time number - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- started
At number - status string
- username string
- Owner of the restored account. Effectively, the user's email address.
- account_
id float - account_
name str - Name of the restored account.
- created_
at float - end_
time float UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- expires_
at float - finished_
at float - restore_
logs_ strid - restore_
operation_ floatid - restored_
volume_ floatgb - start_
time float - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- started_
at float - status str
- username str
- Owner of the restored account. Effectively, the user's email address.
- account
Id Number - account
Name String - Name of the restored account.
- created
At Number - end
Time Number UNIX timestamp in milliseconds specifying the latest logs to be restored.
Note: Once a restore operation was created, changing any of its arguments will cause the resource to be destroyed re-created under a new ID.
- expires
At Number - finished
At Number - restore
Logs StringId - restore
Operation NumberId - restored
Volume NumberGb - start
Time Number - UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- started
At Number - status String
- username String
- Owner of the restored account. Effectively, the user's email address.
Package Details
- Repository
- logzio logzio/terraform-provider-logzio
- License
- Notes
- This Pulumi package is based on the
logzio
Terraform Provider.