azure-native.mission.TransitHub
Explore with Pulumi AI
TransitHub Model Resource
Uses Azure REST API version 2025-05-01-preview.
Other available API versions: 2024-06-01-preview, 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native mission [ApiVersion]
. See the version guide for details.
Example Usage
TransitHub_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var transitHub = new AzureNative.Mission.TransitHub("transitHub", new()
{
CommunityName = "TestMyCommunity",
Location = "westcentralus",
ResourceGroupName = "rgopenapi",
State = AzureNative.Mission.TransitHubState.PendingApproval,
Tags =
{
{ "Tag1", "Value1" },
},
TransitHubName = "TestThName",
TransitOption = new AzureNative.Mission.Inputs.TransitOptionArgs
{
Params = new AzureNative.Mission.Inputs.TransitOptionParamsArgs
{
ScaleUnits = 1,
},
Type = AzureNative.Mission.TransitOptionType.ExpressRoute,
},
});
});
package main
import (
mission "github.com/pulumi/pulumi-azure-native-sdk/mission/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mission.NewTransitHub(ctx, "transitHub", &mission.TransitHubArgs{
CommunityName: pulumi.String("TestMyCommunity"),
Location: pulumi.String("westcentralus"),
ResourceGroupName: pulumi.String("rgopenapi"),
State: pulumi.String(mission.TransitHubStatePendingApproval),
Tags: pulumi.StringMap{
"Tag1": pulumi.String("Value1"),
},
TransitHubName: pulumi.String("TestThName"),
TransitOption: &mission.TransitOptionArgs{
Params: &mission.TransitOptionParamsArgs{
ScaleUnits: pulumi.Float64(1),
},
Type: pulumi.String(mission.TransitOptionTypeExpressRoute),
},
})
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.mission.TransitHub;
import com.pulumi.azurenative.mission.TransitHubArgs;
import com.pulumi.azurenative.mission.inputs.TransitOptionArgs;
import com.pulumi.azurenative.mission.inputs.TransitOptionParamsArgs;
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 transitHub = new TransitHub("transitHub", TransitHubArgs.builder()
.communityName("TestMyCommunity")
.location("westcentralus")
.resourceGroupName("rgopenapi")
.state("PendingApproval")
.tags(Map.of("Tag1", "Value1"))
.transitHubName("TestThName")
.transitOption(TransitOptionArgs.builder()
.params(TransitOptionParamsArgs.builder()
.scaleUnits(1.0)
.build())
.type("ExpressRoute")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const transitHub = new azure_native.mission.TransitHub("transitHub", {
communityName: "TestMyCommunity",
location: "westcentralus",
resourceGroupName: "rgopenapi",
state: azure_native.mission.TransitHubState.PendingApproval,
tags: {
Tag1: "Value1",
},
transitHubName: "TestThName",
transitOption: {
params: {
scaleUnits: 1,
},
type: azure_native.mission.TransitOptionType.ExpressRoute,
},
});
import pulumi
import pulumi_azure_native as azure_native
transit_hub = azure_native.mission.TransitHub("transitHub",
community_name="TestMyCommunity",
location="westcentralus",
resource_group_name="rgopenapi",
state=azure_native.mission.TransitHubState.PENDING_APPROVAL,
tags={
"Tag1": "Value1",
},
transit_hub_name="TestThName",
transit_option={
"params": {
"scale_units": 1,
},
"type": azure_native.mission.TransitOptionType.EXPRESS_ROUTE,
})
resources:
transitHub:
type: azure-native:mission:TransitHub
properties:
communityName: TestMyCommunity
location: westcentralus
resourceGroupName: rgopenapi
state: PendingApproval
tags:
Tag1: Value1
transitHubName: TestThName
transitOption:
params:
scaleUnits: 1
type: ExpressRoute
Create TransitHub Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TransitHub(name: string, args: TransitHubArgs, opts?: CustomResourceOptions);
@overload
def TransitHub(resource_name: str,
args: TransitHubArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TransitHub(resource_name: str,
opts: Optional[ResourceOptions] = None,
community_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
state: Optional[Union[str, TransitHubState]] = None,
tags: Optional[Mapping[str, str]] = None,
transit_hub_name: Optional[str] = None,
transit_option: Optional[TransitOptionArgs] = None)
func NewTransitHub(ctx *Context, name string, args TransitHubArgs, opts ...ResourceOption) (*TransitHub, error)
public TransitHub(string name, TransitHubArgs args, CustomResourceOptions? opts = null)
public TransitHub(String name, TransitHubArgs args)
public TransitHub(String name, TransitHubArgs args, CustomResourceOptions options)
type: azure-native:mission:TransitHub
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 TransitHubArgs
- 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 TransitHubArgs
- 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 TransitHubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitHubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TransitHubArgs
- 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 transitHubResource = new AzureNative.Mission.TransitHub("transitHubResource", new()
{
CommunityName = "string",
ResourceGroupName = "string",
Location = "string",
State = "string",
Tags =
{
{ "string", "string" },
},
TransitHubName = "string",
TransitOption = new AzureNative.Mission.Inputs.TransitOptionArgs
{
Params = new AzureNative.Mission.Inputs.TransitOptionParamsArgs
{
RemoteVirtualNetworkId = "string",
ScaleUnits = 0,
},
Type = "string",
},
});
example, err := mission.NewTransitHub(ctx, "transitHubResource", &mission.TransitHubArgs{
CommunityName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
State: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TransitHubName: pulumi.String("string"),
TransitOption: &mission.TransitOptionArgs{
Params: &mission.TransitOptionParamsArgs{
RemoteVirtualNetworkId: pulumi.String("string"),
ScaleUnits: pulumi.Float64(0),
},
Type: pulumi.String("string"),
},
})
var transitHubResource = new TransitHub("transitHubResource", TransitHubArgs.builder()
.communityName("string")
.resourceGroupName("string")
.location("string")
.state("string")
.tags(Map.of("string", "string"))
.transitHubName("string")
.transitOption(TransitOptionArgs.builder()
.params(TransitOptionParamsArgs.builder()
.remoteVirtualNetworkId("string")
.scaleUnits(0.0)
.build())
.type("string")
.build())
.build());
transit_hub_resource = azure_native.mission.TransitHub("transitHubResource",
community_name="string",
resource_group_name="string",
location="string",
state="string",
tags={
"string": "string",
},
transit_hub_name="string",
transit_option={
"params": {
"remote_virtual_network_id": "string",
"scale_units": 0,
},
"type": "string",
})
const transitHubResource = new azure_native.mission.TransitHub("transitHubResource", {
communityName: "string",
resourceGroupName: "string",
location: "string",
state: "string",
tags: {
string: "string",
},
transitHubName: "string",
transitOption: {
params: {
remoteVirtualNetworkId: "string",
scaleUnits: 0,
},
type: "string",
},
});
type: azure-native:mission:TransitHub
properties:
communityName: string
location: string
resourceGroupName: string
state: string
tags:
string: string
transitHubName: string
transitOption:
params:
remoteVirtualNetworkId: string
scaleUnits: 0
type: string
TransitHub 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 TransitHub resource accepts the following input properties:
- Community
Name string - The name of the communityResource Resource
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- State
string | Pulumi.
Azure Native. Mission. Transit Hub State - The state of the transitHub.
- Dictionary<string, string>
- Resource tags.
- Transit
Hub stringName - The name of the TransitHub Resource
- Transit
Option Pulumi.Azure Native. Mission. Inputs. Transit Option - The TransitOption of the transitHub.
- Community
Name string - The name of the communityResource Resource
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- State
string | Transit
Hub State Enum - The state of the transitHub.
- map[string]string
- Resource tags.
- Transit
Hub stringName - The name of the TransitHub Resource
- Transit
Option TransitOption Args - The TransitOption of the transitHub.
- community
Name String - The name of the communityResource Resource
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- state
String | Transit
Hub State - The state of the transitHub.
- Map<String,String>
- Resource tags.
- transit
Hub StringName - The name of the TransitHub Resource
- transit
Option TransitOption - The TransitOption of the transitHub.
- community
Name string - The name of the communityResource Resource
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- state
string | Transit
Hub State - The state of the transitHub.
- {[key: string]: string}
- Resource tags.
- transit
Hub stringName - The name of the TransitHub Resource
- transit
Option TransitOption - The TransitOption of the transitHub.
- community_
name str - The name of the communityResource Resource
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- location str
- The geo-location where the resource lives
- state
str | Transit
Hub State - The state of the transitHub.
- Mapping[str, str]
- Resource tags.
- transit_
hub_ strname - The name of the TransitHub Resource
- transit_
option TransitOption Args - The TransitOption of the transitHub.
- community
Name String - The name of the communityResource Resource
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- state
String | "Pending
Approval" | "Approved" | "Pending Update" | "Active" | "Failed" - The state of the transitHub.
- Map<String>
- Resource tags.
- transit
Hub StringName - The name of the TransitHub Resource
- transit
Option Property Map - The TransitOption of the transitHub.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransitHub 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 - The status of the last operation.
- Resource
Collection List<string> - List of resource ids modified by transitHubs.
- System
Data Pulumi.Azure Native. Mission. 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 - The status of the last operation.
- Resource
Collection []string - List of resource ids modified by transitHubs.
- 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 - The status of the last operation.
- resource
Collection List<String> - List of resource ids modified by transitHubs.
- 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 - The status of the last operation.
- resource
Collection string[] - List of resource ids modified by transitHubs.
- 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 - The status of the last operation.
- resource_
collection Sequence[str] - List of resource ids modified by transitHubs.
- 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 - The status of the last operation.
- resource
Collection List<String> - List of resource ids modified by transitHubs.
- 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.
TransitHubState, TransitHubStateArgs
- Pending
Approval - PendingApprovalTransitHubState Type PendingApproval
- Approved
- ApprovedTransitHubState Type Approved
- Pending
Update - PendingUpdateTransitHubState Type PendingUpdate
- Active
- ActiveTransitHubState Type Active
- Failed
- FailedTransitHubState Type Failed
- Transit
Hub State Pending Approval - PendingApprovalTransitHubState Type PendingApproval
- Transit
Hub State Approved - ApprovedTransitHubState Type Approved
- Transit
Hub State Pending Update - PendingUpdateTransitHubState Type PendingUpdate
- Transit
Hub State Active - ActiveTransitHubState Type Active
- Transit
Hub State Failed - FailedTransitHubState Type Failed
- Pending
Approval - PendingApprovalTransitHubState Type PendingApproval
- Approved
- ApprovedTransitHubState Type Approved
- Pending
Update - PendingUpdateTransitHubState Type PendingUpdate
- Active
- ActiveTransitHubState Type Active
- Failed
- FailedTransitHubState Type Failed
- Pending
Approval - PendingApprovalTransitHubState Type PendingApproval
- Approved
- ApprovedTransitHubState Type Approved
- Pending
Update - PendingUpdateTransitHubState Type PendingUpdate
- Active
- ActiveTransitHubState Type Active
- Failed
- FailedTransitHubState Type Failed
- PENDING_APPROVAL
- PendingApprovalTransitHubState Type PendingApproval
- APPROVED
- ApprovedTransitHubState Type Approved
- PENDING_UPDATE
- PendingUpdateTransitHubState Type PendingUpdate
- ACTIVE
- ActiveTransitHubState Type Active
- FAILED
- FailedTransitHubState Type Failed
- "Pending
Approval" - PendingApprovalTransitHubState Type PendingApproval
- "Approved"
- ApprovedTransitHubState Type Approved
- "Pending
Update" - PendingUpdateTransitHubState Type PendingUpdate
- "Active"
- ActiveTransitHubState Type Active
- "Failed"
- FailedTransitHubState Type Failed
TransitOption, TransitOptionArgs
- Params
Pulumi.
Azure Native. Mission. Inputs. Transit Option Params - Transit Option Params
- Type
string | Pulumi.
Azure Native. Mission. Transit Option Type - Transit Option Type.
- Params
Transit
Option Params - Transit Option Params
- Type
string | Transit
Option Type - Transit Option Type.
- params
Transit
Option Params - Transit Option Params
- type
String | Transit
Option Type - Transit Option Type.
- params
Transit
Option Params - Transit Option Params
- type
string | Transit
Option Type - Transit Option Type.
- params
Transit
Option Params - Transit Option Params
- type
str | Transit
Option Type - Transit Option Type.
- params Property Map
- Transit Option Params
- type
String | "Express
Route" | "Gateway" | "Peering" - Transit Option Type.
TransitOptionParams, TransitOptionParamsArgs
- Remote
Virtual stringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- Scale
Units double - Transit Option Params scaleUnits.
- Remote
Virtual stringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- Scale
Units float64 - Transit Option Params scaleUnits.
- remote
Virtual StringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- scale
Units Double - Transit Option Params scaleUnits.
- remote
Virtual stringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- scale
Units number - Transit Option Params scaleUnits.
- remote_
virtual_ strnetwork_ id - Transit Option Params remoteVirtualNetworkId.
- scale_
units float - Transit Option Params scaleUnits.
- remote
Virtual StringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- scale
Units Number - Transit Option Params scaleUnits.
TransitOptionParamsResponse, TransitOptionParamsResponseArgs
- Remote
Virtual stringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- Scale
Units double - Transit Option Params scaleUnits.
- Remote
Virtual stringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- Scale
Units float64 - Transit Option Params scaleUnits.
- remote
Virtual StringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- scale
Units Double - Transit Option Params scaleUnits.
- remote
Virtual stringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- scale
Units number - Transit Option Params scaleUnits.
- remote_
virtual_ strnetwork_ id - Transit Option Params remoteVirtualNetworkId.
- scale_
units float - Transit Option Params scaleUnits.
- remote
Virtual StringNetwork Id - Transit Option Params remoteVirtualNetworkId.
- scale
Units Number - Transit Option Params scaleUnits.
TransitOptionResponse, TransitOptionResponseArgs
- Params
Pulumi.
Azure Native. Mission. Inputs. Transit Option Params Response - Transit Option Params
- Type string
- Transit Option Type.
- Params
Transit
Option Params Response - Transit Option Params
- Type string
- Transit Option Type.
- params
Transit
Option Params Response - Transit Option Params
- type String
- Transit Option Type.
- params
Transit
Option Params Response - Transit Option Params
- type string
- Transit Option Type.
- params
Transit
Option Params Response - Transit Option Params
- type str
- Transit Option Type.
- params Property Map
- Transit Option Params
- type String
- Transit Option Type.
TransitOptionType, TransitOptionTypeArgs
- Express
Route - ExpressRouteTransitOptionType ExpressRoute
- Gateway
- GatewayTransitOptionType Gateway
- Peering
- PeeringTransitOptionType Peering
- Transit
Option Type Express Route - ExpressRouteTransitOptionType ExpressRoute
- Transit
Option Type Gateway - GatewayTransitOptionType Gateway
- Transit
Option Type Peering - PeeringTransitOptionType Peering
- Express
Route - ExpressRouteTransitOptionType ExpressRoute
- Gateway
- GatewayTransitOptionType Gateway
- Peering
- PeeringTransitOptionType Peering
- Express
Route - ExpressRouteTransitOptionType ExpressRoute
- Gateway
- GatewayTransitOptionType Gateway
- Peering
- PeeringTransitOptionType Peering
- EXPRESS_ROUTE
- ExpressRouteTransitOptionType ExpressRoute
- GATEWAY
- GatewayTransitOptionType Gateway
- PEERING
- PeeringTransitOptionType Peering
- "Express
Route" - ExpressRouteTransitOptionType ExpressRoute
- "Gateway"
- GatewayTransitOptionType Gateway
- "Peering"
- PeeringTransitOptionType Peering
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:mission:TransitHub TestThName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/transitHubs/{transitHubName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0