azure-native.cosmosdb.FleetspaceAccount
Explore with Pulumi AI
An Azure Cosmos DB Fleetspace Account
Uses Azure REST API version 2025-05-01-preview.
Example Usage
CosmosDB FleetspaceAccount Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var fleetspaceAccount = new AzureNative.CosmosDB.FleetspaceAccount("fleetspaceAccount", new()
{
AccountLocation = "West US",
AccountResourceIdentifier = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DocumentDB/resourceGroup/rg1/databaseAccounts/db1",
FleetName = "fleet1",
FleetspaceAccountName = "db1",
FleetspaceName = "fleetspace1",
ResourceGroupName = "rg1",
});
});
package main
import (
cosmosdb "github.com/pulumi/pulumi-azure-native-sdk/cosmosdb/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cosmosdb.NewFleetspaceAccount(ctx, "fleetspaceAccount", &cosmosdb.FleetspaceAccountArgs{
AccountLocation: pulumi.String("West US"),
AccountResourceIdentifier: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DocumentDB/resourceGroup/rg1/databaseAccounts/db1"),
FleetName: pulumi.String("fleet1"),
FleetspaceAccountName: pulumi.String("db1"),
FleetspaceName: pulumi.String("fleetspace1"),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cosmosdb.FleetspaceAccount;
import com.pulumi.azurenative.cosmosdb.FleetspaceAccountArgs;
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) {
var fleetspaceAccount = new FleetspaceAccount("fleetspaceAccount", FleetspaceAccountArgs.builder()
.accountLocation("West US")
.accountResourceIdentifier("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DocumentDB/resourceGroup/rg1/databaseAccounts/db1")
.fleetName("fleet1")
.fleetspaceAccountName("db1")
.fleetspaceName("fleetspace1")
.resourceGroupName("rg1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const fleetspaceAccount = new azure_native.cosmosdb.FleetspaceAccount("fleetspaceAccount", {
accountLocation: "West US",
accountResourceIdentifier: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DocumentDB/resourceGroup/rg1/databaseAccounts/db1",
fleetName: "fleet1",
fleetspaceAccountName: "db1",
fleetspaceName: "fleetspace1",
resourceGroupName: "rg1",
});
import pulumi
import pulumi_azure_native as azure_native
fleetspace_account = azure_native.cosmosdb.FleetspaceAccount("fleetspaceAccount",
account_location="West US",
account_resource_identifier="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DocumentDB/resourceGroup/rg1/databaseAccounts/db1",
fleet_name="fleet1",
fleetspace_account_name="db1",
fleetspace_name="fleetspace1",
resource_group_name="rg1")
resources:
fleetspaceAccount:
type: azure-native:cosmosdb:FleetspaceAccount
properties:
accountLocation: West US
accountResourceIdentifier: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DocumentDB/resourceGroup/rg1/databaseAccounts/db1
fleetName: fleet1
fleetspaceAccountName: db1
fleetspaceName: fleetspace1
resourceGroupName: rg1
Create FleetspaceAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FleetspaceAccount(name: string, args: FleetspaceAccountArgs, opts?: CustomResourceOptions);
@overload
def FleetspaceAccount(resource_name: str,
args: FleetspaceAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FleetspaceAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
fleet_name: Optional[str] = None,
fleetspace_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
account_location: Optional[str] = None,
account_resource_identifier: Optional[str] = None,
fleetspace_account_name: Optional[str] = None)
func NewFleetspaceAccount(ctx *Context, name string, args FleetspaceAccountArgs, opts ...ResourceOption) (*FleetspaceAccount, error)
public FleetspaceAccount(string name, FleetspaceAccountArgs args, CustomResourceOptions? opts = null)
public FleetspaceAccount(String name, FleetspaceAccountArgs args)
public FleetspaceAccount(String name, FleetspaceAccountArgs args, CustomResourceOptions options)
type: azure-native:cosmosdb:FleetspaceAccount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FleetspaceAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FleetspaceAccountArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FleetspaceAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetspaceAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FleetspaceAccountArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var fleetspaceAccountResource = new AzureNative.CosmosDB.FleetspaceAccount("fleetspaceAccountResource", new()
{
FleetName = "string",
FleetspaceName = "string",
ResourceGroupName = "string",
AccountLocation = "string",
AccountResourceIdentifier = "string",
FleetspaceAccountName = "string",
});
example, err := cosmosdb.NewFleetspaceAccount(ctx, "fleetspaceAccountResource", &cosmosdb.FleetspaceAccountArgs{
FleetName: pulumi.String("string"),
FleetspaceName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
AccountLocation: pulumi.String("string"),
AccountResourceIdentifier: pulumi.String("string"),
FleetspaceAccountName: pulumi.String("string"),
})
var fleetspaceAccountResource = new FleetspaceAccount("fleetspaceAccountResource", FleetspaceAccountArgs.builder()
.fleetName("string")
.fleetspaceName("string")
.resourceGroupName("string")
.accountLocation("string")
.accountResourceIdentifier("string")
.fleetspaceAccountName("string")
.build());
fleetspace_account_resource = azure_native.cosmosdb.FleetspaceAccount("fleetspaceAccountResource",
fleet_name="string",
fleetspace_name="string",
resource_group_name="string",
account_location="string",
account_resource_identifier="string",
fleetspace_account_name="string")
const fleetspaceAccountResource = new azure_native.cosmosdb.FleetspaceAccount("fleetspaceAccountResource", {
fleetName: "string",
fleetspaceName: "string",
resourceGroupName: "string",
accountLocation: "string",
accountResourceIdentifier: "string",
fleetspaceAccountName: "string",
});
type: azure-native:cosmosdb:FleetspaceAccount
properties:
accountLocation: string
accountResourceIdentifier: string
fleetName: string
fleetspaceAccountName: string
fleetspaceName: string
resourceGroupName: string
FleetspaceAccount Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FleetspaceAccount resource accepts the following input properties:
- Fleet
Name string - Cosmos DB fleet name. Needs to be unique under a subscription.
- Fleetspace
Name string - Cosmos DB fleetspace name. Needs to be unique under a fleet.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Account
Location string - The location of global database account in the Fleetspace Account.
- Account
Resource stringIdentifier - The resource identifier of global database account in the Fleetspace Account.
- Fleetspace
Account stringName - Cosmos DB fleetspace account name.
- Fleet
Name string - Cosmos DB fleet name. Needs to be unique under a subscription.
- Fleetspace
Name string - Cosmos DB fleetspace name. Needs to be unique under a fleet.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Account
Location string - The location of global database account in the Fleetspace Account.
- Account
Resource stringIdentifier - The resource identifier of global database account in the Fleetspace Account.
- Fleetspace
Account stringName - Cosmos DB fleetspace account name.
- fleet
Name String - Cosmos DB fleet name. Needs to be unique under a subscription.
- fleetspace
Name String - Cosmos DB fleetspace name. Needs to be unique under a fleet.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- account
Location String - The location of global database account in the Fleetspace Account.
- account
Resource StringIdentifier - The resource identifier of global database account in the Fleetspace Account.
- fleetspace
Account StringName - Cosmos DB fleetspace account name.
- fleet
Name string - Cosmos DB fleet name. Needs to be unique under a subscription.
- fleetspace
Name string - Cosmos DB fleetspace name. Needs to be unique under a fleet.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- account
Location string - The location of global database account in the Fleetspace Account.
- account
Resource stringIdentifier - The resource identifier of global database account in the Fleetspace Account.
- fleetspace
Account stringName - Cosmos DB fleetspace account name.
- fleet_
name str - Cosmos DB fleet name. Needs to be unique under a subscription.
- fleetspace_
name str - Cosmos DB fleetspace name. Needs to be unique under a fleet.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- account_
location str - The location of global database account in the Fleetspace Account.
- account_
resource_ stridentifier - The resource identifier of global database account in the Fleetspace Account.
- fleetspace_
account_ strname - Cosmos DB fleetspace account name.
- fleet
Name String - Cosmos DB fleet name. Needs to be unique under a subscription.
- fleetspace
Name String - Cosmos DB fleetspace name. Needs to be unique under a fleet.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- account
Location String - The location of global database account in the Fleetspace Account.
- account
Resource StringIdentifier - The resource identifier of global database account in the Fleetspace Account.
- fleetspace
Account StringName - Cosmos DB fleetspace account name.
Outputs
All input properties are implicitly available as output properties. Additionally, the FleetspaceAccount resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - A provisioning state of the Fleetspace Account.
- System
Data Pulumi.Azure Native. Cosmos DB. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - A provisioning state of the Fleetspace Account.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - A provisioning state of the Fleetspace Account.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - A provisioning state of the Fleetspace Account.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - A provisioning state of the Fleetspace Account.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - A provisioning state of the Fleetspace Account.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cosmosdb:FleetspaceAccount db1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/fleets/{fleetName}/fleetspaces/{fleetspaceName}/fleetspaceAccounts/{fleetspaceAccountName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0