Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine
volcengine.organization.getServiceControlPolicies
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.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:
- Output
File string - File name where to save data source results.
- Policy
Type string - The type of policy. The value can be System or Custom.
- Query string
- Query policies, support policy name or description.
- Output
File string - File name where to save data source results.
- Policy
Type string - The type of policy. The value can be System or Custom.
- Query string
- Query policies, support policy name or description.
- output
File String - File name where to save data source results.
- policy
Type String - The type of policy. The value can be System or Custom.
- query String
- Query policies, support policy name or description.
- output
File string - File name where to save data source results.
- policy
Type 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.
- output
File String - File name where to save data source results.
- policy
Type 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<Get
Service Control Policies Policy> - The collection of Policy query.
- Total
Count int - The total count of Policy query.
- Output
File string - Policy
Type string - The type of the Policy.
- Query string
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
[]Get
Service Control Policies Policy - The collection of Policy query.
- Total
Count int - The total count of Policy query.
- Output
File string - Policy
Type string - The type of the Policy.
- Query string
- id String
- The provider-assigned unique ID for this managed resource.
- policies
List<Get
Service Control Policies Policy> - The collection of Policy query.
- total
Count Integer - The total count of Policy query.
- output
File String - policy
Type String - The type of the Policy.
- query String
- id string
- The provider-assigned unique ID for this managed resource.
- policies
Get
Service Control Policies Policy[] - The collection of Policy query.
- total
Count number - The total count of Policy query.
- output
File string - policy
Type string - The type of the Policy.
- query string
- id str
- The provider-assigned unique ID for this managed resource.
- policies
Sequence[Get
Service Control 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.
- total
Count Number - The total count of Policy query.
- output
File String - policy
Type String - The type of the Policy.
- query String
Supporting Types
GetServiceControlPoliciesPolicy
- Create
Date string - The create time of the Policy.
- Description string
- The description of the Policy.
- Id string
- The ID of the Policy.
- Policy
Name string - The name of the Policy.
- Policy
Type string - The type of policy. The value can be System or Custom.
- Statement string
- The statement of the Policy.
- Update
Date string - The update time of the Policy.
- Create
Date string - The create time of the Policy.
- Description string
- The description of the Policy.
- Id string
- The ID of the Policy.
- Policy
Name string - The name of the Policy.
- Policy
Type string - The type of policy. The value can be System or Custom.
- Statement string
- The statement of the Policy.
- Update
Date string - The update time of the Policy.
- create
Date String - The create time of the Policy.
- description String
- The description of the Policy.
- id String
- The ID of the Policy.
- policy
Name String - The name of the Policy.
- policy
Type String - The type of policy. The value can be System or Custom.
- statement String
- The statement of the Policy.
- update
Date String - The update time of the Policy.
- create
Date string - The create time of the Policy.
- description string
- The description of the Policy.
- id string
- The ID of the Policy.
- policy
Name string - The name of the Policy.
- policy
Type string - The type of policy. The value can be System or Custom.
- statement string
- The statement of the Policy.
- update
Date 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.
- create
Date String - The create time of the Policy.
- description String
- The description of the Policy.
- id String
- The ID of the Policy.
- policy
Name String - The name of the Policy.
- policy
Type String - The type of policy. The value can be System or Custom.
- statement String
- The statement of the Policy.
- update
Date 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.