azure-native.azurestack.Registration
Explore with Pulumi AI
Registration information. Azure REST API version: 2022-06-01. Prior API version in Azure Native 1.x: 2017-06-01.
Other available API versions: 2020-06-01-preview.
Example Usage
Create or update an Azure Stack registration.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var registration = new AzureNative.AzureStack.Registration("registration", new()
{
Location = AzureNative.AzureStack.Location.@Global,
RegistrationName = "testregistration",
RegistrationToken = "EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9",
ResourceGroup = "azurestack",
});
});
package main
import (
azurestack "github.com/pulumi/pulumi-azure-native-sdk/azurestack/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestack.NewRegistration(ctx, "registration", &azurestack.RegistrationArgs{
Location: pulumi.String(azurestack.LocationGlobal),
RegistrationName: pulumi.String("testregistration"),
RegistrationToken: pulumi.String("EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9"),
ResourceGroup: pulumi.String("azurestack"),
})
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.azurestack.Registration;
import com.pulumi.azurenative.azurestack.RegistrationArgs;
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 registration = new Registration("registration", RegistrationArgs.builder()
.location("global")
.registrationName("testregistration")
.registrationToken("EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9")
.resourceGroup("azurestack")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
registration = azure_native.azurestack.Registration("registration",
location=azure_native.azurestack.Location.GLOBAL_,
registration_name="testregistration",
registration_token="EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9",
resource_group="azurestack")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const registration = new azure_native.azurestack.Registration("registration", {
location: azure_native.azurestack.Location.Global,
registrationName: "testregistration",
registrationToken: "EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9",
resourceGroup: "azurestack",
});
resources:
registration:
type: azure-native:azurestack:Registration
properties:
location: global
registrationName: testregistration
registrationToken: EyjIAWXSAw5nTw9KZWWiOiJeZxZlbg9wBwvUdCiSIM9iaMVjdeLkijoinwIzyJa2Ytgtowm2yy00OdG4lTlLyJmtztHjZGfJZTC0NZK1iIWiY2XvdWRJzCi6iJy5nDy0oDk1LTNHmWeTnDUwyS05oDI0LTrINzYwoGq5mjAzziIsim1HCmtldHBsYwnLu3LuZGljYXrpB25FBmfIbgVkIJp0CNvLLCJOYXJkd2FYzuLUZM8iOlt7IM51bunvcMVZiJoYlCjcaw9ZiJPBIjNkzDJHmda3yte5ndqZMdq4YmZkZmi5oDM3OTY3ZwNMIL0SIM5PyYI6WyJLZTy0ztJJMwZKy2m0OWNLODDLMwm2zTm0ymzKyjmWySisiJA3njlHmtdlY2q4NjRjnwFIZtC1YZi5ZGyZodM3Y2vjIl0siMnwDsi6wyi2oDUZoTbiY2RhNDa0ymrKoWe4YtK5otblzWrJzGyzNCISIjmYnzC4M2vmnZdIoDRKM2i5ytfkmJlhnDc1zdhLzWm1il0sim5HBwuiOijIqzF1MTvhmDIXmIIsimrpc2SiolsioWNlZjVhnZM1otQ0nDu3NmjlN2M3zmfjzmyZMTJhZtiiLcjLZjLmmZJhmWVhytG0NTu0OTqZNWu1Mda0MZbIYtfjyijdLCj1DWlKijoinwM5Mwu3NjytMju5Os00oTIwlWi0OdmTnGzHotiWm2RjyTCxIIwiBWvTb3J5ijPbijAYZDA3M2fjNzu0YTRMZTfhodkxzDnkogY5ZtAWzdyXIiwINZcWzThLnDQ4otrJndAzZGI5MGzlYtY1ZJA5ZdfiNMQIXX1DlcJpC3n1zxiiOijZb21lB25LIIWIdmVyC2LVbiI6IJeuMcJ9
resourceGroup: azurestack
Create Registration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Registration(name: string, args: RegistrationArgs, opts?: CustomResourceOptions);
@overload
def Registration(resource_name: str,
args: RegistrationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Registration(resource_name: str,
opts: Optional[ResourceOptions] = None,
registration_token: Optional[str] = None,
resource_group: Optional[str] = None,
location: Optional[Union[str, Location]] = None,
registration_name: Optional[str] = None)
func NewRegistration(ctx *Context, name string, args RegistrationArgs, opts ...ResourceOption) (*Registration, error)
public Registration(string name, RegistrationArgs args, CustomResourceOptions? opts = null)
public Registration(String name, RegistrationArgs args)
public Registration(String name, RegistrationArgs args, CustomResourceOptions options)
type: azure-native:azurestack:Registration
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 RegistrationArgs
- 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 RegistrationArgs
- 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 RegistrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegistrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RegistrationArgs
- 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 registrationResource = new AzureNative.AzureStack.Registration("registrationResource", new()
{
RegistrationToken = "string",
ResourceGroup = "string",
Location = "string",
RegistrationName = "string",
});
example, err := azurestack.NewRegistration(ctx, "registrationResource", &azurestack.RegistrationArgs{
RegistrationToken: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
Location: pulumi.String("string"),
RegistrationName: pulumi.String("string"),
})
var registrationResource = new Registration("registrationResource", RegistrationArgs.builder()
.registrationToken("string")
.resourceGroup("string")
.location("string")
.registrationName("string")
.build());
registration_resource = azure_native.azurestack.Registration("registrationResource",
registration_token="string",
resource_group="string",
location="string",
registration_name="string")
const registrationResource = new azure_native.azurestack.Registration("registrationResource", {
registrationToken: "string",
resourceGroup: "string",
location: "string",
registrationName: "string",
});
type: azure-native:azurestack:Registration
properties:
location: string
registrationName: string
registrationToken: string
resourceGroup: string
Registration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Registration resource accepts the following input properties:
- Registration
Token string - The token identifying registered Azure Stack
- Resource
Group string - Name of the resource group.
- Location
string | Pulumi.
Azure Native. Azure Stack. Location - Location of the resource.
- Registration
Name string - Name of the Azure Stack registration.
- Registration
Token string - The token identifying registered Azure Stack
- Resource
Group string - Name of the resource group.
- Location string | Location
- Location of the resource.
- Registration
Name string - Name of the Azure Stack registration.
- registration
Token String - The token identifying registered Azure Stack
- resource
Group String - Name of the resource group.
- location String | Location
- Location of the resource.
- registration
Name String - Name of the Azure Stack registration.
- registration
Token string - The token identifying registered Azure Stack
- resource
Group string - Name of the resource group.
- location string | Location
- Location of the resource.
- registration
Name string - Name of the Azure Stack registration.
- registration_
token str - The token identifying registered Azure Stack
- resource_
group str - Name of the resource group.
- location str | Location
- Location of the resource.
- registration_
name str - Name of the Azure Stack registration.
- registration
Token String - The token identifying registered Azure Stack
- resource
Group String - Name of the resource group.
- location String | "global"
- Location of the resource.
- registration
Name String - Name of the Azure Stack registration.
Outputs
All input properties are implicitly available as output properties. Additionally, the Registration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the resource.
- Type string
- Type of Resource.
- Billing
Model string - Specifies the billing mode for the Azure Stack registration.
- Cloud
Id string - The identifier of the registered Azure Stack.
- Etag string
- The entity tag used for optimistic concurrency when modifying the resource.
- Object
Id string - The object identifier associated with the Azure Stack connecting to Azure.
- Dictionary<string, string>
- Custom tags for the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the resource.
- Type string
- Type of Resource.
- Billing
Model string - Specifies the billing mode for the Azure Stack registration.
- Cloud
Id string - The identifier of the registered Azure Stack.
- Etag string
- The entity tag used for optimistic concurrency when modifying the resource.
- Object
Id string - The object identifier associated with the Azure Stack connecting to Azure.
- map[string]string
- Custom tags for the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the resource.
- type String
- Type of Resource.
- billing
Model String - Specifies the billing mode for the Azure Stack registration.
- cloud
Id String - The identifier of the registered Azure Stack.
- etag String
- The entity tag used for optimistic concurrency when modifying the resource.
- object
Id String - The object identifier associated with the Azure Stack connecting to Azure.
- Map<String,String>
- Custom tags for the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the resource.
- type string
- Type of Resource.
- billing
Model string - Specifies the billing mode for the Azure Stack registration.
- cloud
Id string - The identifier of the registered Azure Stack.
- etag string
- The entity tag used for optimistic concurrency when modifying the resource.
- object
Id string - The object identifier associated with the Azure Stack connecting to Azure.
- {[key: string]: string}
- Custom tags for the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the resource.
- type str
- Type of Resource.
- billing_
model str - Specifies the billing mode for the Azure Stack registration.
- cloud_
id str - The identifier of the registered Azure Stack.
- etag str
- The entity tag used for optimistic concurrency when modifying the resource.
- object_
id str - The object identifier associated with the Azure Stack connecting to Azure.
- Mapping[str, str]
- Custom tags for the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the resource.
- type String
- Type of Resource.
- billing
Model String - Specifies the billing mode for the Azure Stack registration.
- cloud
Id String - The identifier of the registered Azure Stack.
- etag String
- The entity tag used for optimistic concurrency when modifying the resource.
- object
Id String - The object identifier associated with the Azure Stack connecting to Azure.
- Map<String>
- Custom tags for the resource.
Supporting Types
Location, LocationArgs
- @Global
- global
- Location
Global - global
- Global
- global
- Global
- global
- GLOBAL_
- global
- "global"
- global
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azurestack:Registration testregistration /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0