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

volcengine.organization.getServiceControlPolicies

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 organization service control policies

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.organization.getServiceControlPolicies({
        policyType: "Custom",
        query: "test",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.organization.get_service_control_policies(policy_type="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.GetServiceControlPolicies(ctx, &organization.GetServiceControlPoliciesArgs{
    			PolicyType: pulumi.StringRef("Custom"),
    			Query:      pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Organization.GetServiceControlPolicies.Invoke(new()
        {
            PolicyType = "Custom",
            Query = "test",
        });
    
    });
    
    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.GetServiceControlPoliciesArgs;
    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.getServiceControlPolicies(GetServiceControlPoliciesArgs.builder()
                .policyType("Custom")
                .query("test")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:organization:getServiceControlPolicies
          Arguments:
            policyType: Custom
            query: test
    

    Using getServiceControlPolicies

    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 getServiceControlPolicies(args: GetServiceControlPoliciesArgs, opts?: InvokeOptions): Promise<GetServiceControlPoliciesResult>
    function getServiceControlPoliciesOutput(args: GetServiceControlPoliciesOutputArgs, opts?: InvokeOptions): Output<GetServiceControlPoliciesResult>
    def get_service_control_policies(output_file: Optional[str] = None,
                                     policy_type: Optional[str] = None,
                                     query: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetServiceControlPoliciesResult
    def get_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[GetServiceControlPoliciesResult]
    func GetServiceControlPolicies(ctx *Context, args *GetServiceControlPoliciesArgs, opts ...InvokeOption) (*GetServiceControlPoliciesResult, error)
    func GetServiceControlPoliciesOutput(ctx *Context, args *GetServiceControlPoliciesOutputArgs, opts ...InvokeOption) GetServiceControlPoliciesResultOutput

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

    public static class GetServiceControlPolicies 
    {
        public static Task<GetServiceControlPoliciesResult> InvokeAsync(GetServiceControlPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceControlPoliciesResult> Invoke(GetServiceControlPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceControlPoliciesResult> getServiceControlPolicies(GetServiceControlPoliciesArgs args, InvokeOptions options)
    public static Output<GetServiceControlPoliciesResult> getServiceControlPolicies(GetServiceControlPoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:organization/getServiceControlPolicies:getServiceControlPolicies
      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.

    getServiceControlPolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Policies List<GetServiceControlPoliciesPolicy>
    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 []GetServiceControlPoliciesPolicy
    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<GetServiceControlPoliciesPolicy>
    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 GetServiceControlPoliciesPolicy[]
    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[GetServiceControlPoliciesPolicy]
    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

    GetServiceControlPoliciesPolicy

    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.31 published on Monday, May 12, 2025 by Volcengine