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.0)
    .startTime(0.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:
- AccountName string
- Name of the restored account.
- EndTime 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. 
- StartTime 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.
- RestoreLogs stringId 
- AccountName string
- Name of the restored account.
- EndTime 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. 
- StartTime 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.
- RestoreLogs stringId 
- accountName String
- Name of the restored account.
- endTime 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. 
- startTime 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.
- restoreLogs StringId 
- accountName string
- Name of the restored account.
- endTime 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. 
- startTime 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.
- restoreLogs 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 
- accountName String
- Name of the restored account.
- endTime 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. 
- startTime 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.
- restoreLogs StringId 
Outputs
All input properties are implicitly available as output properties. Additionally, the RestoreLogs resource produces the following output properties:
- AccountId double
- CreatedAt double
- ExpiresAt double
- FinishedAt double
- Id string
- The provider-assigned unique ID for this managed resource.
- RestoreOperation doubleId 
- RestoredVolume doubleGb 
- StartedAt double
- Status string
- AccountId float64
- CreatedAt float64
- ExpiresAt float64
- FinishedAt float64
- Id string
- The provider-assigned unique ID for this managed resource.
- RestoreOperation float64Id 
- RestoredVolume float64Gb 
- StartedAt float64
- Status string
- accountId Double
- createdAt Double
- expiresAt Double
- finishedAt Double
- id String
- The provider-assigned unique ID for this managed resource.
- restoreOperation DoubleId 
- restoredVolume DoubleGb 
- startedAt Double
- status String
- accountId number
- createdAt number
- expiresAt number
- finishedAt number
- id string
- The provider-assigned unique ID for this managed resource.
- restoreOperation numberId 
- restoredVolume numberGb 
- startedAt 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
- accountId Number
- createdAt Number
- expiresAt Number
- finishedAt Number
- id String
- The provider-assigned unique ID for this managed resource.
- restoreOperation NumberId 
- restoredVolume NumberGb 
- startedAt 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) -> RestoreLogsfunc 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.
- AccountId double
- AccountName string
- Name of the restored account.
- CreatedAt double
- EndTime 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. 
- ExpiresAt double
- FinishedAt double
- RestoreLogs stringId 
- RestoreOperation doubleId 
- RestoredVolume doubleGb 
- StartTime double
- UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- StartedAt double
- Status string
- Username string
- Owner of the restored account. Effectively, the user's email address.
- AccountId float64
- AccountName string
- Name of the restored account.
- CreatedAt float64
- EndTime 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. 
- ExpiresAt float64
- FinishedAt float64
- RestoreLogs stringId 
- RestoreOperation float64Id 
- RestoredVolume float64Gb 
- StartTime float64
- UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- StartedAt float64
- Status string
- Username string
- Owner of the restored account. Effectively, the user's email address.
- accountId Double
- accountName String
- Name of the restored account.
- createdAt Double
- endTime 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. 
- expiresAt Double
- finishedAt Double
- restoreLogs StringId 
- restoreOperation DoubleId 
- restoredVolume DoubleGb 
- startTime Double
- UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- startedAt Double
- status String
- username String
- Owner of the restored account. Effectively, the user's email address.
- accountId number
- accountName string
- Name of the restored account.
- createdAt number
- endTime 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. 
- expiresAt number
- finishedAt number
- restoreLogs stringId 
- restoreOperation numberId 
- restoredVolume numberGb 
- startTime number
- UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- startedAt 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.
- accountId Number
- accountName String
- Name of the restored account.
- createdAt Number
- endTime 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. 
- expiresAt Number
- finishedAt Number
- restoreLogs StringId 
- restoreOperation NumberId 
- restoredVolume NumberGb 
- startTime Number
- UNIX timestamp in milliseconds specifying the earliest logs to be restored.
- startedAt 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 logzioTerraform Provider.