vra 0.12.0 published on Monday, Apr 14, 2025 by vmware
vra.getCloudAccountAzure
Explore with Pulumi AI
Provides a VMware vRA vra.CloudAccountAzure data source.
Example Usage
S
Azure cloud account data source by its id:
This is an example of how to read the cloud account data source using its id.
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getCloudAccountAzure({
id: _var.vra_cloud_account_azure_id,
});
import pulumi
import pulumi_vra as vra
this = vra.get_cloud_account_azure(id=var["vra_cloud_account_azure_id"])
package main
import (
"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.LookupCloudAccountAzure(ctx, &vra.LookupCloudAccountAzureArgs{
Id: pulumi.StringRef(_var.Vra_cloud_account_azure_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.GetCloudAccountAzure.Invoke(new()
{
Id = @var.Vra_cloud_account_azure_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.GetCloudAccountAzureArgs;
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.getCloudAccountAzure(GetCloudAccountAzureArgs.builder()
.id(var_.vra_cloud_account_azure_id())
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getCloudAccountAzure
arguments:
id: ${var.vra_cloud_account_azure_id}
Azure cloud account data source by its name:
This is an example of how to read the cloud account data source using its name.
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getCloudAccountAzure({
name: _var.vra_cloud_account_azure_name,
});
import pulumi
import pulumi_vra as vra
this = vra.get_cloud_account_azure(name=var["vra_cloud_account_azure_name"])
package main
import (
"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.LookupCloudAccountAzure(ctx, &vra.LookupCloudAccountAzureArgs{
Name: pulumi.StringRef(_var.Vra_cloud_account_azure_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.GetCloudAccountAzure.Invoke(new()
{
Name = @var.Vra_cloud_account_azure_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.GetCloudAccountAzureArgs;
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.getCloudAccountAzure(GetCloudAccountAzureArgs.builder()
.name(var_.vra_cloud_account_azure_name())
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getCloudAccountAzure
arguments:
name: ${var.vra_cloud_account_azure_name}
Using getCloudAccountAzure
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 getCloudAccountAzure(args: GetCloudAccountAzureArgs, opts?: InvokeOptions): Promise<GetCloudAccountAzureResult>
function getCloudAccountAzureOutput(args: GetCloudAccountAzureOutputArgs, opts?: InvokeOptions): Output<GetCloudAccountAzureResult>
def get_cloud_account_azure(id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[GetCloudAccountAzureTag]] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudAccountAzureResult
def get_cloud_account_azure_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetCloudAccountAzureTagArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudAccountAzureResult]
func LookupCloudAccountAzure(ctx *Context, args *LookupCloudAccountAzureArgs, opts ...InvokeOption) (*LookupCloudAccountAzureResult, error)
func LookupCloudAccountAzureOutput(ctx *Context, args *LookupCloudAccountAzureOutputArgs, opts ...InvokeOption) LookupCloudAccountAzureResultOutput
> Note: This function is named LookupCloudAccountAzure
in the Go SDK.
public static class GetCloudAccountAzure
{
public static Task<GetCloudAccountAzureResult> InvokeAsync(GetCloudAccountAzureArgs args, InvokeOptions? opts = null)
public static Output<GetCloudAccountAzureResult> Invoke(GetCloudAccountAzureInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudAccountAzureResult> getCloudAccountAzure(GetCloudAccountAzureArgs args, InvokeOptions options)
public static Output<GetCloudAccountAzureResult> getCloudAccountAzure(GetCloudAccountAzureArgs args, InvokeOptions options)
fn::invoke:
function: vra:index/getCloudAccountAzure:getCloudAccountAzure
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The id of this Azure cloud account.
- Name string
- The name of this Azure cloud account.
- List<Get
Cloud Account Azure Tag> - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- Id string
- The id of this Azure cloud account.
- Name string
- The name of this Azure cloud account.
- []Get
Cloud Account Azure Tag - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- id String
- The id of this Azure cloud account.
- name String
- The name of this Azure cloud account.
- List<Get
Cloud Account Azure Tag> - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- id string
- The id of this Azure cloud account.
- name string
- The name of this Azure cloud account.
- Get
Cloud Account Azure Tag[] - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- id str
- The id of this Azure cloud account.
- name str
- The name of this Azure cloud account.
- Sequence[Get
Cloud Account Azure Tag] - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- id String
- The id of this Azure cloud account.
- name String
- The name of this Azure cloud account.
- List<Property Map>
- A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
getCloudAccountAzure Result
The following output properties are available:
- Application
Id string - Azure Client Application ID.
- Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
- Description string
- A human-friendly description.
- Id string
- Links
List<Get
Cloud Account Azure Link> - HATEOAS of the entity.
- Name string
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Regions List<string>
- A set of region names that are enabled for this account.
- Subscription
Id string - Azure Subscription ID.
- Tenant
Id string - Azure Tenant ID.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- List<Get
Cloud Account Azure Tag> - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- Application
Id string - Azure Client Application ID.
- Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
- Description string
- A human-friendly description.
- Id string
- Links
[]Get
Cloud Account Azure Link - HATEOAS of the entity.
- Name string
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Regions []string
- A set of region names that are enabled for this account.
- Subscription
Id string - Azure Subscription ID.
- Tenant
Id string - Azure Tenant ID.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- []Get
Cloud Account Azure Tag - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- application
Id String - Azure Client Application ID.
- created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
- description String
- A human-friendly description.
- id String
- links
List<Get
Cloud Account Azure Link> - HATEOAS of the entity.
- name String
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- regions List<String>
- A set of region names that are enabled for this account.
- subscription
Id String - Azure Subscription ID.
- tenant
Id String - Azure Tenant ID.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- List<Get
Cloud Account Azure Tag> - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- application
Id string - Azure Client Application ID.
- created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
- description string
- A human-friendly description.
- id string
- links
Get
Cloud Account Azure Link[] - HATEOAS of the entity.
- name string
- org
Id string - The id of the organization this entity belongs to.
- owner string
- Email of the user that owns the entity.
- regions string[]
- A set of region names that are enabled for this account.
- subscription
Id string - Azure Subscription ID.
- tenant
Id string - Azure Tenant ID.
- updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Get
Cloud Account Azure Tag[] - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- application_
id str - Azure Client Application ID.
- created_
at str - Date when the entity was created. The date is in ISO 6801 and UTC.
- description str
- A human-friendly description.
- id str
- links
Sequence[Get
Cloud Account Azure Link] - HATEOAS of the entity.
- name str
- org_
id str - The id of the organization this entity belongs to.
- owner str
- Email of the user that owns the entity.
- regions Sequence[str]
- A set of region names that are enabled for this account.
- subscription_
id str - Azure Subscription ID.
- tenant_
id str - Azure Tenant ID.
- updated_
at str - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Sequence[Get
Cloud Account Azure Tag] - A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
- application
Id String - Azure Client Application ID.
- created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
- description String
- A human-friendly description.
- id String
- links List<Property Map>
- HATEOAS of the entity.
- name String
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- regions List<String>
- A set of region names that are enabled for this account.
- subscription
Id String - Azure Subscription ID.
- tenant
Id String - Azure Tenant ID.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- List<Property Map>
- A set of tag keys and optional values that were set on this resource.
example:
[ { "key" : "vmware", "value": "provider" } ]
Supporting Types
GetCloudAccountAzureLink
GetCloudAccountAzureTag
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vra
Terraform Provider.