1. Packages
  2. Azure Native
  3. API Docs
  4. integrationspaces
  5. InfrastructureResource
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.0.1 published on Monday, Apr 7, 2025 by Pulumi

azure-native.integrationspaces.InfrastructureResource

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.0.1 published on Monday, Apr 7, 2025 by Pulumi

An infrastructure resource under Space.

Uses Azure REST API version 2023-11-14-preview. In version 2.x of the Azure Native provider, it used API version 2023-11-14-preview.

Example Usage

CreateOrUpdateInfrastructureResource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var infrastructureResource = new AzureNative.IntegrationSpaces.InfrastructureResource("infrastructureResource", new()
    {
        InfrastructureResourceName = "InfrastructureResource1",
        ResourceGroupName = "testrg",
        ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1",
        ResourceType = "Microsoft.ApiManagement/service",
        SpaceName = "Space1",
    });

});
Copy
package main

import (
	integrationspaces "github.com/pulumi/pulumi-azure-native-sdk/integrationspaces/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := integrationspaces.NewInfrastructureResource(ctx, "infrastructureResource", &integrationspaces.InfrastructureResourceArgs{
			InfrastructureResourceName: pulumi.String("InfrastructureResource1"),
			ResourceGroupName:          pulumi.String("testrg"),
			ResourceId:                 pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1"),
			ResourceType:               pulumi.String("Microsoft.ApiManagement/service"),
			SpaceName:                  pulumi.String("Space1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.integrationspaces.InfrastructureResource;
import com.pulumi.azurenative.integrationspaces.InfrastructureResourceArgs;
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 infrastructureResource = new InfrastructureResource("infrastructureResource", InfrastructureResourceArgs.builder()
            .infrastructureResourceName("InfrastructureResource1")
            .resourceGroupName("testrg")
            .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1")
            .resourceType("Microsoft.ApiManagement/service")
            .spaceName("Space1")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const infrastructureResource = new azure_native.integrationspaces.InfrastructureResource("infrastructureResource", {
    infrastructureResourceName: "InfrastructureResource1",
    resourceGroupName: "testrg",
    resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1",
    resourceType: "Microsoft.ApiManagement/service",
    spaceName: "Space1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

infrastructure_resource = azure_native.integrationspaces.InfrastructureResource("infrastructureResource",
    infrastructure_resource_name="InfrastructureResource1",
    resource_group_name="testrg",
    resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1",
    resource_type="Microsoft.ApiManagement/service",
    space_name="Space1")
Copy
resources:
  infrastructureResource:
    type: azure-native:integrationspaces:InfrastructureResource
    properties:
      infrastructureResourceName: InfrastructureResource1
      resourceGroupName: testrg
      resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.ApiManagement/service/APIM1
      resourceType: Microsoft.ApiManagement/service
      spaceName: Space1
Copy

Create InfrastructureResource Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new InfrastructureResource(name: string, args: InfrastructureResourceArgs, opts?: CustomResourceOptions);
@overload
def InfrastructureResource(resource_name: str,
                           args: InfrastructureResourceArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def InfrastructureResource(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           resource_group_name: Optional[str] = None,
                           resource_id: Optional[str] = None,
                           resource_type: Optional[str] = None,
                           space_name: Optional[str] = None,
                           infrastructure_resource_name: Optional[str] = None)
func NewInfrastructureResource(ctx *Context, name string, args InfrastructureResourceArgs, opts ...ResourceOption) (*InfrastructureResource, error)
public InfrastructureResource(string name, InfrastructureResourceArgs args, CustomResourceOptions? opts = null)
public InfrastructureResource(String name, InfrastructureResourceArgs args)
public InfrastructureResource(String name, InfrastructureResourceArgs args, CustomResourceOptions options)
type: azure-native:integrationspaces:InfrastructureResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. InfrastructureResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. InfrastructureResourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. InfrastructureResourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. InfrastructureResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InfrastructureResourceArgs
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 infrastructureResourceResource = new AzureNative.IntegrationSpaces.InfrastructureResource("infrastructureResourceResource", new()
{
    ResourceGroupName = "string",
    ResourceId = "string",
    ResourceType = "string",
    SpaceName = "string",
    InfrastructureResourceName = "string",
});
Copy
example, err := integrationspaces.NewInfrastructureResource(ctx, "infrastructureResourceResource", &integrationspaces.InfrastructureResourceArgs{
	ResourceGroupName:          pulumi.String("string"),
	ResourceId:                 pulumi.String("string"),
	ResourceType:               pulumi.String("string"),
	SpaceName:                  pulumi.String("string"),
	InfrastructureResourceName: pulumi.String("string"),
})
Copy
var infrastructureResourceResource = new InfrastructureResource("infrastructureResourceResource", InfrastructureResourceArgs.builder()
    .resourceGroupName("string")
    .resourceId("string")
    .resourceType("string")
    .spaceName("string")
    .infrastructureResourceName("string")
    .build());
Copy
infrastructure_resource_resource = azure_native.integrationspaces.InfrastructureResource("infrastructureResourceResource",
    resource_group_name="string",
    resource_id="string",
    resource_type="string",
    space_name="string",
    infrastructure_resource_name="string")
Copy
const infrastructureResourceResource = new azure_native.integrationspaces.InfrastructureResource("infrastructureResourceResource", {
    resourceGroupName: "string",
    resourceId: "string",
    resourceType: "string",
    spaceName: "string",
    infrastructureResourceName: "string",
});
Copy
type: azure-native:integrationspaces:InfrastructureResource
properties:
    infrastructureResourceName: string
    resourceGroupName: string
    resourceId: string
    resourceType: string
    spaceName: string
Copy

InfrastructureResource 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 InfrastructureResource resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ResourceId This property is required. string
The id of the infrastructure resource.
ResourceType This property is required. string
The type of the infrastructure resource.
SpaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the space
InfrastructureResourceName Changes to this property will trigger replacement. string
The name of the infrastructure resource in the space.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ResourceId This property is required. string
The id of the infrastructure resource.
ResourceType This property is required. string
The type of the infrastructure resource.
SpaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the space
InfrastructureResourceName Changes to this property will trigger replacement. string
The name of the infrastructure resource in the space.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
resourceId This property is required. String
The id of the infrastructure resource.
resourceType This property is required. String
The type of the infrastructure resource.
spaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the space
infrastructureResourceName Changes to this property will trigger replacement. String
The name of the infrastructure resource in the space.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
resourceId This property is required. string
The id of the infrastructure resource.
resourceType This property is required. string
The type of the infrastructure resource.
spaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the space
infrastructureResourceName Changes to this property will trigger replacement. string
The name of the infrastructure resource in the space.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
resource_id This property is required. str
The id of the infrastructure resource.
resource_type This property is required. str
The type of the infrastructure resource.
space_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the space
infrastructure_resource_name Changes to this property will trigger replacement. str
The name of the infrastructure resource in the space.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
resourceId This property is required. String
The id of the infrastructure resource.
resourceType This property is required. String
The type of the infrastructure resource.
spaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the space
infrastructureResourceName Changes to this property will trigger replacement. String
The name of the infrastructure resource in the space.

Outputs

All input properties are implicitly available as output properties. Additionally, the InfrastructureResource resource produces the following output properties:

AzureApiVersion string
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
ProvisioningState string
The status of the last operation.
SystemData Pulumi.AzureNative.IntegrationSpaces.Outputs.SystemDataResponse
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"
AzureApiVersion string
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
ProvisioningState string
The status of the last operation.
SystemData SystemDataResponse
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"
azureApiVersion String
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
provisioningState String
The status of the last operation.
systemData SystemDataResponse
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"
azureApiVersion string
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
provisioningState string
The status of the last operation.
systemData SystemDataResponse
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_version str
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.
system_data SystemDataResponse
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"
azureApiVersion String
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
provisioningState String
The status of the last operation.
systemData 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

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
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_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
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:integrationspaces:InfrastructureResource InfrastructureResource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/infrastructureResources/{infrastructureResourceName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.0.1 published on Monday, Apr 7, 2025 by Pulumi