opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getRmsPolicyDefinitionsV1
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
Up-to-date reference of API arguments for RMS Policy Definitions you can get at documentation portal
Use this data source to query policy definition list.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const triggerType = config.requireObject("triggerType");
const test = opentelekomcloud.getRmsPolicyDefinitionsV1({
triggerType: triggerType,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
trigger_type = config.require_object("triggerType")
test = opentelekomcloud.get_rms_policy_definitions_v1(trigger_type=trigger_type)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
triggerType := cfg.RequireObject("triggerType")
_, err := opentelekomcloud.GetRmsPolicyDefinitionsV1(ctx, &opentelekomcloud.GetRmsPolicyDefinitionsV1Args{
TriggerType: pulumi.StringRef(triggerType),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var triggerType = config.RequireObject<dynamic>("triggerType");
var test = Opentelekomcloud.GetRmsPolicyDefinitionsV1.Invoke(new()
{
TriggerType = triggerType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetRmsPolicyDefinitionsV1Args;
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 config = ctx.config();
final var triggerType = config.get("triggerType");
final var test = OpentelekomcloudFunctions.getRmsPolicyDefinitionsV1(GetRmsPolicyDefinitionsV1Args.builder()
.triggerType(triggerType)
.build());
}
}
configuration:
triggerType:
type: dynamic
variables:
test:
fn::invoke:
function: opentelekomcloud:getRmsPolicyDefinitionsV1
arguments:
triggerType: ${triggerType}
Using getRmsPolicyDefinitionsV1
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 getRmsPolicyDefinitionsV1(args: GetRmsPolicyDefinitionsV1Args, opts?: InvokeOptions): Promise<GetRmsPolicyDefinitionsV1Result>
function getRmsPolicyDefinitionsV1Output(args: GetRmsPolicyDefinitionsV1OutputArgs, opts?: InvokeOptions): Output<GetRmsPolicyDefinitionsV1Result>
def get_rms_policy_definitions_v1(id: Optional[str] = None,
keywords: Optional[Sequence[str]] = None,
name: Optional[str] = None,
policy_rule_type: Optional[str] = None,
policy_type: Optional[str] = None,
trigger_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRmsPolicyDefinitionsV1Result
def get_rms_policy_definitions_v1_output(id: Optional[pulumi.Input[str]] = None,
keywords: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_rule_type: Optional[pulumi.Input[str]] = None,
policy_type: Optional[pulumi.Input[str]] = None,
trigger_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRmsPolicyDefinitionsV1Result]
func GetRmsPolicyDefinitionsV1(ctx *Context, args *GetRmsPolicyDefinitionsV1Args, opts ...InvokeOption) (*GetRmsPolicyDefinitionsV1Result, error)
func GetRmsPolicyDefinitionsV1Output(ctx *Context, args *GetRmsPolicyDefinitionsV1OutputArgs, opts ...InvokeOption) GetRmsPolicyDefinitionsV1ResultOutput
> Note: This function is named GetRmsPolicyDefinitionsV1
in the Go SDK.
public static class GetRmsPolicyDefinitionsV1
{
public static Task<GetRmsPolicyDefinitionsV1Result> InvokeAsync(GetRmsPolicyDefinitionsV1Args args, InvokeOptions? opts = null)
public static Output<GetRmsPolicyDefinitionsV1Result> Invoke(GetRmsPolicyDefinitionsV1InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRmsPolicyDefinitionsV1Result> getRmsPolicyDefinitionsV1(GetRmsPolicyDefinitionsV1Args args, InvokeOptions options)
public static Output<GetRmsPolicyDefinitionsV1Result> getRmsPolicyDefinitionsV1(GetRmsPolicyDefinitionsV1Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getRmsPolicyDefinitionsV1:getRmsPolicyDefinitionsV1
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of the policy definition.
- Keywords List<string>
- Specifies the keyword list used to query definition list.
- Name string
- Specifies the name of the policy definitions used to query definition list.
- Policy
Rule stringType - Specifies the policy rule type used to query definition list.
- Policy
Type string - Specifies the policy type used to query definition list. The valid value is builtin.
- Trigger
Type string - Specifies the trigger type used to query definition list. The valid values are resource and period.
- Id string
- The ID of the policy definition.
- Keywords []string
- Specifies the keyword list used to query definition list.
- Name string
- Specifies the name of the policy definitions used to query definition list.
- Policy
Rule stringType - Specifies the policy rule type used to query definition list.
- Policy
Type string - Specifies the policy type used to query definition list. The valid value is builtin.
- Trigger
Type string - Specifies the trigger type used to query definition list. The valid values are resource and period.
- id String
- The ID of the policy definition.
- keywords List<String>
- Specifies the keyword list used to query definition list.
- name String
- Specifies the name of the policy definitions used to query definition list.
- policy
Rule StringType - Specifies the policy rule type used to query definition list.
- policy
Type String - Specifies the policy type used to query definition list. The valid value is builtin.
- trigger
Type String - Specifies the trigger type used to query definition list. The valid values are resource and period.
- id string
- The ID of the policy definition.
- keywords string[]
- Specifies the keyword list used to query definition list.
- name string
- Specifies the name of the policy definitions used to query definition list.
- policy
Rule stringType - Specifies the policy rule type used to query definition list.
- policy
Type string - Specifies the policy type used to query definition list. The valid value is builtin.
- trigger
Type string - Specifies the trigger type used to query definition list. The valid values are resource and period.
- id str
- The ID of the policy definition.
- keywords Sequence[str]
- Specifies the keyword list used to query definition list.
- name str
- Specifies the name of the policy definitions used to query definition list.
- policy_
rule_ strtype - Specifies the policy rule type used to query definition list.
- policy_
type str - Specifies the policy type used to query definition list. The valid value is builtin.
- trigger_
type str - Specifies the trigger type used to query definition list. The valid values are resource and period.
- id String
- The ID of the policy definition.
- keywords List<String>
- Specifies the keyword list used to query definition list.
- name String
- Specifies the name of the policy definitions used to query definition list.
- policy
Rule StringType - Specifies the policy rule type used to query definition list.
- policy
Type String - Specifies the policy type used to query definition list. The valid value is builtin.
- trigger
Type String - Specifies the trigger type used to query definition list. The valid values are resource and period.
getRmsPolicyDefinitionsV1 Result
The following output properties are available:
- Definitions
List<Get
Rms Policy Definitions V1Definition> - The policy definition list. The object structure is documented below.
- Id string
- The ID of the policy definition.
- Keywords List<string>
- The keyword list of the policy definition.
- Name string
- The name of the policy definition.
- Policy
Rule stringType - The policy rule type of the policy definition.
- Policy
Type string - The policy type of the policy definition.
- Trigger
Type string - The trigger type of the policy definition.
- Definitions
[]Get
Rms Policy Definitions V1Definition - The policy definition list. The object structure is documented below.
- Id string
- The ID of the policy definition.
- Keywords []string
- The keyword list of the policy definition.
- Name string
- The name of the policy definition.
- Policy
Rule stringType - The policy rule type of the policy definition.
- Policy
Type string - The policy type of the policy definition.
- Trigger
Type string - The trigger type of the policy definition.
- definitions
List<Get
Rms Policy Definitions V1Definition> - The policy definition list. The object structure is documented below.
- id String
- The ID of the policy definition.
- keywords List<String>
- The keyword list of the policy definition.
- name String
- The name of the policy definition.
- policy
Rule StringType - The policy rule type of the policy definition.
- policy
Type String - The policy type of the policy definition.
- trigger
Type String - The trigger type of the policy definition.
- definitions
Get
Rms Policy Definitions V1Definition[] - The policy definition list. The object structure is documented below.
- id string
- The ID of the policy definition.
- keywords string[]
- The keyword list of the policy definition.
- name string
- The name of the policy definition.
- policy
Rule stringType - The policy rule type of the policy definition.
- policy
Type string - The policy type of the policy definition.
- trigger
Type string - The trigger type of the policy definition.
- definitions
Sequence[Get
Rms Policy Definitions V1Definition] - The policy definition list. The object structure is documented below.
- id str
- The ID of the policy definition.
- keywords Sequence[str]
- The keyword list of the policy definition.
- name str
- The name of the policy definition.
- policy_
rule_ strtype - The policy rule type of the policy definition.
- policy_
type str - The policy type of the policy definition.
- trigger_
type str - The trigger type of the policy definition.
- definitions List<Property Map>
- The policy definition list. The object structure is documented below.
- id String
- The ID of the policy definition.
- keywords List<String>
- The keyword list of the policy definition.
- name String
- The name of the policy definition.
- policy
Rule StringType - The policy rule type of the policy definition.
- policy
Type String - The policy type of the policy definition.
- trigger
Type String - The trigger type of the policy definition.
Supporting Types
GetRmsPolicyDefinitionsV1Definition
- Description string
- The description of the policy definition.
- Id string
- The ID of the policy definition.
- Keywords List<string>
- Specifies the keyword list used to query definition list.
- Name string
- Specifies the name of the policy definitions used to query definition list.
- Parameters Dictionary<string, string>
- The parameter reference map of the policy definition.
- Policy
Rule string - The policy rule of the policy definition.
- Policy
Rule stringType - Specifies the policy rule type used to query definition list.
- Policy
Type string - Specifies the policy type used to query definition list. The valid value is builtin.
- Trigger
Type string - Specifies the trigger type used to query definition list. The valid values are resource and period.
- Description string
- The description of the policy definition.
- Id string
- The ID of the policy definition.
- Keywords []string
- Specifies the keyword list used to query definition list.
- Name string
- Specifies the name of the policy definitions used to query definition list.
- Parameters map[string]string
- The parameter reference map of the policy definition.
- Policy
Rule string - The policy rule of the policy definition.
- Policy
Rule stringType - Specifies the policy rule type used to query definition list.
- Policy
Type string - Specifies the policy type used to query definition list. The valid value is builtin.
- Trigger
Type string - Specifies the trigger type used to query definition list. The valid values are resource and period.
- description String
- The description of the policy definition.
- id String
- The ID of the policy definition.
- keywords List<String>
- Specifies the keyword list used to query definition list.
- name String
- Specifies the name of the policy definitions used to query definition list.
- parameters Map<String,String>
- The parameter reference map of the policy definition.
- policy
Rule String - The policy rule of the policy definition.
- policy
Rule StringType - Specifies the policy rule type used to query definition list.
- policy
Type String - Specifies the policy type used to query definition list. The valid value is builtin.
- trigger
Type String - Specifies the trigger type used to query definition list. The valid values are resource and period.
- description string
- The description of the policy definition.
- id string
- The ID of the policy definition.
- keywords string[]
- Specifies the keyword list used to query definition list.
- name string
- Specifies the name of the policy definitions used to query definition list.
- parameters {[key: string]: string}
- The parameter reference map of the policy definition.
- policy
Rule string - The policy rule of the policy definition.
- policy
Rule stringType - Specifies the policy rule type used to query definition list.
- policy
Type string - Specifies the policy type used to query definition list. The valid value is builtin.
- trigger
Type string - Specifies the trigger type used to query definition list. The valid values are resource and period.
- description str
- The description of the policy definition.
- id str
- The ID of the policy definition.
- keywords Sequence[str]
- Specifies the keyword list used to query definition list.
- name str
- Specifies the name of the policy definitions used to query definition list.
- parameters Mapping[str, str]
- The parameter reference map of the policy definition.
- policy_
rule str - The policy rule of the policy definition.
- policy_
rule_ strtype - Specifies the policy rule type used to query definition list.
- policy_
type str - Specifies the policy type used to query definition list. The valid value is builtin.
- trigger_
type str - Specifies the trigger type used to query definition list. The valid values are resource and period.
- description String
- The description of the policy definition.
- id String
- The ID of the policy definition.
- keywords List<String>
- Specifies the keyword list used to query definition list.
- name String
- Specifies the name of the policy definitions used to query definition list.
- parameters Map<String>
- The parameter reference map of the policy definition.
- policy
Rule String - The policy rule of the policy definition.
- policy
Rule StringType - Specifies the policy rule type used to query definition list.
- policy
Type String - Specifies the policy type used to query definition list. The valid value is builtin.
- trigger
Type String - Specifies the trigger type used to query definition list. The valid values are resource and period.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud