Static Cidr
Instance of StaticCidr resource. Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2024-01-01-preview. Other available API versions: 2024-01-01-preview, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
StaticCidrs_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var staticCidr = new AzureNative.Network.StaticCidr("staticCidr", new()
{
NetworkManagerName = "TestNetworkManager",
PoolName = "TestPool",
ResourceGroupName = "rg1",
StaticCidrName = "TestStaticCidr",
});
});
Content copied to clipboard
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewStaticCidr(ctx, "staticCidr", &network.StaticCidrArgs{
NetworkManagerName: pulumi.String("TestNetworkManager"),
PoolName: pulumi.String("TestPool"),
ResourceGroupName: pulumi.String("rg1"),
StaticCidrName: pulumi.String("TestStaticCidr"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.StaticCidr;
import com.pulumi.azurenative.network.StaticCidrArgs;
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 staticCidr = new StaticCidr("staticCidr", StaticCidrArgs.builder()
.networkManagerName("TestNetworkManager")
.poolName("TestPool")
.resourceGroupName("rg1")
.staticCidrName("TestStaticCidr")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:StaticCidr OnPremResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
Properties of static CIDR resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.