vra 0.12.0 published on Monday, Apr 14, 2025 by vmware
vra.getNetworkProfile
Explore with Pulumi AI
Example Usage
S
This is an example of how to create a network profile resource.
Network profile data source by its id:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getNetworkProfile({
filter: `name eq '${vra_network_profile["this"].name}'`,
});
import pulumi
import pulumi_vra as vra
this = vra.get_network_profile(filter=f"name eq '{vra_network_profile['this']['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 {
_, err := vra.LookupNetworkProfile(ctx, &vra.LookupNetworkProfileArgs{
Filter: pulumi.StringRef(fmt.Sprintf("name eq '%v'", vra_network_profile.This.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(() =>
{
var @this = Vra.GetNetworkProfile.Invoke(new()
{
Filter = $"name eq '{vra_network_profile.This.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.GetNetworkProfileArgs;
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 this = VraFunctions.getNetworkProfile(GetNetworkProfileArgs.builder()
.filter(String.format("name eq '%s'", vra_network_profile.this().name()))
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getNetworkProfile
arguments:
filter: name eq '${vra_network_profile.this.name}'
Vra network profile data source filter by region id:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getNetworkProfile({
filter: `regionId eq '${data.vra_region["this"].id}'`,
});
import pulumi
import pulumi_vra as vra
this = vra.get_network_profile(filter=f"regionId eq '{data['vra_region']['this']['id']}'")
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 {
_, err := vra.LookupNetworkProfile(ctx, &vra.LookupNetworkProfileArgs{
Filter: pulumi.StringRef(fmt.Sprintf("regionId eq '%v'", data.Vra_region.This.Id)),
}, 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(() =>
{
var @this = Vra.GetNetworkProfile.Invoke(new()
{
Filter = $"regionId eq '{data.Vra_region.This.Id}'",
});
});
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.GetNetworkProfileArgs;
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 this = VraFunctions.getNetworkProfile(GetNetworkProfileArgs.builder()
.filter(String.format("regionId eq '%s'", data.vra_region().this().id()))
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getNetworkProfile
arguments:
filter: regionId eq '${data.vra_region.this.id}'
A network profile data source supports the following arguments:
Using getNetworkProfile
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 getNetworkProfile(args: GetNetworkProfileArgs, opts?: InvokeOptions): Promise<GetNetworkProfileResult>
function getNetworkProfileOutput(args: GetNetworkProfileOutputArgs, opts?: InvokeOptions): Output<GetNetworkProfileResult>
def get_network_profile(filter: Optional[str] = None,
id: Optional[str] = None,
isolated_external_fabric_network_id: Optional[str] = None,
isolated_network_domain_id: Optional[str] = None,
tags: Optional[Sequence[GetNetworkProfileTag]] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkProfileResult
def get_network_profile_output(filter: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
isolated_external_fabric_network_id: Optional[pulumi.Input[str]] = None,
isolated_network_domain_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetNetworkProfileTagArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkProfileResult]
func LookupNetworkProfile(ctx *Context, args *LookupNetworkProfileArgs, opts ...InvokeOption) (*LookupNetworkProfileResult, error)
func LookupNetworkProfileOutput(ctx *Context, args *LookupNetworkProfileOutputArgs, opts ...InvokeOption) LookupNetworkProfileResultOutput
> Note: This function is named LookupNetworkProfile
in the Go SDK.
public static class GetNetworkProfile
{
public static Task<GetNetworkProfileResult> InvokeAsync(GetNetworkProfileArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkProfileResult> Invoke(GetNetworkProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkProfileResult> getNetworkProfile(GetNetworkProfileArgs args, InvokeOptions options)
public static Output<GetNetworkProfileResult> getNetworkProfile(GetNetworkProfileArgs args, InvokeOptions options)
fn::invoke:
function: vra:index/getNetworkProfile:getNetworkProfile
arguments:
# arguments dictionary
The following arguments are supported:
- Filter string
- Filter query string that is supported by vRA multi-cloud IaaS API. Example:
regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'
. - Id string
- The id of the image profile instance.
- Isolated
External stringFabric Network Id - The Id of the fabric network used for outbound access.
- Isolated
Network stringDomain Id - The Id of the network domain used for creating isolated networks.
- List<Get
Network Profile Tag> - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- Filter string
- Filter query string that is supported by vRA multi-cloud IaaS API. Example:
regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'
. - Id string
- The id of the image profile instance.
- Isolated
External stringFabric Network Id - The Id of the fabric network used for outbound access.
- Isolated
Network stringDomain Id - The Id of the network domain used for creating isolated networks.
- []Get
Network Profile Tag - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- filter String
- Filter query string that is supported by vRA multi-cloud IaaS API. Example:
regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'
. - id String
- The id of the image profile instance.
- isolated
External StringFabric Network Id - The Id of the fabric network used for outbound access.
- isolated
Network StringDomain Id - The Id of the network domain used for creating isolated networks.
- List<Get
Network Profile Tag> - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- filter string
- Filter query string that is supported by vRA multi-cloud IaaS API. Example:
regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'
. - id string
- The id of the image profile instance.
- isolated
External stringFabric Network Id - The Id of the fabric network used for outbound access.
- isolated
Network stringDomain Id - The Id of the network domain used for creating isolated networks.
- Get
Network Profile Tag[] - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- filter str
- Filter query string that is supported by vRA multi-cloud IaaS API. Example:
regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'
. - id str
- The id of the image profile instance.
- isolated_
external_ strfabric_ network_ id - The Id of the fabric network used for outbound access.
- isolated_
network_ strdomain_ id - The Id of the network domain used for creating isolated networks.
- Sequence[Get
Network Profile Tag] - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- filter String
- Filter query string that is supported by vRA multi-cloud IaaS API. Example:
regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'
. - id String
- The id of the image profile instance.
- isolated
External StringFabric Network Id - The Id of the fabric network used for outbound access.
- isolated
Network StringDomain Id - The Id of the network domain used for creating isolated networks.
- List<Property Map>
- A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
getNetworkProfile Result
The following output properties are available:
- Custom
Properties Dictionary<string, string> - Additional properties that may be used to extend the Network Profile object that is produced from this specification. For isolationType security group, datastoreId identifies the Compute Resource Edge datastore. computeCluster and resourcePoolId identify the Compute Resource Edge cluster. For isolationType subnet, distributedLogicalRouterStateLink identifies the on-demand network distributed local router. onDemandNetworkIPAssignmentType identifies the on-demand network IP range assignment type static, dynamic, or mixed.
- Description string
- A human-friendly description.
- External
Region stringId - The external regionId of the resource.
- Fabric
Network List<string>Ids - A list of fabric network Ids which are assigned to the network profile.
example:
[ "6543" ]
- Id string
- Isolated
Network doubleCidr Prefix - The CIDR prefix length to be used for the isolated networks that are created with the network profile.
- Isolated
Network stringDomain Cidr - CIDR of the isolation network domain.
- Isolation
Type string - Specifies the isolation type e.g. none, subnet or security group
- Links
List<Get
Network Profile Link> - HATEOAS of the entity
- Name string
- A human-friendly name used as an identifier in APIs that support this option.
- Organization
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Region
Id string - The id of the region for which this profile is defined as in vRealize Automation(vRA).
- Security
Group List<string>Ids - A list of security group Ids which are assigned to the network profile.
example:
[ "6545" ]
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Filter string
- Isolated
External stringFabric Network Id - Isolated
Network stringDomain Id - List<Get
Network Profile Tag> - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- Custom
Properties map[string]string - Additional properties that may be used to extend the Network Profile object that is produced from this specification. For isolationType security group, datastoreId identifies the Compute Resource Edge datastore. computeCluster and resourcePoolId identify the Compute Resource Edge cluster. For isolationType subnet, distributedLogicalRouterStateLink identifies the on-demand network distributed local router. onDemandNetworkIPAssignmentType identifies the on-demand network IP range assignment type static, dynamic, or mixed.
- Description string
- A human-friendly description.
- External
Region stringId - The external regionId of the resource.
- Fabric
Network []stringIds - A list of fabric network Ids which are assigned to the network profile.
example:
[ "6543" ]
- Id string
- Isolated
Network float64Cidr Prefix - The CIDR prefix length to be used for the isolated networks that are created with the network profile.
- Isolated
Network stringDomain Cidr - CIDR of the isolation network domain.
- Isolation
Type string - Specifies the isolation type e.g. none, subnet or security group
- Links
[]Get
Network Profile Link - HATEOAS of the entity
- Name string
- A human-friendly name used as an identifier in APIs that support this option.
- Organization
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Region
Id string - The id of the region for which this profile is defined as in vRealize Automation(vRA).
- Security
Group []stringIds - A list of security group Ids which are assigned to the network profile.
example:
[ "6545" ]
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Filter string
- Isolated
External stringFabric Network Id - Isolated
Network stringDomain Id - []Get
Network Profile Tag - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- custom
Properties Map<String,String> - Additional properties that may be used to extend the Network Profile object that is produced from this specification. For isolationType security group, datastoreId identifies the Compute Resource Edge datastore. computeCluster and resourcePoolId identify the Compute Resource Edge cluster. For isolationType subnet, distributedLogicalRouterStateLink identifies the on-demand network distributed local router. onDemandNetworkIPAssignmentType identifies the on-demand network IP range assignment type static, dynamic, or mixed.
- description String
- A human-friendly description.
- external
Region StringId - The external regionId of the resource.
- fabric
Network List<String>Ids - A list of fabric network Ids which are assigned to the network profile.
example:
[ "6543" ]
- id String
- isolated
Network DoubleCidr Prefix - The CIDR prefix length to be used for the isolated networks that are created with the network profile.
- isolated
Network StringDomain Cidr - CIDR of the isolation network domain.
- isolation
Type String - Specifies the isolation type e.g. none, subnet or security group
- links
List<Get
Network Profile Link> - HATEOAS of the entity
- name String
- A human-friendly name used as an identifier in APIs that support this option.
- organization
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- region
Id String - The id of the region for which this profile is defined as in vRealize Automation(vRA).
- security
Group List<String>Ids - A list of security group Ids which are assigned to the network profile.
example:
[ "6545" ]
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter String
- isolated
External StringFabric Network Id - isolated
Network StringDomain Id - List<Get
Network Profile Tag> - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- custom
Properties {[key: string]: string} - Additional properties that may be used to extend the Network Profile object that is produced from this specification. For isolationType security group, datastoreId identifies the Compute Resource Edge datastore. computeCluster and resourcePoolId identify the Compute Resource Edge cluster. For isolationType subnet, distributedLogicalRouterStateLink identifies the on-demand network distributed local router. onDemandNetworkIPAssignmentType identifies the on-demand network IP range assignment type static, dynamic, or mixed.
- description string
- A human-friendly description.
- external
Region stringId - The external regionId of the resource.
- fabric
Network string[]Ids - A list of fabric network Ids which are assigned to the network profile.
example:
[ "6543" ]
- id string
- isolated
Network numberCidr Prefix - The CIDR prefix length to be used for the isolated networks that are created with the network profile.
- isolated
Network stringDomain Cidr - CIDR of the isolation network domain.
- isolation
Type string - Specifies the isolation type e.g. none, subnet or security group
- links
Get
Network Profile Link[] - HATEOAS of the entity
- name string
- A human-friendly name used as an identifier in APIs that support this option.
- organization
Id string - The id of the organization this entity belongs to.
- owner string
- Email of the user that owns the entity.
- region
Id string - The id of the region for which this profile is defined as in vRealize Automation(vRA).
- security
Group string[]Ids - A list of security group Ids which are assigned to the network profile.
example:
[ "6545" ]
- updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter string
- isolated
External stringFabric Network Id - isolated
Network stringDomain Id - Get
Network Profile Tag[] - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- custom_
properties Mapping[str, str] - Additional properties that may be used to extend the Network Profile object that is produced from this specification. For isolationType security group, datastoreId identifies the Compute Resource Edge datastore. computeCluster and resourcePoolId identify the Compute Resource Edge cluster. For isolationType subnet, distributedLogicalRouterStateLink identifies the on-demand network distributed local router. onDemandNetworkIPAssignmentType identifies the on-demand network IP range assignment type static, dynamic, or mixed.
- description str
- A human-friendly description.
- external_
region_ strid - The external regionId of the resource.
- fabric_
network_ Sequence[str]ids - A list of fabric network Ids which are assigned to the network profile.
example:
[ "6543" ]
- id str
- isolated_
network_ floatcidr_ prefix - The CIDR prefix length to be used for the isolated networks that are created with the network profile.
- isolated_
network_ strdomain_ cidr - CIDR of the isolation network domain.
- isolation_
type str - Specifies the isolation type e.g. none, subnet or security group
- links
Sequence[Get
Network Profile Link] - HATEOAS of the entity
- name str
- A human-friendly name used as an identifier in APIs that support this option.
- organization_
id str - The id of the organization this entity belongs to.
- owner str
- Email of the user that owns the entity.
- region_
id str - The id of the region for which this profile is defined as in vRealize Automation(vRA).
- security_
group_ Sequence[str]ids - A list of security group Ids which are assigned to the network profile.
example:
[ "6545" ]
- updated_
at str - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter str
- isolated_
external_ strfabric_ network_ id - isolated_
network_ strdomain_ id - Sequence[Get
Network Profile Tag] - A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
- custom
Properties Map<String> - Additional properties that may be used to extend the Network Profile object that is produced from this specification. For isolationType security group, datastoreId identifies the Compute Resource Edge datastore. computeCluster and resourcePoolId identify the Compute Resource Edge cluster. For isolationType subnet, distributedLogicalRouterStateLink identifies the on-demand network distributed local router. onDemandNetworkIPAssignmentType identifies the on-demand network IP range assignment type static, dynamic, or mixed.
- description String
- A human-friendly description.
- external
Region StringId - The external regionId of the resource.
- fabric
Network List<String>Ids - A list of fabric network Ids which are assigned to the network profile.
example:
[ "6543" ]
- id String
- isolated
Network NumberCidr Prefix - The CIDR prefix length to be used for the isolated networks that are created with the network profile.
- isolated
Network StringDomain Cidr - CIDR of the isolation network domain.
- isolation
Type String - Specifies the isolation type e.g. none, subnet or security group
- links List<Property Map>
- HATEOAS of the entity
- name String
- A human-friendly name used as an identifier in APIs that support this option.
- organization
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- region
Id String - The id of the region for which this profile is defined as in vRealize Automation(vRA).
- security
Group List<String>Ids - A list of security group Ids which are assigned to the network profile.
example:
[ "6545" ]
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- filter String
- isolated
External StringFabric Network Id - isolated
Network StringDomain Id - List<Property Map>
- A set of tag keys and optional values that were set on this Network Profile.
example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
Supporting Types
GetNetworkProfileLink
GetNetworkProfileTag
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vra
Terraform Provider.