1. Packages
  2. Volcengine
  3. API Docs
  4. organization
  5. ServiceControlPolicies
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.organization.ServiceControlPolicies

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of organization service control policies

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Organization.ServiceControlPolicies.Invoke(new()
        {
            PolicyType = "Custom",
            Query = "test",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/organization"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := organization.ServiceControlPolicies(ctx, &organization.ServiceControlPoliciesArgs{
    			PolicyType: pulumi.StringRef("Custom"),
    			Query:      pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.organization.OrganizationFunctions;
    import com.pulumi.volcengine.organization.inputs.ServiceControlPoliciesArgs;
    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 foo = OrganizationFunctions.ServiceControlPolicies(ServiceControlPoliciesArgs.builder()
                .policyType("Custom")
                .query("test")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.organization.service_control_policies(policy_type="Custom",
        query="test")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.organization.ServiceControlPolicies({
        policyType: "Custom",
        query: "test",
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:organization:ServiceControlPolicies
          Arguments:
            policyType: Custom
            query: test
    

    Using ServiceControlPolicies

    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 serviceControlPolicies(args: ServiceControlPoliciesArgs, opts?: InvokeOptions): Promise<ServiceControlPoliciesResult>
    function serviceControlPoliciesOutput(args: ServiceControlPoliciesOutputArgs, opts?: InvokeOptions): Output<ServiceControlPoliciesResult>
    def service_control_policies(output_file: Optional[str] = None,
                                 policy_type: Optional[str] = None,
                                 query: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> ServiceControlPoliciesResult
    def service_control_policies_output(output_file: Optional[pulumi.Input[str]] = None,
                                 policy_type: Optional[pulumi.Input[str]] = None,
                                 query: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[ServiceControlPoliciesResult]
    func ServiceControlPolicies(ctx *Context, args *ServiceControlPoliciesArgs, opts ...InvokeOption) (*ServiceControlPoliciesResult, error)
    func ServiceControlPoliciesOutput(ctx *Context, args *ServiceControlPoliciesOutputArgs, opts ...InvokeOption) ServiceControlPoliciesResultOutput
    public static class ServiceControlPolicies 
    {
        public static Task<ServiceControlPoliciesResult> InvokeAsync(ServiceControlPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<ServiceControlPoliciesResult> Invoke(ServiceControlPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ServiceControlPoliciesResult> serviceControlPolicies(ServiceControlPoliciesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:organization:ServiceControlPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OutputFile string
    File name where to save data source results.
    PolicyType string
    The type of policy. The value can be System or Custom.
    Query string
    Query policies, support policy name or description.
    OutputFile string
    File name where to save data source results.
    PolicyType string
    The type of policy. The value can be System or Custom.
    Query string
    Query policies, support policy name or description.
    outputFile String
    File name where to save data source results.
    policyType String
    The type of policy. The value can be System or Custom.
    query String
    Query policies, support policy name or description.
    outputFile string
    File name where to save data source results.
    policyType string
    The type of policy. The value can be System or Custom.
    query string
    Query policies, support policy name or description.
    output_file str
    File name where to save data source results.
    policy_type str
    The type of policy. The value can be System or Custom.
    query str
    Query policies, support policy name or description.
    outputFile String
    File name where to save data source results.
    policyType String
    The type of policy. The value can be System or Custom.
    query String
    Query policies, support policy name or description.

    ServiceControlPolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Policies List<ServiceControlPoliciesPolicy>
    The collection of Policy query.
    TotalCount int
    The total count of Policy query.
    OutputFile string
    PolicyType string
    The type of the Policy.
    Query string
    Id string
    The provider-assigned unique ID for this managed resource.
    Policies []ServiceControlPoliciesPolicy
    The collection of Policy query.
    TotalCount int
    The total count of Policy query.
    OutputFile string
    PolicyType string
    The type of the Policy.
    Query string
    id String
    The provider-assigned unique ID for this managed resource.
    policies List<ServiceControlPoliciesPolicy>
    The collection of Policy query.
    totalCount Integer
    The total count of Policy query.
    outputFile String
    policyType String
    The type of the Policy.
    query String
    id string
    The provider-assigned unique ID for this managed resource.
    policies ServiceControlPoliciesPolicy[]
    The collection of Policy query.
    totalCount number
    The total count of Policy query.
    outputFile string
    policyType string
    The type of the Policy.
    query string
    id str
    The provider-assigned unique ID for this managed resource.
    policies Sequence[ServiceControlPoliciesPolicy]
    The collection of Policy query.
    total_count int
    The total count of Policy query.
    output_file str
    policy_type str
    The type of the Policy.
    query str
    id String
    The provider-assigned unique ID for this managed resource.
    policies List<Property Map>
    The collection of Policy query.
    totalCount Number
    The total count of Policy query.
    outputFile String
    policyType String
    The type of the Policy.
    query String

    Supporting Types

    ServiceControlPoliciesPolicy

    CreateDate string
    The create time of the Policy.
    Description string
    The description of the Policy.
    Id string
    The ID of the Policy.
    PolicyName string
    The name of the Policy.
    PolicyType string
    The type of policy. The value can be System or Custom.
    Statement string
    The statement of the Policy.
    UpdateDate string
    The update time of the Policy.
    CreateDate string
    The create time of the Policy.
    Description string
    The description of the Policy.
    Id string
    The ID of the Policy.
    PolicyName string
    The name of the Policy.
    PolicyType string
    The type of policy. The value can be System or Custom.
    Statement string
    The statement of the Policy.
    UpdateDate string
    The update time of the Policy.
    createDate String
    The create time of the Policy.
    description String
    The description of the Policy.
    id String
    The ID of the Policy.
    policyName String
    The name of the Policy.
    policyType String
    The type of policy. The value can be System or Custom.
    statement String
    The statement of the Policy.
    updateDate String
    The update time of the Policy.
    createDate string
    The create time of the Policy.
    description string
    The description of the Policy.
    id string
    The ID of the Policy.
    policyName string
    The name of the Policy.
    policyType string
    The type of policy. The value can be System or Custom.
    statement string
    The statement of the Policy.
    updateDate string
    The update time of the Policy.
    create_date str
    The create time of the Policy.
    description str
    The description of the Policy.
    id str
    The ID of the Policy.
    policy_name str
    The name of the Policy.
    policy_type str
    The type of policy. The value can be System or Custom.
    statement str
    The statement of the Policy.
    update_date str
    The update time of the Policy.
    createDate String
    The create time of the Policy.
    description String
    The description of the Policy.
    id String
    The ID of the Policy.
    policyName String
    The name of the Policy.
    policyType String
    The type of policy. The value can be System or Custom.
    statement String
    The statement of the Policy.
    updateDate String
    The update time of the Policy.

    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.26 published on Friday, Sep 13, 2024 by Volcengine