get Spatial Anchors Account
suspend fun getSpatialAnchorsAccount(argument: GetSpatialAnchorsAccountPlainArgs): GetSpatialAnchorsAccountResult
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;
Content copied to clipboard
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)
Content copied to clipboard
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,
};
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/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
})
}
Content copied to clipboard
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);
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
Function: azure:mixedreality:getSpatialAnchorsAccount
Arguments:
name: example
resourceGroupName: ${exampleAzurermResourceGroup.name}
outputs:
accountDomain: ${accountDomainAzurermSpatialAnchorsAccount}
Content copied to clipboard
Return
A collection of values returned by getSpatialAnchorsAccount.
Parameters
argument
A collection of arguments for invoking getSpatialAnchorsAccount.
suspend fun getSpatialAnchorsAccount(name: String, resourceGroupName: String): GetSpatialAnchorsAccountResult
Return
A collection of values returned by getSpatialAnchorsAccount.
Parameters
name
Specifies the name of the Spatial Anchors Account. Changing this forces a new resource to be created. Must be globally unique.
resource Group Name
The name of the resource group in which to create the Spatial Anchors Account.
See also
suspend fun getSpatialAnchorsAccount(argument: suspend GetSpatialAnchorsAccountPlainArgsBuilder.() -> Unit): GetSpatialAnchorsAccountResult
Return
A collection of values returned by getSpatialAnchorsAccount.
Parameters
argument
Builder for com.pulumi.azure.mixedreality.kotlin.inputs.GetSpatialAnchorsAccountPlainArgs.