We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.mixedreality.getSpatialAnchorsAccount
Explore with Pulumi AI
Get information about an Azure Spatial Anchors Account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.mixedreality.getSpatialAnchorsAccount({
name: "example",
resourceGroupName: exampleAzurermResourceGroup.name,
});
export const accountDomain = accountDomainAzurermSpatialAnchorsAccount;
import pulumi
import pulumi_azure as azure
example = azure.mixedreality.get_spatial_anchors_account(name="example",
resource_group_name=example_azurerm_resource_group["name"])
pulumi.export("accountDomain", account_domain_azurerm_spatial_anchors_account)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mixedreality"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mixedreality.LookupSpatialAnchorsAccount(ctx, &mixedreality.LookupSpatialAnchorsAccountArgs{
Name: "example",
ResourceGroupName: exampleAzurermResourceGroup.Name,
}, nil)
if err != nil {
return err
}
ctx.Export("accountDomain", accountDomainAzurermSpatialAnchorsAccount)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.MixedReality.GetSpatialAnchorsAccount.Invoke(new()
{
Name = "example",
ResourceGroupName = exampleAzurermResourceGroup.Name,
});
return new Dictionary<string, object?>
{
["accountDomain"] = accountDomainAzurermSpatialAnchorsAccount,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.mixedreality.MixedrealityFunctions;
import com.pulumi.azure.mixedreality.inputs.GetSpatialAnchorsAccountArgs;
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 example = MixedrealityFunctions.getSpatialAnchorsAccount(GetSpatialAnchorsAccountArgs.builder()
.name("example")
.resourceGroupName(exampleAzurermResourceGroup.name())
.build());
ctx.export("accountDomain", accountDomainAzurermSpatialAnchorsAccount);
}
}
variables:
example:
fn::invoke:
Function: azure:mixedreality:getSpatialAnchorsAccount
Arguments:
name: example
resourceGroupName: ${exampleAzurermResourceGroup.name}
outputs:
accountDomain: ${accountDomainAzurermSpatialAnchorsAccount}
Using getSpatialAnchorsAccount
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 getSpatialAnchorsAccount(args: GetSpatialAnchorsAccountArgs, opts?: InvokeOptions): Promise<GetSpatialAnchorsAccountResult>
function getSpatialAnchorsAccountOutput(args: GetSpatialAnchorsAccountOutputArgs, opts?: InvokeOptions): Output<GetSpatialAnchorsAccountResult>
def get_spatial_anchors_account(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSpatialAnchorsAccountResult
def get_spatial_anchors_account_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSpatialAnchorsAccountResult]
func LookupSpatialAnchorsAccount(ctx *Context, args *LookupSpatialAnchorsAccountArgs, opts ...InvokeOption) (*LookupSpatialAnchorsAccountResult, error)
func LookupSpatialAnchorsAccountOutput(ctx *Context, args *LookupSpatialAnchorsAccountOutputArgs, opts ...InvokeOption) LookupSpatialAnchorsAccountResultOutput
> Note: This function is named LookupSpatialAnchorsAccount
in the Go SDK.
public static class GetSpatialAnchorsAccount
{
public static Task<GetSpatialAnchorsAccountResult> InvokeAsync(GetSpatialAnchorsAccountArgs args, InvokeOptions? opts = null)
public static Output<GetSpatialAnchorsAccountResult> Invoke(GetSpatialAnchorsAccountInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSpatialAnchorsAccountResult> getSpatialAnchorsAccount(GetSpatialAnchorsAccountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:mixedreality/getSpatialAnchorsAccount:getSpatialAnchorsAccount
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- Resource
Group stringName - The name of the resource group in which to create the Spatial Anchors Account.
- Name string
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- Resource
Group stringName - The name of the resource group in which to create the Spatial Anchors Account.
- name String
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- resource
Group StringName - The name of the resource group in which to create the Spatial Anchors Account.
- name string
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- resource
Group stringName - The name of the resource group in which to create the Spatial Anchors Account.
- name str
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- resource_
group_ strname - The name of the resource group in which to create the Spatial Anchors Account.
- name String
- Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
- resource
Group StringName - The name of the resource group in which to create the Spatial Anchors Account.
getSpatialAnchorsAccount Result
The following output properties are available:
- Account
Domain string - The domain of the Spatial Anchors Account.
- Account
Id string - The account ID of the Spatial Anchors Account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Resource
Group stringName - Dictionary<string, string>
- The Tags assigned to this Spatial Anchors Account.
- Account
Domain string - The domain of the Spatial Anchors Account.
- Account
Id string - The account ID of the Spatial Anchors Account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Resource
Group stringName - map[string]string
- The Tags assigned to this Spatial Anchors Account.
- account
Domain String - The domain of the Spatial Anchors Account.
- account
Id String - The account ID of the Spatial Anchors Account.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resource
Group StringName - Map<String,String>
- The Tags assigned to this Spatial Anchors Account.
- account
Domain string - The domain of the Spatial Anchors Account.
- account
Id string - The account ID of the Spatial Anchors Account.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- resource
Group stringName - {[key: string]: string}
- The Tags assigned to this Spatial Anchors Account.
- account_
domain str - The domain of the Spatial Anchors Account.
- account_
id str - The account ID of the Spatial Anchors Account.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- name str
- resource_
group_ strname - Mapping[str, str]
- The Tags assigned to this Spatial Anchors Account.
- account
Domain String - The domain of the Spatial Anchors Account.
- account
Id String - The account ID of the Spatial Anchors Account.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resource
Group StringName - Map<String>
- The Tags assigned to this Spatial Anchors Account.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.