1. Packages
  2. Volcengine
  3. API Docs
  4. autoscaling
  5. getScalingLifecycleHooks
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

volcengine.autoscaling.getScalingLifecycleHooks

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

    Use this data source to query detailed information of scaling lifecycle hooks

    Using getScalingLifecycleHooks

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getScalingLifecycleHooks(args: GetScalingLifecycleHooksArgs, opts?: InvokeOptions): Promise<GetScalingLifecycleHooksResult>
    function getScalingLifecycleHooksOutput(args: GetScalingLifecycleHooksOutputArgs, opts?: InvokeOptions): Output<GetScalingLifecycleHooksResult>
    def get_scaling_lifecycle_hooks(ids: Optional[Sequence[str]] = None,
                                    lifecycle_hook_names: Optional[Sequence[str]] = None,
                                    name_regex: Optional[str] = None,
                                    output_file: Optional[str] = None,
                                    scaling_group_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetScalingLifecycleHooksResult
    def get_scaling_lifecycle_hooks_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                    lifecycle_hook_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                    name_regex: Optional[pulumi.Input[str]] = None,
                                    output_file: Optional[pulumi.Input[str]] = None,
                                    scaling_group_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetScalingLifecycleHooksResult]
    func GetScalingLifecycleHooks(ctx *Context, args *GetScalingLifecycleHooksArgs, opts ...InvokeOption) (*GetScalingLifecycleHooksResult, error)
    func GetScalingLifecycleHooksOutput(ctx *Context, args *GetScalingLifecycleHooksOutputArgs, opts ...InvokeOption) GetScalingLifecycleHooksResultOutput

    > Note: This function is named GetScalingLifecycleHooks in the Go SDK.

    public static class GetScalingLifecycleHooks 
    {
        public static Task<GetScalingLifecycleHooksResult> InvokeAsync(GetScalingLifecycleHooksArgs args, InvokeOptions? opts = null)
        public static Output<GetScalingLifecycleHooksResult> Invoke(GetScalingLifecycleHooksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScalingLifecycleHooksResult> getScalingLifecycleHooks(GetScalingLifecycleHooksArgs args, InvokeOptions options)
    public static Output<GetScalingLifecycleHooksResult> getScalingLifecycleHooks(GetScalingLifecycleHooksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:autoscaling/getScalingLifecycleHooks:getScalingLifecycleHooks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ScalingGroupId string
    An id of scaling group id.
    Ids List<string>
    A list of lifecycle hook ids.
    LifecycleHookNames List<string>
    A list of lifecycle hook names.
    NameRegex string
    A Name Regex of lifecycle hook.
    OutputFile string
    File name where to save data source results.
    ScalingGroupId string
    An id of scaling group id.
    Ids []string
    A list of lifecycle hook ids.
    LifecycleHookNames []string
    A list of lifecycle hook names.
    NameRegex string
    A Name Regex of lifecycle hook.
    OutputFile string
    File name where to save data source results.
    scalingGroupId String
    An id of scaling group id.
    ids List<String>
    A list of lifecycle hook ids.
    lifecycleHookNames List<String>
    A list of lifecycle hook names.
    nameRegex String
    A Name Regex of lifecycle hook.
    outputFile String
    File name where to save data source results.
    scalingGroupId string
    An id of scaling group id.
    ids string[]
    A list of lifecycle hook ids.
    lifecycleHookNames string[]
    A list of lifecycle hook names.
    nameRegex string
    A Name Regex of lifecycle hook.
    outputFile string
    File name where to save data source results.
    scaling_group_id str
    An id of scaling group id.
    ids Sequence[str]
    A list of lifecycle hook ids.
    lifecycle_hook_names Sequence[str]
    A list of lifecycle hook names.
    name_regex str
    A Name Regex of lifecycle hook.
    output_file str
    File name where to save data source results.
    scalingGroupId String
    An id of scaling group id.
    ids List<String>
    A list of lifecycle hook ids.
    lifecycleHookNames List<String>
    A list of lifecycle hook names.
    nameRegex String
    A Name Regex of lifecycle hook.
    outputFile String
    File name where to save data source results.

    getScalingLifecycleHooks Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleHooks List<GetScalingLifecycleHooksLifecycleHook>
    The collection of lifecycle hook query.
    ScalingGroupId string
    The id of the scaling group.
    TotalCount int
    The total count of lifecycle hook query.
    Ids List<string>
    LifecycleHookNames List<string>
    NameRegex string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleHooks []GetScalingLifecycleHooksLifecycleHook
    The collection of lifecycle hook query.
    ScalingGroupId string
    The id of the scaling group.
    TotalCount int
    The total count of lifecycle hook query.
    Ids []string
    LifecycleHookNames []string
    NameRegex string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleHooks List<GetScalingLifecycleHooksLifecycleHook>
    The collection of lifecycle hook query.
    scalingGroupId String
    The id of the scaling group.
    totalCount Integer
    The total count of lifecycle hook query.
    ids List<String>
    lifecycleHookNames List<String>
    nameRegex String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleHooks GetScalingLifecycleHooksLifecycleHook[]
    The collection of lifecycle hook query.
    scalingGroupId string
    The id of the scaling group.
    totalCount number
    The total count of lifecycle hook query.
    ids string[]
    lifecycleHookNames string[]
    nameRegex string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_hooks Sequence[GetScalingLifecycleHooksLifecycleHook]
    The collection of lifecycle hook query.
    scaling_group_id str
    The id of the scaling group.
    total_count int
    The total count of lifecycle hook query.
    ids Sequence[str]
    lifecycle_hook_names Sequence[str]
    name_regex str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleHooks List<Property Map>
    The collection of lifecycle hook query.
    scalingGroupId String
    The id of the scaling group.
    totalCount Number
    The total count of lifecycle hook query.
    ids List<String>
    lifecycleHookNames List<String>
    nameRegex String
    outputFile String

    Supporting Types

    GetScalingLifecycleHooksLifecycleHook

    Id string
    The id of the lifecycle hook.
    LifecycleCommands List<GetScalingLifecycleHooksLifecycleHookLifecycleCommand>
    Batch job command.
    LifecycleHookId string
    The id of the lifecycle hook.
    LifecycleHookName string
    The name of the lifecycle hook.
    LifecycleHookPolicy string
    The policy of the lifecycle hook.
    LifecycleHookTimeout int
    The timeout of the lifecycle hook.
    LifecycleHookType string
    The type of the lifecycle hook.
    ScalingGroupId string
    An id of scaling group id.
    Id string
    The id of the lifecycle hook.
    LifecycleCommands []GetScalingLifecycleHooksLifecycleHookLifecycleCommand
    Batch job command.
    LifecycleHookId string
    The id of the lifecycle hook.
    LifecycleHookName string
    The name of the lifecycle hook.
    LifecycleHookPolicy string
    The policy of the lifecycle hook.
    LifecycleHookTimeout int
    The timeout of the lifecycle hook.
    LifecycleHookType string
    The type of the lifecycle hook.
    ScalingGroupId string
    An id of scaling group id.
    id String
    The id of the lifecycle hook.
    lifecycleCommands List<GetScalingLifecycleHooksLifecycleHookLifecycleCommand>
    Batch job command.
    lifecycleHookId String
    The id of the lifecycle hook.
    lifecycleHookName String
    The name of the lifecycle hook.
    lifecycleHookPolicy String
    The policy of the lifecycle hook.
    lifecycleHookTimeout Integer
    The timeout of the lifecycle hook.
    lifecycleHookType String
    The type of the lifecycle hook.
    scalingGroupId String
    An id of scaling group id.
    id string
    The id of the lifecycle hook.
    lifecycleCommands GetScalingLifecycleHooksLifecycleHookLifecycleCommand[]
    Batch job command.
    lifecycleHookId string
    The id of the lifecycle hook.
    lifecycleHookName string
    The name of the lifecycle hook.
    lifecycleHookPolicy string
    The policy of the lifecycle hook.
    lifecycleHookTimeout number
    The timeout of the lifecycle hook.
    lifecycleHookType string
    The type of the lifecycle hook.
    scalingGroupId string
    An id of scaling group id.
    id str
    The id of the lifecycle hook.
    lifecycle_commands Sequence[GetScalingLifecycleHooksLifecycleHookLifecycleCommand]
    Batch job command.
    lifecycle_hook_id str
    The id of the lifecycle hook.
    lifecycle_hook_name str
    The name of the lifecycle hook.
    lifecycle_hook_policy str
    The policy of the lifecycle hook.
    lifecycle_hook_timeout int
    The timeout of the lifecycle hook.
    lifecycle_hook_type str
    The type of the lifecycle hook.
    scaling_group_id str
    An id of scaling group id.
    id String
    The id of the lifecycle hook.
    lifecycleCommands List<Property Map>
    Batch job command.
    lifecycleHookId String
    The id of the lifecycle hook.
    lifecycleHookName String
    The name of the lifecycle hook.
    lifecycleHookPolicy String
    The policy of the lifecycle hook.
    lifecycleHookTimeout Number
    The timeout of the lifecycle hook.
    lifecycleHookType String
    The type of the lifecycle hook.
    scalingGroupId String
    An id of scaling group id.

    GetScalingLifecycleHooksLifecycleHookLifecycleCommand

    CommandId string
    Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.
    Parameters string
    Parameters and parameter values in batch job commands. The number of parameters ranges from 0 to 60.
    CommandId string
    Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.
    Parameters string
    Parameters and parameter values in batch job commands. The number of parameters ranges from 0 to 60.
    commandId String
    Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.
    parameters String
    Parameters and parameter values in batch job commands. The number of parameters ranges from 0 to 60.
    commandId string
    Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.
    parameters string
    Parameters and parameter values in batch job commands. The number of parameters ranges from 0 to 60.
    command_id str
    Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.
    parameters str
    Parameters and parameter values in batch job commands. The number of parameters ranges from 0 to 60.
    commandId String
    Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.
    parameters String
    Parameters and parameter values in batch job commands. The number of parameters ranges from 0 to 60.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine