opentelekomcloud.VpcSecgroupV3
Up-to-date reference of API arguments for VPC security group v3 you can get at documentation portal
Manages a V3 VPC security group resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const secgroup1 = new opentelekomcloud.VpcSecgroupV3("secgroup1", {description: "My VPC security group"});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
secgroup1 = opentelekomcloud.VpcSecgroupV3("secgroup1", description="My VPC security group")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewVpcSecgroupV3(ctx, "secgroup1", &opentelekomcloud.VpcSecgroupV3Args{
Description: pulumi.String("My VPC security group"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var secgroup1 = new Opentelekomcloud.VpcSecgroupV3("secgroup1", new()
{
Description = "My VPC security group",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VpcSecgroupV3;
import com.pulumi.opentelekomcloud.VpcSecgroupV3Args;
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 secgroup1 = new VpcSecgroupV3("secgroup1", VpcSecgroupV3Args.builder()
.description("My VPC security group")
.build());
}
}
resources:
secgroup1:
type: opentelekomcloud:VpcSecgroupV3
properties:
description: My VPC security group
Create VpcSecgroupV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcSecgroupV3(name: string, args?: VpcSecgroupV3Args, opts?: CustomResourceOptions);
@overload
def VpcSecgroupV3(resource_name: str,
args: Optional[VpcSecgroupV3Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def VpcSecgroupV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[VpcSecgroupV3TimeoutsArgs] = None,
vpc_secgroup_v3_id: Optional[str] = None)
func NewVpcSecgroupV3(ctx *Context, name string, args *VpcSecgroupV3Args, opts ...ResourceOption) (*VpcSecgroupV3, error)
public VpcSecgroupV3(string name, VpcSecgroupV3Args? args = null, CustomResourceOptions? opts = null)
public VpcSecgroupV3(String name, VpcSecgroupV3Args args)
public VpcSecgroupV3(String name, VpcSecgroupV3Args args, CustomResourceOptions options)
type: opentelekomcloud:VpcSecgroupV3
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 VpcSecgroupV3Args
- 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 VpcSecgroupV3Args
- 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 VpcSecgroupV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcSecgroupV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcSecgroupV3Args
- 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 vpcSecgroupV3Resource = new Opentelekomcloud.VpcSecgroupV3("vpcSecgroupV3Resource", new()
{
Description = "string",
EnterpriseProjectId = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.VpcSecgroupV3TimeoutsArgs
{
Delete = "string",
},
VpcSecgroupV3Id = "string",
});
example, err := opentelekomcloud.NewVpcSecgroupV3(ctx, "vpcSecgroupV3Resource", &opentelekomcloud.VpcSecgroupV3Args{
Description: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opentelekomcloud.VpcSecgroupV3TimeoutsArgs{
Delete: pulumi.String("string"),
},
VpcSecgroupV3Id: pulumi.String("string"),
})
var vpcSecgroupV3Resource = new VpcSecgroupV3("vpcSecgroupV3Resource", VpcSecgroupV3Args.builder()
.description("string")
.enterpriseProjectId("string")
.name("string")
.tags(Map.of("string", "string"))
.timeouts(VpcSecgroupV3TimeoutsArgs.builder()
.delete("string")
.build())
.vpcSecgroupV3Id("string")
.build());
vpc_secgroup_v3_resource = opentelekomcloud.VpcSecgroupV3("vpcSecgroupV3Resource",
description="string",
enterprise_project_id="string",
name="string",
tags={
"string": "string",
},
timeouts={
"delete": "string",
},
vpc_secgroup_v3_id="string")
const vpcSecgroupV3Resource = new opentelekomcloud.VpcSecgroupV3("vpcSecgroupV3Resource", {
description: "string",
enterpriseProjectId: "string",
name: "string",
tags: {
string: "string",
},
timeouts: {
"delete": "string",
},
vpcSecgroupV3Id: "string",
});
type: opentelekomcloud:VpcSecgroupV3
properties:
description: string
enterpriseProjectId: string
name: string
tags:
string: string
timeouts:
delete: string
vpcSecgroupV3Id: string
VpcSecgroupV3 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 VpcSecgroupV3 resource accepts the following input properties:
- Description string
- Security group description.
- Enterprise
Project stringId - ID of the enterprise project to which the security group belongs. Default:
0
. - Name string
- A unique name for the security group.
- Dictionary<string, string>
- Specifies the tags.
- Timeouts
Vpc
Secgroup V3Timeouts - Vpc
Secgroup stringV3Id - Security Group ID.
- Description string
- Security group description.
- Enterprise
Project stringId - ID of the enterprise project to which the security group belongs. Default:
0
. - Name string
- A unique name for the security group.
- map[string]string
- Specifies the tags.
- Timeouts
Vpc
Secgroup V3Timeouts Args - Vpc
Secgroup stringV3Id - Security Group ID.
- description String
- Security group description.
- enterprise
Project StringId - ID of the enterprise project to which the security group belongs. Default:
0
. - name String
- A unique name for the security group.
- Map<String,String>
- Specifies the tags.
- timeouts
Vpc
Secgroup V3Timeouts - vpc
Secgroup StringV3Id - Security Group ID.
- description string
- Security group description.
- enterprise
Project stringId - ID of the enterprise project to which the security group belongs. Default:
0
. - name string
- A unique name for the security group.
- {[key: string]: string}
- Specifies the tags.
- timeouts
Vpc
Secgroup V3Timeouts - vpc
Secgroup stringV3Id - Security Group ID.
- description str
- Security group description.
- enterprise_
project_ strid - ID of the enterprise project to which the security group belongs. Default:
0
. - name str
- A unique name for the security group.
- Mapping[str, str]
- Specifies the tags.
- timeouts
Vpc
Secgroup V3Timeouts Args - vpc_
secgroup_ strv3_ id - Security Group ID.
- description String
- Security group description.
- enterprise
Project StringId - ID of the enterprise project to which the security group belongs. Default:
0
. - name String
- A unique name for the security group.
- Map<String>
- Specifies the tags.
- timeouts Property Map
- vpc
Secgroup StringV3Id - Security Group ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcSecgroupV3 resource produces the following output properties:
- Created
At string - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Indicates the project ID.
- Updated
At string - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- Created
At string - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Indicates the project ID.
- Updated
At string - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- created
At String - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Indicates the project ID.
- updated
At String - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- created
At string - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - Indicates the project ID.
- updated
At string - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- created_
at str - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - Indicates the project ID.
- updated_
at str - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- created
At String - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - Indicates the project ID.
- updated
At String - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
Look up Existing VpcSecgroupV3 Resource
Get an existing VpcSecgroupV3 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?: VpcSecgroupV3State, opts?: CustomResourceOptions): VpcSecgroupV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[VpcSecgroupV3TimeoutsArgs] = None,
updated_at: Optional[str] = None,
vpc_secgroup_v3_id: Optional[str] = None) -> VpcSecgroupV3
func GetVpcSecgroupV3(ctx *Context, name string, id IDInput, state *VpcSecgroupV3State, opts ...ResourceOption) (*VpcSecgroupV3, error)
public static VpcSecgroupV3 Get(string name, Input<string> id, VpcSecgroupV3State? state, CustomResourceOptions? opts = null)
public static VpcSecgroupV3 get(String name, Output<String> id, VpcSecgroupV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:VpcSecgroupV3 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.
- Created
At string - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- Description string
- Security group description.
- Enterprise
Project stringId - ID of the enterprise project to which the security group belongs. Default:
0
. - Name string
- A unique name for the security group.
- Project
Id string - Indicates the project ID.
- Dictionary<string, string>
- Specifies the tags.
- Timeouts
Vpc
Secgroup V3Timeouts - Updated
At string - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- Vpc
Secgroup stringV3Id - Security Group ID.
- Created
At string - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- Description string
- Security group description.
- Enterprise
Project stringId - ID of the enterprise project to which the security group belongs. Default:
0
. - Name string
- A unique name for the security group.
- Project
Id string - Indicates the project ID.
- map[string]string
- Specifies the tags.
- Timeouts
Vpc
Secgroup V3Timeouts Args - Updated
At string - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- Vpc
Secgroup stringV3Id - Security Group ID.
- created
At String - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- description String
- Security group description.
- enterprise
Project StringId - ID of the enterprise project to which the security group belongs. Default:
0
. - name String
- A unique name for the security group.
- project
Id String - Indicates the project ID.
- Map<String,String>
- Specifies the tags.
- timeouts
Vpc
Secgroup V3Timeouts - updated
At String - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- vpc
Secgroup StringV3Id - Security Group ID.
- created
At string - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- description string
- Security group description.
- enterprise
Project stringId - ID of the enterprise project to which the security group belongs. Default:
0
. - name string
- A unique name for the security group.
- project
Id string - Indicates the project ID.
- {[key: string]: string}
- Specifies the tags.
- timeouts
Vpc
Secgroup V3Timeouts - updated
At string - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- vpc
Secgroup stringV3Id - Security Group ID.
- created_
at str - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- description str
- Security group description.
- enterprise_
project_ strid - ID of the enterprise project to which the security group belongs. Default:
0
. - name str
- A unique name for the security group.
- project_
id str - Indicates the project ID.
- Mapping[str, str]
- Specifies the tags.
- timeouts
Vpc
Secgroup V3Timeouts Args - updated_
at str - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- vpc_
secgroup_ strv3_ id - Security Group ID.
- created
At String - Indicates the time when the security group was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- description String
- Security group description.
- enterprise
Project StringId - ID of the enterprise project to which the security group belongs. Default:
0
. - name String
- A unique name for the security group.
- project
Id String - Indicates the project ID.
- Map<String>
- Specifies the tags.
- timeouts Property Map
- updated
At String - Indicates the time when the security group was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- vpc
Secgroup StringV3Id - Security Group ID.
Supporting Types
VpcSecgroupV3Timeouts, VpcSecgroupV3TimeoutsArgs
- Delete string
- Delete string
- delete String
- delete string
- delete str
- delete String
Import
VPC Security Group V3 can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/vpcSecgroupV3:VpcSecgroupV3 secgroup_1 <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.