Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of organization units
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.organization.getUnits({});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.organization.get_units()
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.GetUnits(ctx, nil, 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.GetUnits.Invoke();
});
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.GetUnitsArgs;
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.getUnits();
}
}
variables:
foo:
fn::invoke:
Function: volcengine:organization:getUnits
Arguments: {}
Using getUnits
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 getUnits(args: GetUnitsArgs, opts?: InvokeOptions): Promise<GetUnitsResult>
function getUnitsOutput(args: GetUnitsOutputArgs, opts?: InvokeOptions): Output<GetUnitsResult>def get_units(output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUnitsResult
def get_units_output(output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUnitsResult]func GetUnits(ctx *Context, args *GetUnitsArgs, opts ...InvokeOption) (*GetUnitsResult, error)
func GetUnitsOutput(ctx *Context, args *GetUnitsOutputArgs, opts ...InvokeOption) GetUnitsResultOutput> Note: This function is named GetUnits in the Go SDK.
public static class GetUnits
{
public static Task<GetUnitsResult> InvokeAsync(GetUnitsArgs args, InvokeOptions? opts = null)
public static Output<GetUnitsResult> Invoke(GetUnitsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUnitsResult> getUnits(GetUnitsArgs args, InvokeOptions options)
public static Output<GetUnitsResult> getUnits(GetUnitsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:organization/getUnits:getUnits
arguments:
# arguments dictionaryThe following arguments are supported:
- Output
File string - File name where to save data source results.
- Output
File string - File name where to save data source results.
- output
File String - File name where to save data source results.
- output
File string - File name where to save data source results.
- output_
file str - File name where to save data source results.
- output
File String - File name where to save data source results.
getUnits Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Units
List<Get
Units Unit> - The collection of query.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Units
[]Get
Units Unit - The collection of query.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- units
List<Get
Units Unit> - The collection of query.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- units
Get
Units Unit[] - The collection of query.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- units
Sequence[Get
Units Unit] - The collection of query.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- units List<Property Map>
- The collection of query.
- output
File String
Supporting Types
GetUnitsUnit
- Created
Time string - The created time of the organization unit.
- Delete
Uk string - Delete marker.
- Deleted
Time string - The deleted time of the organization unit.
- Depth int
- The depth of the organization unit.
- Description string
- The description of the organization unit.
- Id string
- The id of the organization unit.
- Name string
- The name of the organization unit.
- Org
Id string - The id of the organization.
- Org
Type int - The organization type.
- Owner string
- The owner of the organization unit.
- Parent
Id string - Parent Unit ID.
- Updated
Time string - The updated time of the organization unit.
- Created
Time string - The created time of the organization unit.
- Delete
Uk string - Delete marker.
- Deleted
Time string - The deleted time of the organization unit.
- Depth int
- The depth of the organization unit.
- Description string
- The description of the organization unit.
- Id string
- The id of the organization unit.
- Name string
- The name of the organization unit.
- Org
Id string - The id of the organization.
- Org
Type int - The organization type.
- Owner string
- The owner of the organization unit.
- Parent
Id string - Parent Unit ID.
- Updated
Time string - The updated time of the organization unit.
- created
Time String - The created time of the organization unit.
- delete
Uk String - Delete marker.
- deleted
Time String - The deleted time of the organization unit.
- depth Integer
- The depth of the organization unit.
- description String
- The description of the organization unit.
- id String
- The id of the organization unit.
- name String
- The name of the organization unit.
- org
Id String - The id of the organization.
- org
Type Integer - The organization type.
- owner String
- The owner of the organization unit.
- parent
Id String - Parent Unit ID.
- updated
Time String - The updated time of the organization unit.
- created
Time string - The created time of the organization unit.
- delete
Uk string - Delete marker.
- deleted
Time string - The deleted time of the organization unit.
- depth number
- The depth of the organization unit.
- description string
- The description of the organization unit.
- id string
- The id of the organization unit.
- name string
- The name of the organization unit.
- org
Id string - The id of the organization.
- org
Type number - The organization type.
- owner string
- The owner of the organization unit.
- parent
Id string - Parent Unit ID.
- updated
Time string - The updated time of the organization unit.
- created_
time str - The created time of the organization unit.
- delete_
uk str - Delete marker.
- deleted_
time str - The deleted time of the organization unit.
- depth int
- The depth of the organization unit.
- description str
- The description of the organization unit.
- id str
- The id of the organization unit.
- name str
- The name of the organization unit.
- org_
id str - The id of the organization.
- org_
type int - The organization type.
- owner str
- The owner of the organization unit.
- parent_
id str - Parent Unit ID.
- updated_
time str - The updated time of the organization unit.
- created
Time String - The created time of the organization unit.
- delete
Uk String - Delete marker.
- deleted
Time String - The deleted time of the organization unit.
- depth Number
- The depth of the organization unit.
- description String
- The description of the organization unit.
- id String
- The id of the organization unit.
- name String
- The name of the organization unit.
- org
Id String - The id of the organization.
- org
Type Number - The organization type.
- owner String
- The owner of the organization unit.
- parent
Id String - Parent Unit ID.
- updated
Time String - The updated time of the organization unit.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
