Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
Example Usage
S
This is an example of how to lookup security groups.
Security groups by filter query:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
// Lookup Security groups using its name
const _this = vra.getSecurityGroup({
filter: `name eq '${name}'`,
});
import pulumi
import pulumi_vra as vra
# Lookup Security groups using its name
this = vra.get_security_group(filter=f"name eq '{name}'")
package main
import (
"fmt"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Lookup Security groups using its name
_, err := vra.GetSecurityGroup(ctx, &vra.GetSecurityGroupArgs{
Filter: fmt.Sprintf("name eq '%v'", name),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
// Lookup Security groups using its name
var @this = Vra.GetSecurityGroup.Invoke(new()
{
Filter = $"name eq '{name}'",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.VraFunctions;
import com.pulumi.vra.inputs.GetSecurityGroupArgs;
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) {
// Lookup Security groups using its name
final var this = VraFunctions.getSecurityGroup(GetSecurityGroupArgs.builder()
.filter(String.format("name eq '%s'", name))
.build());
}
}
variables:
# Lookup Security groups using its name
this:
fn::invoke:
function: vra:getSecurityGroup
arguments:
filter: name eq '${name}'
A Security group supports the following arguments:
Using getSecurityGroup
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 getSecurityGroup(args: GetSecurityGroupArgs, opts?: InvokeOptions): Promise<GetSecurityGroupResult>
function getSecurityGroupOutput(args: GetSecurityGroupOutputArgs, opts?: InvokeOptions): Output<GetSecurityGroupResult>def get_security_group(filter: Optional[str] = None,
rules: Optional[Sequence[GetSecurityGroupRule]] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityGroupResult
def get_security_group_output(filter: Optional[pulumi.Input[str]] = None,
rules: Optional[pulumi.Input[Sequence[pulumi.Input[GetSecurityGroupRuleArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGroupResult]func GetSecurityGroup(ctx *Context, args *GetSecurityGroupArgs, opts ...InvokeOption) (*GetSecurityGroupResult, error)
func GetSecurityGroupOutput(ctx *Context, args *GetSecurityGroupOutputArgs, opts ...InvokeOption) GetSecurityGroupResultOutput> Note: This function is named GetSecurityGroup in the Go SDK.
public static class GetSecurityGroup
{
public static Task<GetSecurityGroupResult> InvokeAsync(GetSecurityGroupArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityGroupResult> Invoke(GetSecurityGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityGroupResult> getSecurityGroup(GetSecurityGroupArgs args, InvokeOptions options)
public static Output<GetSecurityGroupResult> getSecurityGroup(GetSecurityGroupArgs args, InvokeOptions options)
fn::invoke:
function: vra:index/getSecurityGroup:getSecurityGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Filter string
- Search criteria to narrow down the Security groups.
- Rules
List<Get
Security Group Rule> - List of security rules.
- Filter string
- Search criteria to narrow down the Security groups.
- Rules
[]Get
Security Group Rule - List of security rules.
- filter String
- Search criteria to narrow down the Security groups.
- rules
List<Get
Security Group Rule> - List of security rules.
- filter string
- Search criteria to narrow down the Security groups.
- rules
Get
Security Group Rule[] - List of security rules.
- filter str
- Search criteria to narrow down the Security groups.
- rules
Sequence[Get
Security Group Rule] - List of security rules.
- filter String
- Search criteria to narrow down the Security groups.
- rules List<Property Map>
- List of security rules.
getSecurityGroup Result
The following output properties are available:
- Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
- Description string
- A human-friendly description of the security groups.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - The id of the region for which this entity is defined.
- Filter string
- Id string
- ID of the security group.
- Links
List<Get
Security Group Link> - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- Name string
- Name of the security group.
- Organization
Id string - ID of organization that entity belongs to.
- Owner string
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Rules
List<Get
Security Group Rule> - List of security rules.
- Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
- Description string
- A human-friendly description of the security groups.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - The id of the region for which this entity is defined.
- Filter string
- Id string
- ID of the security group.
- Links
[]Get
Security Group Link - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- Name string
- Name of the security group.
- Organization
Id string - ID of organization that entity belongs to.
- Owner string
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Rules
[]Get
Security Group Rule - List of security rules.
- created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
- description String
- A human-friendly description of the security groups.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - The id of the region for which this entity is defined.
- filter String
- id String
- ID of the security group.
- links
List<Get
Security Group Link> - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name String
- Name of the security group.
- organization
Id String - ID of organization that entity belongs to.
- owner String
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- rules
List<Get
Security Group Rule> - List of security rules.
- created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
- description string
- A human-friendly description of the security groups.
- external
Id string - External entity Id on the provider side.
- external
Region stringId - The id of the region for which this entity is defined.
- filter string
- id string
- ID of the security group.
- links
Get
Security Group Link[] - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name string
- Name of the security group.
- organization
Id string - ID of organization that entity belongs to.
- owner string
- updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- rules
Get
Security Group Rule[] - List of security rules.
- created_
at str - Date when the entity was created. The date is in ISO 6801 and UTC.
- description str
- A human-friendly description of the security groups.
- external_
id str - External entity Id on the provider side.
- external_
region_ strid - The id of the region for which this entity is defined.
- filter str
- id str
- ID of the security group.
- links
Sequence[Get
Security Group Link] - Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name str
- Name of the security group.
- organization_
id str - ID of organization that entity belongs to.
- owner str
- updated_
at str - Date when the entity was last updated. The date is ISO 8601 and UTC.
- rules
Sequence[Get
Security Group Rule] - List of security rules.
- created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
- description String
- A human-friendly description of the security groups.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - The id of the region for which this entity is defined.
- filter String
- id String
- ID of the security group.
- links List<Property Map>
- Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- name String
- Name of the security group.
- organization
Id String - ID of organization that entity belongs to.
- owner String
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- rules List<Property Map>
- List of security rules.
Supporting Types
GetSecurityGroupLink
GetSecurityGroupRule
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vraTerraform Provider.
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
