1. Packages
  2. Logzio Provider
  3. API Docs
  4. RestoreLogs
logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio

logzio.RestoreLogs

Explore with Pulumi AI

logzio logo
logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio

    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:

    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.
    RestoreLogsId string
    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.
    RestoreLogsId string
    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.
    restoreLogsId String
    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.
    restoreLogsId string
    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_id str
    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.
    restoreLogsId String

    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.
    RestoreOperationId double
    RestoredVolumeGb double
    StartedAt double
    Status string
    AccountId float64
    CreatedAt float64
    ExpiresAt float64
    FinishedAt float64
    Id string
    The provider-assigned unique ID for this managed resource.
    RestoreOperationId float64
    RestoredVolumeGb float64
    StartedAt float64
    Status string
    accountId Double
    createdAt Double
    expiresAt Double
    finishedAt Double
    id String
    The provider-assigned unique ID for this managed resource.
    restoreOperationId Double
    restoredVolumeGb Double
    startedAt Double
    status String
    accountId number
    createdAt number
    expiresAt number
    finishedAt number
    id string
    The provider-assigned unique ID for this managed resource.
    restoreOperationId number
    restoredVolumeGb number
    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_id float
    restored_volume_gb float
    started_at float
    status str
    accountId Number
    createdAt Number
    expiresAt Number
    finishedAt Number
    id String
    The provider-assigned unique ID for this managed resource.
    restoreOperationId Number
    restoredVolumeGb Number
    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) -> 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.
    The following state arguments are supported:
    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
    RestoreLogsId string
    RestoreOperationId double
    RestoredVolumeGb double
    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
    RestoreLogsId string
    RestoreOperationId float64
    RestoredVolumeGb float64
    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
    restoreLogsId String
    restoreOperationId Double
    restoredVolumeGb Double
    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
    restoreLogsId string
    restoreOperationId number
    restoredVolumeGb number
    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_id str
    restore_operation_id float
    restored_volume_gb float
    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
    restoreLogsId String
    restoreOperationId Number
    restoredVolumeGb Number
    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 logzio Terraform Provider.
    logzio logo
    logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio