1. Packages
  2. Azure Classic
  3. API Docs
  4. mixedreality
  5. getSpatialAnchorsAccount

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.mixedreality.getSpatialAnchorsAccount

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    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/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
    	})
    }
    
    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.
    ResourceGroupName string
    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.
    ResourceGroupName string
    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.
    resourceGroupName String
    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.
    resourceGroupName string
    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_name str
    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.
    resourceGroupName String
    The name of the resource group in which to create the Spatial Anchors Account.

    getSpatialAnchorsAccount Result

    The following output properties are available:

    AccountDomain string
    The domain of the Spatial Anchors Account.
    AccountId string
    The account ID of the Spatial Anchors Account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    ResourceGroupName string
    Tags Dictionary<string, string>
    The Tags assigned to this Spatial Anchors Account.
    AccountDomain string
    The domain of the Spatial Anchors Account.
    AccountId string
    The account ID of the Spatial Anchors Account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    ResourceGroupName string
    Tags map[string]string
    The Tags assigned to this Spatial Anchors Account.
    accountDomain String
    The domain of the Spatial Anchors Account.
    accountId String
    The account ID of the Spatial Anchors Account.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    resourceGroupName String
    tags Map<String,String>
    The Tags assigned to this Spatial Anchors Account.
    accountDomain string
    The domain of the Spatial Anchors Account.
    accountId string
    The account ID of the Spatial Anchors Account.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    name string
    resourceGroupName string
    tags {[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_name str
    tags Mapping[str, str]
    The Tags assigned to this Spatial Anchors Account.
    accountDomain String
    The domain of the Spatial Anchors Account.
    accountId String
    The account ID of the Spatial Anchors Account.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    resourceGroupName String
    tags 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.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi