Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.organization.ServiceControlPolicies
Explore with Pulumi AI
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.ServiceControlPolicies({
    policyType: "Custom",
    query: "test",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.organization.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.ServiceControlPolicies(ctx, &organization.ServiceControlPoliciesArgs{
			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.ServiceControlPolicies.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.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());
    }
}
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) ServiceControlPoliciesResultOutputpublic 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)
public static Output<ServiceControlPoliciesResult> serviceControlPolicies(ServiceControlPoliciesArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:organization:ServiceControlPolicies
  arguments:
    # arguments dictionaryThe 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<ServiceControl Policies Policy> 
- 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
[]ServiceControl Policies Policy 
- 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<ServiceControl Policies Policy> 
- 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
ServiceControl Policies Policy[] 
- 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[ServiceControl Policies Policy] 
- 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 volcengineTerraform Provider.