1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCvmChcDeniedActions
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

tencentcloud.getCvmChcDeniedActions

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

    Use this data source to query detailed information of cvm chc_denied_actions

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const chcDeniedActions = tencentcloud.getCvmChcDeniedActions({
        chcIds: ["chc-xxxxx"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    chc_denied_actions = tencentcloud.get_cvm_chc_denied_actions(chc_ids=["chc-xxxxx"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetCvmChcDeniedActions(ctx, &tencentcloud.GetCvmChcDeniedActionsArgs{
    			ChcIds: []string{
    				"chc-xxxxx",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var chcDeniedActions = Tencentcloud.GetCvmChcDeniedActions.Invoke(new()
        {
            ChcIds = new[]
            {
                "chc-xxxxx",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetCvmChcDeniedActionsArgs;
    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) {
            final var chcDeniedActions = TencentcloudFunctions.getCvmChcDeniedActions(GetCvmChcDeniedActionsArgs.builder()
                .chcIds("chc-xxxxx")
                .build());
    
        }
    }
    
    variables:
      chcDeniedActions:
        fn::invoke:
          function: tencentcloud:getCvmChcDeniedActions
          arguments:
            chcIds:
              - chc-xxxxx
    

    Using getCvmChcDeniedActions

    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 getCvmChcDeniedActions(args: GetCvmChcDeniedActionsArgs, opts?: InvokeOptions): Promise<GetCvmChcDeniedActionsResult>
    function getCvmChcDeniedActionsOutput(args: GetCvmChcDeniedActionsOutputArgs, opts?: InvokeOptions): Output<GetCvmChcDeniedActionsResult>
    def get_cvm_chc_denied_actions(chc_ids: Optional[Sequence[str]] = None,
                                   id: Optional[str] = None,
                                   result_output_file: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetCvmChcDeniedActionsResult
    def get_cvm_chc_denied_actions_output(chc_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   result_output_file: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetCvmChcDeniedActionsResult]
    func GetCvmChcDeniedActions(ctx *Context, args *GetCvmChcDeniedActionsArgs, opts ...InvokeOption) (*GetCvmChcDeniedActionsResult, error)
    func GetCvmChcDeniedActionsOutput(ctx *Context, args *GetCvmChcDeniedActionsOutputArgs, opts ...InvokeOption) GetCvmChcDeniedActionsResultOutput

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

    public static class GetCvmChcDeniedActions 
    {
        public static Task<GetCvmChcDeniedActionsResult> InvokeAsync(GetCvmChcDeniedActionsArgs args, InvokeOptions? opts = null)
        public static Output<GetCvmChcDeniedActionsResult> Invoke(GetCvmChcDeniedActionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCvmChcDeniedActionsResult> getCvmChcDeniedActions(GetCvmChcDeniedActionsArgs args, InvokeOptions options)
    public static Output<GetCvmChcDeniedActionsResult> getCvmChcDeniedActions(GetCvmChcDeniedActionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCvmChcDeniedActions:getCvmChcDeniedActions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ChcIds List<string>
    CHC host IDs.
    Id string
    ResultOutputFile string
    Used to save results.
    ChcIds []string
    CHC host IDs.
    Id string
    ResultOutputFile string
    Used to save results.
    chcIds List<String>
    CHC host IDs.
    id String
    resultOutputFile String
    Used to save results.
    chcIds string[]
    CHC host IDs.
    id string
    resultOutputFile string
    Used to save results.
    chc_ids Sequence[str]
    CHC host IDs.
    id str
    result_output_file str
    Used to save results.
    chcIds List<String>
    CHC host IDs.
    id String
    resultOutputFile String
    Used to save results.

    getCvmChcDeniedActions Result

    The following output properties are available:

    ChcHostDeniedActionSets List<GetCvmChcDeniedActionsChcHostDeniedActionSet>
    Actions not allowed for the CHC instance.
    ChcIds List<string>
    Id string
    ResultOutputFile string
    ChcHostDeniedActionSets []GetCvmChcDeniedActionsChcHostDeniedActionSet
    Actions not allowed for the CHC instance.
    ChcIds []string
    Id string
    ResultOutputFile string
    chcHostDeniedActionSets List<GetCvmChcDeniedActionsChcHostDeniedActionSet>
    Actions not allowed for the CHC instance.
    chcIds List<String>
    id String
    resultOutputFile String
    chcHostDeniedActionSets GetCvmChcDeniedActionsChcHostDeniedActionSet[]
    Actions not allowed for the CHC instance.
    chcIds string[]
    id string
    resultOutputFile string
    chcHostDeniedActionSets List<Property Map>
    Actions not allowed for the CHC instance.
    chcIds List<String>
    id String
    resultOutputFile String

    Supporting Types

    GetCvmChcDeniedActionsChcHostDeniedActionSet

    ChcId string
    CHC instance ID.
    DenyActions List<string>
    Actions not allowed for the current CHC instance.
    State string
    CHC instance status.
    ChcId string
    CHC instance ID.
    DenyActions []string
    Actions not allowed for the current CHC instance.
    State string
    CHC instance status.
    chcId String
    CHC instance ID.
    denyActions List<String>
    Actions not allowed for the current CHC instance.
    state String
    CHC instance status.
    chcId string
    CHC instance ID.
    denyActions string[]
    Actions not allowed for the current CHC instance.
    state string
    CHC instance status.
    chc_id str
    CHC instance ID.
    deny_actions Sequence[str]
    Actions not allowed for the current CHC instance.
    state str
    CHC instance status.
    chcId String
    CHC instance ID.
    denyActions List<String>
    Actions not allowed for the current CHC instance.
    state String
    CHC instance status.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack