ibm.IsInstanceClusterNetworkAttachment
Explore with Pulumi AI
Create, update, and delete InstanceClusterNetworkAttachments with this resource. About cluster networks
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const isInstanceStopBefore = new ibm.IsInstanceAction("isInstanceStopBefore", {
action: "stop",
instance: ibm_is_instance.is_instance.id,
});
const isInstanceClusterNetworkAttachmentInstance = new ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance", {
instanceId: ibm_is_instance.is_instance.id,
before: {
id: ibm_is_instance.is_instance.cluster_network_attachments[0].id,
},
clusterNetworkInterface: {
name: "my-cluster-network-interface",
subnet: {
id: ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id,
},
},
}, {
dependsOn: [isInstanceStopBefore],
});
const isInstanceClusterNetworkAttachmentInstance10 = new ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance10", {
instanceId: ibm_is_instance.is_instance.id,
before: {
id: isInstanceClusterNetworkAttachmentInstance.instanceClusterNetworkAttachmentId,
},
clusterNetworkInterface: {
name: "my-cluster-network-interface-10",
subnet: {
id: ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id,
},
},
}, {
dependsOn: [isInstanceStopBefore],
});
const isInstanceClusterNetworkAttachmentInstance11 = new ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance11", {
instanceId: ibm_is_instance.is_instance.id,
before: {
id: isInstanceClusterNetworkAttachmentInstance10.instanceClusterNetworkAttachmentId,
},
clusterNetworkInterface: {
name: "my-cluster-network-interface-11",
subnet: {
id: ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id,
},
},
}, {
dependsOn: [isInstanceStopBefore],
});
const isInstanceClusterNetworkAttachmentInstance12 = new ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance12", {
instanceId: ibm_is_instance.is_instance.id,
before: {
id: isInstanceClusterNetworkAttachmentInstance11.instanceClusterNetworkAttachmentId,
},
clusterNetworkInterface: {
name: "my-cluster-network-interface12",
subnet: {
id: ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id,
},
},
}, {
dependsOn: [isInstanceStopBefore],
});
const isInstanceClusterNetworkAttachmentInstance13 = new ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance13", {
instanceId: ibm_is_instance.is_instance.id,
before: {
id: isInstanceClusterNetworkAttachmentInstance12.instanceClusterNetworkAttachmentId,
},
clusterNetworkInterface: {
name: "my-cluster-network-interface13",
subnet: {
id: ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id,
},
},
}, {
dependsOn: [isInstanceStopBefore],
});
const isInstanceClusterNetworkAttachmentInstance14 = new ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance14", {
instanceId: ibm_is_instance.is_instance.id,
before: {
id: isInstanceClusterNetworkAttachmentInstance13.instanceClusterNetworkAttachmentId,
},
clusterNetworkInterface: {
name: "my-cluster-network-interface14",
subnet: {
id: ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id,
},
},
}, {
dependsOn: [isInstanceStopBefore],
});
const isInstanceClusterNetworkAttachmentInstance15 = new ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance15", {
instanceId: ibm_is_instance.is_instance.id,
before: {
id: isInstanceClusterNetworkAttachmentInstance14.instanceClusterNetworkAttachmentId,
},
clusterNetworkInterface: {
name: "my-cluster-network-interface15",
subnet: {
id: ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id,
},
},
}, {
dependsOn: [isInstanceStopBefore],
});
const isInstanceClusterNetworkAttachmentInstance16 = new ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance16", {
instanceId: ibm_is_instance.is_instance.id,
before: {
id: isInstanceClusterNetworkAttachmentInstance15.instanceClusterNetworkAttachmentId,
},
clusterNetworkInterface: {
name: "my-cluster-network-interface16",
subnet: {
id: ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id,
},
},
}, {
dependsOn: [isInstanceStopBefore],
});
const isInstanceStartAfter = new ibm.IsInstanceAction("isInstanceStartAfter", {
action: "start",
instance: ibm_is_instance.is_instance.id,
});
import pulumi
import pulumi_ibm as ibm
is_instance_stop_before = ibm.IsInstanceAction("isInstanceStopBefore",
action="stop",
instance=ibm_is_instance["is_instance"]["id"])
is_instance_cluster_network_attachment_instance = ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance",
instance_id=ibm_is_instance["is_instance"]["id"],
before={
"id": ibm_is_instance["is_instance"]["cluster_network_attachments"][0]["id"],
},
cluster_network_interface={
"name": "my-cluster-network-interface",
"subnet": {
"id": ibm_is_cluster_network_subnet["is_cluster_network_subnet_instance"]["cluster_network_subnet_id"],
},
},
opts = pulumi.ResourceOptions(depends_on=[is_instance_stop_before]))
is_instance_cluster_network_attachment_instance10 = ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance10",
instance_id=ibm_is_instance["is_instance"]["id"],
before={
"id": is_instance_cluster_network_attachment_instance.instance_cluster_network_attachment_id,
},
cluster_network_interface={
"name": "my-cluster-network-interface-10",
"subnet": {
"id": ibm_is_cluster_network_subnet["is_cluster_network_subnet_instance"]["cluster_network_subnet_id"],
},
},
opts = pulumi.ResourceOptions(depends_on=[is_instance_stop_before]))
is_instance_cluster_network_attachment_instance11 = ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance11",
instance_id=ibm_is_instance["is_instance"]["id"],
before={
"id": is_instance_cluster_network_attachment_instance10.instance_cluster_network_attachment_id,
},
cluster_network_interface={
"name": "my-cluster-network-interface-11",
"subnet": {
"id": ibm_is_cluster_network_subnet["is_cluster_network_subnet_instance"]["cluster_network_subnet_id"],
},
},
opts = pulumi.ResourceOptions(depends_on=[is_instance_stop_before]))
is_instance_cluster_network_attachment_instance12 = ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance12",
instance_id=ibm_is_instance["is_instance"]["id"],
before={
"id": is_instance_cluster_network_attachment_instance11.instance_cluster_network_attachment_id,
},
cluster_network_interface={
"name": "my-cluster-network-interface12",
"subnet": {
"id": ibm_is_cluster_network_subnet["is_cluster_network_subnet_instance"]["cluster_network_subnet_id"],
},
},
opts = pulumi.ResourceOptions(depends_on=[is_instance_stop_before]))
is_instance_cluster_network_attachment_instance13 = ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance13",
instance_id=ibm_is_instance["is_instance"]["id"],
before={
"id": is_instance_cluster_network_attachment_instance12.instance_cluster_network_attachment_id,
},
cluster_network_interface={
"name": "my-cluster-network-interface13",
"subnet": {
"id": ibm_is_cluster_network_subnet["is_cluster_network_subnet_instance"]["cluster_network_subnet_id"],
},
},
opts = pulumi.ResourceOptions(depends_on=[is_instance_stop_before]))
is_instance_cluster_network_attachment_instance14 = ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance14",
instance_id=ibm_is_instance["is_instance"]["id"],
before={
"id": is_instance_cluster_network_attachment_instance13.instance_cluster_network_attachment_id,
},
cluster_network_interface={
"name": "my-cluster-network-interface14",
"subnet": {
"id": ibm_is_cluster_network_subnet["is_cluster_network_subnet_instance"]["cluster_network_subnet_id"],
},
},
opts = pulumi.ResourceOptions(depends_on=[is_instance_stop_before]))
is_instance_cluster_network_attachment_instance15 = ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance15",
instance_id=ibm_is_instance["is_instance"]["id"],
before={
"id": is_instance_cluster_network_attachment_instance14.instance_cluster_network_attachment_id,
},
cluster_network_interface={
"name": "my-cluster-network-interface15",
"subnet": {
"id": ibm_is_cluster_network_subnet["is_cluster_network_subnet_instance"]["cluster_network_subnet_id"],
},
},
opts = pulumi.ResourceOptions(depends_on=[is_instance_stop_before]))
is_instance_cluster_network_attachment_instance16 = ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance16",
instance_id=ibm_is_instance["is_instance"]["id"],
before={
"id": is_instance_cluster_network_attachment_instance15.instance_cluster_network_attachment_id,
},
cluster_network_interface={
"name": "my-cluster-network-interface16",
"subnet": {
"id": ibm_is_cluster_network_subnet["is_cluster_network_subnet_instance"]["cluster_network_subnet_id"],
},
},
opts = pulumi.ResourceOptions(depends_on=[is_instance_stop_before]))
is_instance_start_after = ibm.IsInstanceAction("isInstanceStartAfter",
action="start",
instance=ibm_is_instance["is_instance"]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
isInstanceStopBefore, err := ibm.NewIsInstanceAction(ctx, "isInstanceStopBefore", &ibm.IsInstanceActionArgs{
Action: pulumi.String("stop"),
Instance: pulumi.Any(ibm_is_instance.Is_instance.Id),
})
if err != nil {
return err
}
isInstanceClusterNetworkAttachmentInstance, err := ibm.NewIsInstanceClusterNetworkAttachment(ctx, "isInstanceClusterNetworkAttachmentInstance", &ibm.IsInstanceClusterNetworkAttachmentArgs{
InstanceId: pulumi.Any(ibm_is_instance.Is_instance.Id),
Before: &ibm.IsInstanceClusterNetworkAttachmentBeforeArgs{
Id: pulumi.Any(ibm_is_instance.Is_instance.Cluster_network_attachments[0].Id),
},
ClusterNetworkInterface: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs{
Name: pulumi.String("my-cluster-network-interface"),
Subnet: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs{
Id: pulumi.Any(ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
isInstanceStopBefore,
}))
if err != nil {
return err
}
isInstanceClusterNetworkAttachmentInstance10, err := ibm.NewIsInstanceClusterNetworkAttachment(ctx, "isInstanceClusterNetworkAttachmentInstance10", &ibm.IsInstanceClusterNetworkAttachmentArgs{
InstanceId: pulumi.Any(ibm_is_instance.Is_instance.Id),
Before: &ibm.IsInstanceClusterNetworkAttachmentBeforeArgs{
Id: isInstanceClusterNetworkAttachmentInstance.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs{
Name: pulumi.String("my-cluster-network-interface-10"),
Subnet: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs{
Id: pulumi.Any(ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
isInstanceStopBefore,
}))
if err != nil {
return err
}
isInstanceClusterNetworkAttachmentInstance11, err := ibm.NewIsInstanceClusterNetworkAttachment(ctx, "isInstanceClusterNetworkAttachmentInstance11", &ibm.IsInstanceClusterNetworkAttachmentArgs{
InstanceId: pulumi.Any(ibm_is_instance.Is_instance.Id),
Before: &ibm.IsInstanceClusterNetworkAttachmentBeforeArgs{
Id: isInstanceClusterNetworkAttachmentInstance10.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs{
Name: pulumi.String("my-cluster-network-interface-11"),
Subnet: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs{
Id: pulumi.Any(ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
isInstanceStopBefore,
}))
if err != nil {
return err
}
isInstanceClusterNetworkAttachmentInstance12, err := ibm.NewIsInstanceClusterNetworkAttachment(ctx, "isInstanceClusterNetworkAttachmentInstance12", &ibm.IsInstanceClusterNetworkAttachmentArgs{
InstanceId: pulumi.Any(ibm_is_instance.Is_instance.Id),
Before: &ibm.IsInstanceClusterNetworkAttachmentBeforeArgs{
Id: isInstanceClusterNetworkAttachmentInstance11.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs{
Name: pulumi.String("my-cluster-network-interface12"),
Subnet: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs{
Id: pulumi.Any(ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
isInstanceStopBefore,
}))
if err != nil {
return err
}
isInstanceClusterNetworkAttachmentInstance13, err := ibm.NewIsInstanceClusterNetworkAttachment(ctx, "isInstanceClusterNetworkAttachmentInstance13", &ibm.IsInstanceClusterNetworkAttachmentArgs{
InstanceId: pulumi.Any(ibm_is_instance.Is_instance.Id),
Before: &ibm.IsInstanceClusterNetworkAttachmentBeforeArgs{
Id: isInstanceClusterNetworkAttachmentInstance12.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs{
Name: pulumi.String("my-cluster-network-interface13"),
Subnet: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs{
Id: pulumi.Any(ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
isInstanceStopBefore,
}))
if err != nil {
return err
}
isInstanceClusterNetworkAttachmentInstance14, err := ibm.NewIsInstanceClusterNetworkAttachment(ctx, "isInstanceClusterNetworkAttachmentInstance14", &ibm.IsInstanceClusterNetworkAttachmentArgs{
InstanceId: pulumi.Any(ibm_is_instance.Is_instance.Id),
Before: &ibm.IsInstanceClusterNetworkAttachmentBeforeArgs{
Id: isInstanceClusterNetworkAttachmentInstance13.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs{
Name: pulumi.String("my-cluster-network-interface14"),
Subnet: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs{
Id: pulumi.Any(ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
isInstanceStopBefore,
}))
if err != nil {
return err
}
isInstanceClusterNetworkAttachmentInstance15, err := ibm.NewIsInstanceClusterNetworkAttachment(ctx, "isInstanceClusterNetworkAttachmentInstance15", &ibm.IsInstanceClusterNetworkAttachmentArgs{
InstanceId: pulumi.Any(ibm_is_instance.Is_instance.Id),
Before: &ibm.IsInstanceClusterNetworkAttachmentBeforeArgs{
Id: isInstanceClusterNetworkAttachmentInstance14.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs{
Name: pulumi.String("my-cluster-network-interface15"),
Subnet: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs{
Id: pulumi.Any(ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
isInstanceStopBefore,
}))
if err != nil {
return err
}
_, err = ibm.NewIsInstanceClusterNetworkAttachment(ctx, "isInstanceClusterNetworkAttachmentInstance16", &ibm.IsInstanceClusterNetworkAttachmentArgs{
InstanceId: pulumi.Any(ibm_is_instance.Is_instance.Id),
Before: &ibm.IsInstanceClusterNetworkAttachmentBeforeArgs{
Id: isInstanceClusterNetworkAttachmentInstance15.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs{
Name: pulumi.String("my-cluster-network-interface16"),
Subnet: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs{
Id: pulumi.Any(ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
isInstanceStopBefore,
}))
if err != nil {
return err
}
_, err = ibm.NewIsInstanceAction(ctx, "isInstanceStartAfter", &ibm.IsInstanceActionArgs{
Action: pulumi.String("start"),
Instance: pulumi.Any(ibm_is_instance.Is_instance.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var isInstanceStopBefore = new Ibm.IsInstanceAction("isInstanceStopBefore", new()
{
Action = "stop",
Instance = ibm_is_instance.Is_instance.Id,
});
var isInstanceClusterNetworkAttachmentInstance = new Ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance", new()
{
InstanceId = ibm_is_instance.Is_instance.Id,
Before = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentBeforeArgs
{
Id = ibm_is_instance.Is_instance.Cluster_network_attachments[0].Id,
},
ClusterNetworkInterface = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
{
Name = "my-cluster-network-interface",
Subnet = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
{
Id = ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
isInstanceStopBefore,
},
});
var isInstanceClusterNetworkAttachmentInstance10 = new Ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance10", new()
{
InstanceId = ibm_is_instance.Is_instance.Id,
Before = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentBeforeArgs
{
Id = isInstanceClusterNetworkAttachmentInstance.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
{
Name = "my-cluster-network-interface-10",
Subnet = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
{
Id = ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
isInstanceStopBefore,
},
});
var isInstanceClusterNetworkAttachmentInstance11 = new Ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance11", new()
{
InstanceId = ibm_is_instance.Is_instance.Id,
Before = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentBeforeArgs
{
Id = isInstanceClusterNetworkAttachmentInstance10.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
{
Name = "my-cluster-network-interface-11",
Subnet = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
{
Id = ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
isInstanceStopBefore,
},
});
var isInstanceClusterNetworkAttachmentInstance12 = new Ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance12", new()
{
InstanceId = ibm_is_instance.Is_instance.Id,
Before = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentBeforeArgs
{
Id = isInstanceClusterNetworkAttachmentInstance11.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
{
Name = "my-cluster-network-interface12",
Subnet = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
{
Id = ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
isInstanceStopBefore,
},
});
var isInstanceClusterNetworkAttachmentInstance13 = new Ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance13", new()
{
InstanceId = ibm_is_instance.Is_instance.Id,
Before = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentBeforeArgs
{
Id = isInstanceClusterNetworkAttachmentInstance12.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
{
Name = "my-cluster-network-interface13",
Subnet = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
{
Id = ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
isInstanceStopBefore,
},
});
var isInstanceClusterNetworkAttachmentInstance14 = new Ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance14", new()
{
InstanceId = ibm_is_instance.Is_instance.Id,
Before = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentBeforeArgs
{
Id = isInstanceClusterNetworkAttachmentInstance13.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
{
Name = "my-cluster-network-interface14",
Subnet = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
{
Id = ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
isInstanceStopBefore,
},
});
var isInstanceClusterNetworkAttachmentInstance15 = new Ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance15", new()
{
InstanceId = ibm_is_instance.Is_instance.Id,
Before = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentBeforeArgs
{
Id = isInstanceClusterNetworkAttachmentInstance14.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
{
Name = "my-cluster-network-interface15",
Subnet = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
{
Id = ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
isInstanceStopBefore,
},
});
var isInstanceClusterNetworkAttachmentInstance16 = new Ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance16", new()
{
InstanceId = ibm_is_instance.Is_instance.Id,
Before = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentBeforeArgs
{
Id = isInstanceClusterNetworkAttachmentInstance15.InstanceClusterNetworkAttachmentId,
},
ClusterNetworkInterface = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
{
Name = "my-cluster-network-interface16",
Subnet = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
{
Id = ibm_is_cluster_network_subnet.Is_cluster_network_subnet_instance.Cluster_network_subnet_id,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
isInstanceStopBefore,
},
});
var isInstanceStartAfter = new Ibm.IsInstanceAction("isInstanceStartAfter", new()
{
Action = "start",
Instance = ibm_is_instance.Is_instance.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsInstanceAction;
import com.pulumi.ibm.IsInstanceActionArgs;
import com.pulumi.ibm.IsInstanceClusterNetworkAttachment;
import com.pulumi.ibm.IsInstanceClusterNetworkAttachmentArgs;
import com.pulumi.ibm.inputs.IsInstanceClusterNetworkAttachmentBeforeArgs;
import com.pulumi.ibm.inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs;
import com.pulumi.ibm.inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs;
import com.pulumi.resources.CustomResourceOptions;
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 isInstanceStopBefore = new IsInstanceAction("isInstanceStopBefore", IsInstanceActionArgs.builder()
.action("stop")
.instance(ibm_is_instance.is_instance().id())
.build());
var isInstanceClusterNetworkAttachmentInstance = new IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance", IsInstanceClusterNetworkAttachmentArgs.builder()
.instanceId(ibm_is_instance.is_instance().id())
.before(IsInstanceClusterNetworkAttachmentBeforeArgs.builder()
.id(ibm_is_instance.is_instance().cluster_network_attachments()[0].id())
.build())
.clusterNetworkInterface(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs.builder()
.name("my-cluster-network-interface")
.subnet(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs.builder()
.id(ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance().cluster_network_subnet_id())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(isInstanceStopBefore)
.build());
var isInstanceClusterNetworkAttachmentInstance10 = new IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance10", IsInstanceClusterNetworkAttachmentArgs.builder()
.instanceId(ibm_is_instance.is_instance().id())
.before(IsInstanceClusterNetworkAttachmentBeforeArgs.builder()
.id(isInstanceClusterNetworkAttachmentInstance.instanceClusterNetworkAttachmentId())
.build())
.clusterNetworkInterface(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs.builder()
.name("my-cluster-network-interface-10")
.subnet(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs.builder()
.id(ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance().cluster_network_subnet_id())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(isInstanceStopBefore)
.build());
var isInstanceClusterNetworkAttachmentInstance11 = new IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance11", IsInstanceClusterNetworkAttachmentArgs.builder()
.instanceId(ibm_is_instance.is_instance().id())
.before(IsInstanceClusterNetworkAttachmentBeforeArgs.builder()
.id(isInstanceClusterNetworkAttachmentInstance10.instanceClusterNetworkAttachmentId())
.build())
.clusterNetworkInterface(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs.builder()
.name("my-cluster-network-interface-11")
.subnet(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs.builder()
.id(ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance().cluster_network_subnet_id())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(isInstanceStopBefore)
.build());
var isInstanceClusterNetworkAttachmentInstance12 = new IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance12", IsInstanceClusterNetworkAttachmentArgs.builder()
.instanceId(ibm_is_instance.is_instance().id())
.before(IsInstanceClusterNetworkAttachmentBeforeArgs.builder()
.id(isInstanceClusterNetworkAttachmentInstance11.instanceClusterNetworkAttachmentId())
.build())
.clusterNetworkInterface(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs.builder()
.name("my-cluster-network-interface12")
.subnet(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs.builder()
.id(ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance().cluster_network_subnet_id())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(isInstanceStopBefore)
.build());
var isInstanceClusterNetworkAttachmentInstance13 = new IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance13", IsInstanceClusterNetworkAttachmentArgs.builder()
.instanceId(ibm_is_instance.is_instance().id())
.before(IsInstanceClusterNetworkAttachmentBeforeArgs.builder()
.id(isInstanceClusterNetworkAttachmentInstance12.instanceClusterNetworkAttachmentId())
.build())
.clusterNetworkInterface(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs.builder()
.name("my-cluster-network-interface13")
.subnet(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs.builder()
.id(ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance().cluster_network_subnet_id())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(isInstanceStopBefore)
.build());
var isInstanceClusterNetworkAttachmentInstance14 = new IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance14", IsInstanceClusterNetworkAttachmentArgs.builder()
.instanceId(ibm_is_instance.is_instance().id())
.before(IsInstanceClusterNetworkAttachmentBeforeArgs.builder()
.id(isInstanceClusterNetworkAttachmentInstance13.instanceClusterNetworkAttachmentId())
.build())
.clusterNetworkInterface(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs.builder()
.name("my-cluster-network-interface14")
.subnet(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs.builder()
.id(ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance().cluster_network_subnet_id())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(isInstanceStopBefore)
.build());
var isInstanceClusterNetworkAttachmentInstance15 = new IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance15", IsInstanceClusterNetworkAttachmentArgs.builder()
.instanceId(ibm_is_instance.is_instance().id())
.before(IsInstanceClusterNetworkAttachmentBeforeArgs.builder()
.id(isInstanceClusterNetworkAttachmentInstance14.instanceClusterNetworkAttachmentId())
.build())
.clusterNetworkInterface(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs.builder()
.name("my-cluster-network-interface15")
.subnet(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs.builder()
.id(ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance().cluster_network_subnet_id())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(isInstanceStopBefore)
.build());
var isInstanceClusterNetworkAttachmentInstance16 = new IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentInstance16", IsInstanceClusterNetworkAttachmentArgs.builder()
.instanceId(ibm_is_instance.is_instance().id())
.before(IsInstanceClusterNetworkAttachmentBeforeArgs.builder()
.id(isInstanceClusterNetworkAttachmentInstance15.instanceClusterNetworkAttachmentId())
.build())
.clusterNetworkInterface(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs.builder()
.name("my-cluster-network-interface16")
.subnet(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs.builder()
.id(ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance().cluster_network_subnet_id())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(isInstanceStopBefore)
.build());
var isInstanceStartAfter = new IsInstanceAction("isInstanceStartAfter", IsInstanceActionArgs.builder()
.action("start")
.instance(ibm_is_instance.is_instance().id())
.build());
}
}
resources:
isInstanceStopBefore:
type: ibm:IsInstanceAction
properties:
action: stop
instance: ${ibm_is_instance.is_instance.id}
isInstanceClusterNetworkAttachmentInstance:
type: ibm:IsInstanceClusterNetworkAttachment
properties:
instanceId: ${ibm_is_instance.is_instance.id}
before:
id: ${ibm_is_instance.is_instance.cluster_network_attachments[0].id}
clusterNetworkInterface:
name: my-cluster-network-interface
subnet:
id: ${ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id}
options:
dependsOn:
- ${isInstanceStopBefore}
isInstanceClusterNetworkAttachmentInstance10:
type: ibm:IsInstanceClusterNetworkAttachment
properties:
instanceId: ${ibm_is_instance.is_instance.id}
before:
id: ${isInstanceClusterNetworkAttachmentInstance.instanceClusterNetworkAttachmentId}
clusterNetworkInterface:
name: my-cluster-network-interface-10
subnet:
id: ${ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id}
options:
dependsOn:
- ${isInstanceStopBefore}
isInstanceClusterNetworkAttachmentInstance11:
type: ibm:IsInstanceClusterNetworkAttachment
properties:
instanceId: ${ibm_is_instance.is_instance.id}
before:
id: ${isInstanceClusterNetworkAttachmentInstance10.instanceClusterNetworkAttachmentId}
clusterNetworkInterface:
name: my-cluster-network-interface-11
subnet:
id: ${ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id}
options:
dependsOn:
- ${isInstanceStopBefore}
isInstanceClusterNetworkAttachmentInstance12:
type: ibm:IsInstanceClusterNetworkAttachment
properties:
instanceId: ${ibm_is_instance.is_instance.id}
before:
id: ${isInstanceClusterNetworkAttachmentInstance11.instanceClusterNetworkAttachmentId}
clusterNetworkInterface:
name: my-cluster-network-interface12
subnet:
id: ${ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id}
options:
dependsOn:
- ${isInstanceStopBefore}
isInstanceClusterNetworkAttachmentInstance13:
type: ibm:IsInstanceClusterNetworkAttachment
properties:
instanceId: ${ibm_is_instance.is_instance.id}
before:
id: ${isInstanceClusterNetworkAttachmentInstance12.instanceClusterNetworkAttachmentId}
clusterNetworkInterface:
name: my-cluster-network-interface13
subnet:
id: ${ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id}
options:
dependsOn:
- ${isInstanceStopBefore}
isInstanceClusterNetworkAttachmentInstance14:
type: ibm:IsInstanceClusterNetworkAttachment
properties:
instanceId: ${ibm_is_instance.is_instance.id}
before:
id: ${isInstanceClusterNetworkAttachmentInstance13.instanceClusterNetworkAttachmentId}
clusterNetworkInterface:
name: my-cluster-network-interface14
subnet:
id: ${ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id}
options:
dependsOn:
- ${isInstanceStopBefore}
isInstanceClusterNetworkAttachmentInstance15:
type: ibm:IsInstanceClusterNetworkAttachment
properties:
instanceId: ${ibm_is_instance.is_instance.id}
before:
id: ${isInstanceClusterNetworkAttachmentInstance14.instanceClusterNetworkAttachmentId}
clusterNetworkInterface:
name: my-cluster-network-interface15
subnet:
id: ${ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id}
options:
dependsOn:
- ${isInstanceStopBefore}
isInstanceClusterNetworkAttachmentInstance16:
type: ibm:IsInstanceClusterNetworkAttachment
properties:
instanceId: ${ibm_is_instance.is_instance.id}
before:
id: ${isInstanceClusterNetworkAttachmentInstance15.instanceClusterNetworkAttachmentId}
clusterNetworkInterface:
name: my-cluster-network-interface16
subnet:
id: ${ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id}
options:
dependsOn:
- ${isInstanceStopBefore}
isInstanceStartAfter:
type: ibm:IsInstanceAction
properties:
# depends_on = [ibm_is_instance_cluster_network_attachment.is_instance_cluster_network_attachment_instance16]
action: start
instance: ${ibm_is_instance.is_instance.id}
Create IsInstanceClusterNetworkAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsInstanceClusterNetworkAttachment(name: string, args: IsInstanceClusterNetworkAttachmentArgs, opts?: CustomResourceOptions);
@overload
def IsInstanceClusterNetworkAttachment(resource_name: str,
args: IsInstanceClusterNetworkAttachmentInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsInstanceClusterNetworkAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_network_interface: Optional[IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs] = None,
instance_id: Optional[str] = None,
before: Optional[IsInstanceClusterNetworkAttachmentBeforeArgs] = None,
is_instance_cluster_network_attachment_id: Optional[str] = None,
name: Optional[str] = None)
func NewIsInstanceClusterNetworkAttachment(ctx *Context, name string, args IsInstanceClusterNetworkAttachmentArgs, opts ...ResourceOption) (*IsInstanceClusterNetworkAttachment, error)
public IsInstanceClusterNetworkAttachment(string name, IsInstanceClusterNetworkAttachmentArgs args, CustomResourceOptions? opts = null)
public IsInstanceClusterNetworkAttachment(String name, IsInstanceClusterNetworkAttachmentArgs args)
public IsInstanceClusterNetworkAttachment(String name, IsInstanceClusterNetworkAttachmentArgs args, CustomResourceOptions options)
type: ibm:IsInstanceClusterNetworkAttachment
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 IsInstanceClusterNetworkAttachmentArgs
- 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 IsInstanceClusterNetworkAttachmentInitArgs
- 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 IsInstanceClusterNetworkAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsInstanceClusterNetworkAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsInstanceClusterNetworkAttachmentArgs
- 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 isInstanceClusterNetworkAttachmentResource = new Ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentResource", new()
{
ClusterNetworkInterface = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
{
Subnet = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
{
Id = "string",
Deleteds = new[]
{
new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetDeletedArgs
{
MoreInfo = "string",
},
},
Href = "string",
Name = "string",
ResourceType = "string",
},
Deleteds = new[]
{
new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceDeletedArgs
{
MoreInfo = "string",
},
},
Href = "string",
Id = "string",
Name = "string",
PrimaryIp = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpArgs
{
Address = "string",
Href = "string",
Id = "string",
Name = "string",
Deleteds = new[]
{
new Ibm.Inputs.IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpDeletedArgs
{
MoreInfo = "string",
},
},
ResourceType = "string",
},
ResourceType = "string",
},
InstanceId = "string",
Before = new Ibm.Inputs.IsInstanceClusterNetworkAttachmentBeforeArgs
{
Id = "string",
Href = "string",
Name = "string",
ResourceType = "string",
},
IsInstanceClusterNetworkAttachmentId = "string",
Name = "string",
});
example, err := ibm.NewIsInstanceClusterNetworkAttachment(ctx, "isInstanceClusterNetworkAttachmentResource", &ibm.IsInstanceClusterNetworkAttachmentArgs{
ClusterNetworkInterface: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs{
Subnet: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs{
Id: pulumi.String("string"),
Deleteds: ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetDeletedArray{
&ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetDeletedArgs{
MoreInfo: pulumi.String("string"),
},
},
Href: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
Deleteds: ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceDeletedArray{
&ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceDeletedArgs{
MoreInfo: pulumi.String("string"),
},
},
Href: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
PrimaryIp: &ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpArgs{
Address: pulumi.String("string"),
Href: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Deleteds: ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpDeletedArray{
&ibm.IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpDeletedArgs{
MoreInfo: pulumi.String("string"),
},
},
ResourceType: pulumi.String("string"),
},
ResourceType: pulumi.String("string"),
},
InstanceId: pulumi.String("string"),
Before: &ibm.IsInstanceClusterNetworkAttachmentBeforeArgs{
Id: pulumi.String("string"),
Href: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
IsInstanceClusterNetworkAttachmentId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var isInstanceClusterNetworkAttachmentResource = new IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentResource", IsInstanceClusterNetworkAttachmentArgs.builder()
.clusterNetworkInterface(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs.builder()
.subnet(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs.builder()
.id("string")
.deleteds(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetDeletedArgs.builder()
.moreInfo("string")
.build())
.href("string")
.name("string")
.resourceType("string")
.build())
.deleteds(IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceDeletedArgs.builder()
.moreInfo("string")
.build())
.href("string")
.id("string")
.name("string")
.primaryIp(IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpArgs.builder()
.address("string")
.href("string")
.id("string")
.name("string")
.deleteds(IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpDeletedArgs.builder()
.moreInfo("string")
.build())
.resourceType("string")
.build())
.resourceType("string")
.build())
.instanceId("string")
.before(IsInstanceClusterNetworkAttachmentBeforeArgs.builder()
.id("string")
.href("string")
.name("string")
.resourceType("string")
.build())
.isInstanceClusterNetworkAttachmentId("string")
.name("string")
.build());
is_instance_cluster_network_attachment_resource = ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentResource",
cluster_network_interface={
"subnet": {
"id": "string",
"deleteds": [{
"more_info": "string",
}],
"href": "string",
"name": "string",
"resource_type": "string",
},
"deleteds": [{
"more_info": "string",
}],
"href": "string",
"id": "string",
"name": "string",
"primary_ip": {
"address": "string",
"href": "string",
"id": "string",
"name": "string",
"deleteds": [{
"more_info": "string",
}],
"resource_type": "string",
},
"resource_type": "string",
},
instance_id="string",
before={
"id": "string",
"href": "string",
"name": "string",
"resource_type": "string",
},
is_instance_cluster_network_attachment_id="string",
name="string")
const isInstanceClusterNetworkAttachmentResource = new ibm.IsInstanceClusterNetworkAttachment("isInstanceClusterNetworkAttachmentResource", {
clusterNetworkInterface: {
subnet: {
id: "string",
deleteds: [{
moreInfo: "string",
}],
href: "string",
name: "string",
resourceType: "string",
},
deleteds: [{
moreInfo: "string",
}],
href: "string",
id: "string",
name: "string",
primaryIp: {
address: "string",
href: "string",
id: "string",
name: "string",
deleteds: [{
moreInfo: "string",
}],
resourceType: "string",
},
resourceType: "string",
},
instanceId: "string",
before: {
id: "string",
href: "string",
name: "string",
resourceType: "string",
},
isInstanceClusterNetworkAttachmentId: "string",
name: "string",
});
type: ibm:IsInstanceClusterNetworkAttachment
properties:
before:
href: string
id: string
name: string
resourceType: string
clusterNetworkInterface:
deleteds:
- moreInfo: string
href: string
id: string
name: string
primaryIp:
address: string
deleteds:
- moreInfo: string
href: string
id: string
name: string
resourceType: string
resourceType: string
subnet:
deleteds:
- moreInfo: string
href: string
id: string
name: string
resourceType: string
instanceId: string
isInstanceClusterNetworkAttachmentId: string
name: string
IsInstanceClusterNetworkAttachment 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 IsInstanceClusterNetworkAttachment resource accepts the following input properties:
- Cluster
Network IsInterface Instance Cluster Network Attachment Cluster Network Interface The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- Instance
Id string - The virtual server instance identifier.
- Before
Is
Instance Cluster Network Attachment Before - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- Is
Instance stringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- Name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- Cluster
Network IsInterface Instance Cluster Network Attachment Cluster Network Interface Args The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- Instance
Id string - The virtual server instance identifier.
- Before
Is
Instance Cluster Network Attachment Before Args - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- Is
Instance stringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- Name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- cluster
Network IsInterface Instance Cluster Network Attachment Cluster Network Interface The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- instance
Id String - The virtual server instance identifier.
- before
Is
Instance Cluster Network Attachment Before - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- is
Instance StringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- name String
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- cluster
Network IsInterface Instance Cluster Network Attachment Cluster Network Interface The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- instance
Id string - The virtual server instance identifier.
- before
Is
Instance Cluster Network Attachment Before - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- is
Instance stringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- cluster_
network_ Isinterface Instance Cluster Network Attachment Cluster Network Interface Args The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- instance_
id str - The virtual server instance identifier.
- before
Is
Instance Cluster Network Attachment Before Args - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- is_
instance_ strcluster_ network_ attachment_ id - (String) The unique identifier for this cluster network subnet.
- name str
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- cluster
Network Property MapInterface The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- instance
Id String - The virtual server instance identifier.
- before Property Map
- The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- is
Instance StringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- name String
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the IsInstanceClusterNetworkAttachment resource produces the following output properties:
- Href string
- (String) The URL for this instance cluster network attachment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Cluster stringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- Lifecycle
Reasons List<IsInstance Cluster Network Attachment Lifecycle Reason> - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - Lifecycle
State string - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- Href string
- (String) The URL for this instance cluster network attachment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Cluster stringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- Lifecycle
Reasons []IsInstance Cluster Network Attachment Lifecycle Reason - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - Lifecycle
State string - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- href String
- (String) The URL for this instance cluster network attachment.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Cluster StringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- lifecycle
Reasons List<IsInstance Cluster Network Attachment Lifecycle Reason> - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle
State String - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- href string
- (String) The URL for this instance cluster network attachment.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Cluster stringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- lifecycle
Reasons IsInstance Cluster Network Attachment Lifecycle Reason[] - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle
State string - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- href str
- (String) The URL for this instance cluster network attachment.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
cluster_ strnetwork_ attachment_ id - (String) The unique identifier for this instance cluster network attachment.
- lifecycle_
reasons Sequence[IsInstance Cluster Network Attachment Lifecycle Reason] - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle_
state str - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - resource_
type str - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- href String
- (String) The URL for this instance cluster network attachment.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Cluster StringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- lifecycle
Reasons List<Property Map> - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle
State String - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
Look up Existing IsInstanceClusterNetworkAttachment Resource
Get an existing IsInstanceClusterNetworkAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IsInstanceClusterNetworkAttachmentState, opts?: CustomResourceOptions): IsInstanceClusterNetworkAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
before: Optional[IsInstanceClusterNetworkAttachmentBeforeArgs] = None,
cluster_network_interface: Optional[IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs] = None,
href: Optional[str] = None,
instance_cluster_network_attachment_id: Optional[str] = None,
instance_id: Optional[str] = None,
is_instance_cluster_network_attachment_id: Optional[str] = None,
lifecycle_reasons: Optional[Sequence[IsInstanceClusterNetworkAttachmentLifecycleReasonArgs]] = None,
lifecycle_state: Optional[str] = None,
name: Optional[str] = None,
resource_type: Optional[str] = None) -> IsInstanceClusterNetworkAttachment
func GetIsInstanceClusterNetworkAttachment(ctx *Context, name string, id IDInput, state *IsInstanceClusterNetworkAttachmentState, opts ...ResourceOption) (*IsInstanceClusterNetworkAttachment, error)
public static IsInstanceClusterNetworkAttachment Get(string name, Input<string> id, IsInstanceClusterNetworkAttachmentState? state, CustomResourceOptions? opts = null)
public static IsInstanceClusterNetworkAttachment get(String name, Output<String> id, IsInstanceClusterNetworkAttachmentState state, CustomResourceOptions options)
resources: _: type: ibm:IsInstanceClusterNetworkAttachment get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Before
Is
Instance Cluster Network Attachment Before - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- Cluster
Network IsInterface Instance Cluster Network Attachment Cluster Network Interface The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- Href string
- (String) The URL for this instance cluster network attachment.
- Instance
Cluster stringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- Instance
Id string - The virtual server instance identifier.
- Is
Instance stringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- Lifecycle
Reasons List<IsInstance Cluster Network Attachment Lifecycle Reason> - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - Lifecycle
State string - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - Name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- Before
Is
Instance Cluster Network Attachment Before Args - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- Cluster
Network IsInterface Instance Cluster Network Attachment Cluster Network Interface Args The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- Href string
- (String) The URL for this instance cluster network attachment.
- Instance
Cluster stringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- Instance
Id string - The virtual server instance identifier.
- Is
Instance stringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- Lifecycle
Reasons []IsInstance Cluster Network Attachment Lifecycle Reason Args - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - Lifecycle
State string - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - Name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- before
Is
Instance Cluster Network Attachment Before - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- cluster
Network IsInterface Instance Cluster Network Attachment Cluster Network Interface The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- href String
- (String) The URL for this instance cluster network attachment.
- instance
Cluster StringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- instance
Id String - The virtual server instance identifier.
- is
Instance StringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- lifecycle
Reasons List<IsInstance Cluster Network Attachment Lifecycle Reason> - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle
State String - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - name String
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- before
Is
Instance Cluster Network Attachment Before - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- cluster
Network IsInterface Instance Cluster Network Attachment Cluster Network Interface The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- href string
- (String) The URL for this instance cluster network attachment.
- instance
Cluster stringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- instance
Id string - The virtual server instance identifier.
- is
Instance stringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- lifecycle
Reasons IsInstance Cluster Network Attachment Lifecycle Reason[] - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle
State string - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- before
Is
Instance Cluster Network Attachment Before Args - The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- cluster_
network_ Isinterface Instance Cluster Network Attachment Cluster Network Interface Args The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- href str
- (String) The URL for this instance cluster network attachment.
- instance_
cluster_ strnetwork_ attachment_ id - (String) The unique identifier for this instance cluster network attachment.
- instance_
id str - The virtual server instance identifier.
- is_
instance_ strcluster_ network_ attachment_ id - (String) The unique identifier for this cluster network subnet.
- lifecycle_
reasons Sequence[IsInstance Cluster Network Attachment Lifecycle Reason Args] - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle_
state str - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - name str
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource_
type str - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- before Property Map
- The instance cluster network attachment that is immediately before. If absent, this is thelast instance cluster network attachment. Nested schema for before:
- cluster
Network Property MapInterface The cluster network interface for this instance cluster network attachment.
Nested schema for cluster_network_interface:
- href String
- (String) The URL for this instance cluster network attachment.
- instance
Cluster StringNetwork Attachment Id - (String) The unique identifier for this instance cluster network attachment.
- instance
Id String - The virtual server instance identifier.
- is
Instance StringCluster Network Attachment Id - (String) The unique identifier for this cluster network subnet.
- lifecycle
Reasons List<Property Map> - (List) The reasons for the current
lifecycle_state
(if any). Nested schema for lifecycle_reasons: - lifecycle
State String - (String) The lifecycle state of the instance cluster network attachment. Allowable values are:
deleting
,failed
,pending
,stable
,suspended
,updating
,waiting
. - name String
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
Supporting Types
IsInstanceClusterNetworkAttachmentBefore, IsInstanceClusterNetworkAttachmentBeforeArgs
- Id string
- The unique identifier for this instance cluster network attachment.
- Href string
- (String) The URL for this instance cluster network attachment.
- Name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- Id string
- The unique identifier for this instance cluster network attachment.
- Href string
- (String) The URL for this instance cluster network attachment.
- Name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- id String
- The unique identifier for this instance cluster network attachment.
- href String
- (String) The URL for this instance cluster network attachment.
- name String
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- id string
- The unique identifier for this instance cluster network attachment.
- href string
- (String) The URL for this instance cluster network attachment.
- name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- id str
- The unique identifier for this instance cluster network attachment.
- href str
- (String) The URL for this instance cluster network attachment.
- name str
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource_
type str - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- id String
- The unique identifier for this instance cluster network attachment.
- href String
- (String) The URL for this instance cluster network attachment.
- name String
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
IsInstanceClusterNetworkAttachmentClusterNetworkInterface, IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceArgs
- Subnet
Is
Instance Cluster Network Attachment Cluster Network Interface Subnet - Nested schema for subnet:
- Deleteds
List<Is
Instance Cluster Network Attachment Cluster Network Interface Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- Href string
- (String) The URL for this instance cluster network attachment.
- Id string
- The unique identifier for this cluster network interface.
- Name string
- The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
- Primary
Ip IsInstance Cluster Network Attachment Cluster Network Interface Primary Ip The primary IP for this cluster network interface.
Nested schema for primary_ip:
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- Subnet
Is
Instance Cluster Network Attachment Cluster Network Interface Subnet - Nested schema for subnet:
- Deleteds
[]Is
Instance Cluster Network Attachment Cluster Network Interface Deleted - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- Href string
- (String) The URL for this instance cluster network attachment.
- Id string
- The unique identifier for this cluster network interface.
- Name string
- The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
- Primary
Ip IsInstance Cluster Network Attachment Cluster Network Interface Primary Ip The primary IP for this cluster network interface.
Nested schema for primary_ip:
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- subnet
Is
Instance Cluster Network Attachment Cluster Network Interface Subnet - Nested schema for subnet:
- deleteds
List<Is
Instance Cluster Network Attachment Cluster Network Interface Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- href String
- (String) The URL for this instance cluster network attachment.
- id String
- The unique identifier for this cluster network interface.
- name String
- The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
- primary
Ip IsInstance Cluster Network Attachment Cluster Network Interface Primary Ip The primary IP for this cluster network interface.
Nested schema for primary_ip:
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- subnet
Is
Instance Cluster Network Attachment Cluster Network Interface Subnet - Nested schema for subnet:
- deleteds
Is
Instance Cluster Network Attachment Cluster Network Interface Deleted[] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- href string
- (String) The URL for this instance cluster network attachment.
- id string
- The unique identifier for this cluster network interface.
- name string
- The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
- primary
Ip IsInstance Cluster Network Attachment Cluster Network Interface Primary Ip The primary IP for this cluster network interface.
Nested schema for primary_ip:
- resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- subnet
Is
Instance Cluster Network Attachment Cluster Network Interface Subnet - Nested schema for subnet:
- deleteds
Sequence[Is
Instance Cluster Network Attachment Cluster Network Interface Deleted] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- href str
- (String) The URL for this instance cluster network attachment.
- id str
- The unique identifier for this cluster network interface.
- name str
- The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
- primary_
ip IsInstance Cluster Network Attachment Cluster Network Interface Primary Ip The primary IP for this cluster network interface.
Nested schema for primary_ip:
- resource_
type str - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- subnet Property Map
- Nested schema for subnet:
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- href String
- (String) The URL for this instance cluster network attachment.
- id String
- The unique identifier for this cluster network interface.
- name String
- The name for this cluster network interface. The name is unique across all interfaces in the cluster network.
- primary
Ip Property Map The primary IP for this cluster network interface.
Nested schema for primary_ip:
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceDeleted, IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceDeletedArgs
- More
Info string - (String) Link to documentation about the reason for this lifecycle state.
- More
Info string - (String) Link to documentation about the reason for this lifecycle state.
- more
Info String - (String) Link to documentation about the reason for this lifecycle state.
- more
Info string - (String) Link to documentation about the reason for this lifecycle state.
- more_
info str - (String) Link to documentation about the reason for this lifecycle state.
- more
Info String - (String) Link to documentation about the reason for this lifecycle state.
IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIp, IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpArgs
- Address string
- The IP address.If the address is pending allocation, the value will be
0.0.0.0
.This property may expand to support IPv6 addresses in the future. - Href string
- (String) The URL for this instance cluster network attachment.
- Id string
- The unique identifier for this cluster network subnet reserved IP.
- Name string
- The name for this cluster network subnet reserved IP. The name is unique across all reserved IPs in a cluster network subnet.
- Deleteds
List<Is
Instance Cluster Network Attachment Cluster Network Interface Primary Ip Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- Address string
- The IP address.If the address is pending allocation, the value will be
0.0.0.0
.This property may expand to support IPv6 addresses in the future. - Href string
- (String) The URL for this instance cluster network attachment.
- Id string
- The unique identifier for this cluster network subnet reserved IP.
- Name string
- The name for this cluster network subnet reserved IP. The name is unique across all reserved IPs in a cluster network subnet.
- Deleteds
[]Is
Instance Cluster Network Attachment Cluster Network Interface Primary Ip Deleted - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- address String
- The IP address.If the address is pending allocation, the value will be
0.0.0.0
.This property may expand to support IPv6 addresses in the future. - href String
- (String) The URL for this instance cluster network attachment.
- id String
- The unique identifier for this cluster network subnet reserved IP.
- name String
- The name for this cluster network subnet reserved IP. The name is unique across all reserved IPs in a cluster network subnet.
- deleteds
List<Is
Instance Cluster Network Attachment Cluster Network Interface Primary Ip Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- address string
- The IP address.If the address is pending allocation, the value will be
0.0.0.0
.This property may expand to support IPv6 addresses in the future. - href string
- (String) The URL for this instance cluster network attachment.
- id string
- The unique identifier for this cluster network subnet reserved IP.
- name string
- The name for this cluster network subnet reserved IP. The name is unique across all reserved IPs in a cluster network subnet.
- deleteds
Is
Instance Cluster Network Attachment Cluster Network Interface Primary Ip Deleted[] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- address str
- The IP address.If the address is pending allocation, the value will be
0.0.0.0
.This property may expand to support IPv6 addresses in the future. - href str
- (String) The URL for this instance cluster network attachment.
- id str
- The unique identifier for this cluster network subnet reserved IP.
- name str
- The name for this cluster network subnet reserved IP. The name is unique across all reserved IPs in a cluster network subnet.
- deleteds
Sequence[Is
Instance Cluster Network Attachment Cluster Network Interface Primary Ip Deleted] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- resource_
type str - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- address String
- The IP address.If the address is pending allocation, the value will be
0.0.0.0
.This property may expand to support IPv6 addresses in the future. - href String
- (String) The URL for this instance cluster network attachment.
- id String
- The unique identifier for this cluster network subnet reserved IP.
- name String
- The name for this cluster network subnet reserved IP. The name is unique across all reserved IPs in a cluster network subnet.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpDeleted, IsInstanceClusterNetworkAttachmentClusterNetworkInterfacePrimaryIpDeletedArgs
- More
Info string - (String) Link to documentation about the reason for this lifecycle state.
- More
Info string - (String) Link to documentation about the reason for this lifecycle state.
- more
Info String - (String) Link to documentation about the reason for this lifecycle state.
- more
Info string - (String) Link to documentation about the reason for this lifecycle state.
- more_
info str - (String) Link to documentation about the reason for this lifecycle state.
- more
Info String - (String) Link to documentation about the reason for this lifecycle state.
IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnet, IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetArgs
- Id string
- The unique identifier for this cluster network subnet.
- Deleteds
List<Is
Instance Cluster Network Attachment Cluster Network Interface Subnet Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- Href string
- (String) The URL for this instance cluster network attachment.
- Name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- Id string
- The unique identifier for this cluster network subnet.
- Deleteds
[]Is
Instance Cluster Network Attachment Cluster Network Interface Subnet Deleted - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- Href string
- (String) The URL for this instance cluster network attachment.
- Name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- Resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- id String
- The unique identifier for this cluster network subnet.
- deleteds
List<Is
Instance Cluster Network Attachment Cluster Network Interface Subnet Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- href String
- (String) The URL for this instance cluster network attachment.
- name String
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- id string
- The unique identifier for this cluster network subnet.
- deleteds
Is
Instance Cluster Network Attachment Cluster Network Interface Subnet Deleted[] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- href string
- (String) The URL for this instance cluster network attachment.
- name string
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource
Type string - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- id str
- The unique identifier for this cluster network subnet.
- deleteds
Sequence[Is
Instance Cluster Network Attachment Cluster Network Interface Subnet Deleted] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- href str
- (String) The URL for this instance cluster network attachment.
- name str
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource_
type str - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
- id String
- The unique identifier for this cluster network subnet.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information. Nested schema for deleted:
- href String
- (String) The URL for this instance cluster network attachment.
- name String
- The name for this instance cluster network attachment. The name is unique across all network attachments for the instance.
- resource
Type String - (String) The resource type. Allowable values are:
instance_cluster_network_attachment
.
IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetDeleted, IsInstanceClusterNetworkAttachmentClusterNetworkInterfaceSubnetDeletedArgs
- More
Info string - (String) Link to documentation about the reason for this lifecycle state.
- More
Info string - (String) Link to documentation about the reason for this lifecycle state.
- more
Info String - (String) Link to documentation about the reason for this lifecycle state.
- more
Info string - (String) Link to documentation about the reason for this lifecycle state.
- more_
info str - (String) Link to documentation about the reason for this lifecycle state.
- more
Info String - (String) Link to documentation about the reason for this lifecycle state.
IsInstanceClusterNetworkAttachmentLifecycleReason, IsInstanceClusterNetworkAttachmentLifecycleReasonArgs
- Code string
- (String) A reason code for this lifecycle state:-
internal_error
: internal error (contact IBM support)-resource_suspended_by_provider
: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future. - Message string
- (String) An explanation of the reason for this lifecycle state.
- More
Info string - (String) Link to documentation about the reason for this lifecycle state.
- Code string
- (String) A reason code for this lifecycle state:-
internal_error
: internal error (contact IBM support)-resource_suspended_by_provider
: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future. - Message string
- (String) An explanation of the reason for this lifecycle state.
- More
Info string - (String) Link to documentation about the reason for this lifecycle state.
- code String
- (String) A reason code for this lifecycle state:-
internal_error
: internal error (contact IBM support)-resource_suspended_by_provider
: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future. - message String
- (String) An explanation of the reason for this lifecycle state.
- more
Info String - (String) Link to documentation about the reason for this lifecycle state.
- code string
- (String) A reason code for this lifecycle state:-
internal_error
: internal error (contact IBM support)-resource_suspended_by_provider
: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future. - message string
- (String) An explanation of the reason for this lifecycle state.
- more
Info string - (String) Link to documentation about the reason for this lifecycle state.
- code str
- (String) A reason code for this lifecycle state:-
internal_error
: internal error (contact IBM support)-resource_suspended_by_provider
: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future. - message str
- (String) An explanation of the reason for this lifecycle state.
- more_
info str - (String) Link to documentation about the reason for this lifecycle state.
- code String
- (String) A reason code for this lifecycle state:-
internal_error
: internal error (contact IBM support)-resource_suspended_by_provider
: The resource has been suspended (contact IBM support)The enumerated values for this property mayexpand in the future. - message String
- (String) An explanation of the reason for this lifecycle state.
- more
Info String - (String) Link to documentation about the reason for this lifecycle state.
Import
You can import the ibm_is_instance_cluster_network_attachment
resource by using id
.
The id
property can be formed from instance_id
, and instance_cluster_network_attachment_id
in the following format:
<instance_id>/<instance_cluster_network_attachment_id>
instance_id
: A string. The virtual server instance identifier.instance_cluster_network_attachment_id
: A string in the format0717-fb880975-db45-4459-8548-64e3995ac213
. The unique identifier for this instance cluster network attachment.
Syntax
```sh $ pulumi import ibm:index/isInstanceClusterNetworkAttachment:IsInstanceClusterNetworkAttachment is_instance_cluster_network_attachment <instance_id>/<instance_cluster_network_attachment_id> ```
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.