opentelekomcloud.CfwServiceGroupV1
Explore with Pulumi AI
Up-to-date reference of API arguments for CFW service group you can get at documentation portal
Manages a CFW Service Group resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const objectId = config.requireObject("objectId");
const group1 = new opentelekomcloud.CfwServiceGroupV1("group1", {objectId: objectId});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
object_id = config.require_object("objectId")
group1 = opentelekomcloud.CfwServiceGroupV1("group1", object_id=object_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
objectId := cfg.RequireObject("objectId")
_, err := opentelekomcloud.NewCfwServiceGroupV1(ctx, "group1", &opentelekomcloud.CfwServiceGroupV1Args{
ObjectId: pulumi.Any(objectId),
})
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 config = new Config();
var objectId = config.RequireObject<dynamic>("objectId");
var group1 = new Opentelekomcloud.CfwServiceGroupV1("group1", new()
{
ObjectId = objectId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CfwServiceGroupV1;
import com.pulumi.opentelekomcloud.CfwServiceGroupV1Args;
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) {
final var config = ctx.config();
final var objectId = config.get("objectId");
var group1 = new CfwServiceGroupV1("group1", CfwServiceGroupV1Args.builder()
.objectId(objectId)
.build());
}
}
configuration:
objectId:
type: dynamic
resources:
group1:
type: opentelekomcloud:CfwServiceGroupV1
properties:
objectId: ${objectId}
Notes
But due to some attributes missing from the API response, it’s required to ignore changes as below:
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
// ...
const group1 = new opentelekomcloud.CfwServiceGroupV1("group1", {});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
# ...
group1 = opentelekomcloud.CfwServiceGroupV1("group1")
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.NewCfwServiceGroupV1(ctx, "group1", nil)
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 group1 = new Opentelekomcloud.CfwServiceGroupV1("group1");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CfwServiceGroupV1;
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 group1 = new CfwServiceGroupV1("group1");
}
}
resources:
group1:
type: opentelekomcloud:CfwServiceGroupV1
Create CfwServiceGroupV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CfwServiceGroupV1(name: string, args: CfwServiceGroupV1Args, opts?: CustomResourceOptions);
@overload
def CfwServiceGroupV1(resource_name: str,
args: CfwServiceGroupV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def CfwServiceGroupV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
object_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[CfwServiceGroupV1TimeoutsArgs] = None)
func NewCfwServiceGroupV1(ctx *Context, name string, args CfwServiceGroupV1Args, opts ...ResourceOption) (*CfwServiceGroupV1, error)
public CfwServiceGroupV1(string name, CfwServiceGroupV1Args args, CustomResourceOptions? opts = null)
public CfwServiceGroupV1(String name, CfwServiceGroupV1Args args)
public CfwServiceGroupV1(String name, CfwServiceGroupV1Args args, CustomResourceOptions options)
type: opentelekomcloud:CfwServiceGroupV1
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 CfwServiceGroupV1Args
- 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 CfwServiceGroupV1Args
- 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 CfwServiceGroupV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CfwServiceGroupV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CfwServiceGroupV1Args
- 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 cfwServiceGroupV1Resource = new Opentelekomcloud.CfwServiceGroupV1("cfwServiceGroupV1Resource", new()
{
ObjectId = "string",
Description = "string",
Name = "string",
Timeouts = new Opentelekomcloud.Inputs.CfwServiceGroupV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewCfwServiceGroupV1(ctx, "cfwServiceGroupV1Resource", &opentelekomcloud.CfwServiceGroupV1Args{
ObjectId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &opentelekomcloud.CfwServiceGroupV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var cfwServiceGroupV1Resource = new CfwServiceGroupV1("cfwServiceGroupV1Resource", CfwServiceGroupV1Args.builder()
.objectId("string")
.description("string")
.name("string")
.timeouts(CfwServiceGroupV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
cfw_service_group_v1_resource = opentelekomcloud.CfwServiceGroupV1("cfwServiceGroupV1Resource",
object_id="string",
description="string",
name="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const cfwServiceGroupV1Resource = new opentelekomcloud.CfwServiceGroupV1("cfwServiceGroupV1Resource", {
objectId: "string",
description: "string",
name: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: opentelekomcloud:CfwServiceGroupV1
properties:
description: string
name: string
objectId: string
timeouts:
create: string
delete: string
update: string
CfwServiceGroupV1 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 CfwServiceGroupV1 resource accepts the following input properties:
- Object
Id string - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- Description string
- Specifies the description of the service group.
- Name string
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- Timeouts
Cfw
Service Group V1Timeouts
- Object
Id string - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- Description string
- Specifies the description of the service group.
- Name string
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- Timeouts
Cfw
Service Group V1Timeouts Args
- object
Id String - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- description String
- Specifies the description of the service group.
- name String
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- timeouts
Cfw
Service Group V1Timeouts
- object
Id string - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- description string
- Specifies the description of the service group.
- name string
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- timeouts
Cfw
Service Group V1Timeouts
- object_
id str - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- description str
- Specifies the description of the service group.
- name str
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- timeouts
Cfw
Service Group V1Timeouts Args
- object
Id String - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- description String
- Specifies the description of the service group.
- name String
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CfwServiceGroupV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Set doubleType - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database).
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Set float64Type - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database).
- id String
- The provider-assigned unique ID for this managed resource.
- service
Set DoubleType - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database).
- id string
- The provider-assigned unique ID for this managed resource.
- service
Set numberType - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database).
- id str
- The provider-assigned unique ID for this managed resource.
- service_
set_ floattype - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database).
- id String
- The provider-assigned unique ID for this managed resource.
- service
Set NumberType - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database).
Look up Existing CfwServiceGroupV1 Resource
Get an existing CfwServiceGroupV1 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?: CfwServiceGroupV1State, opts?: CustomResourceOptions): CfwServiceGroupV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
object_id: Optional[str] = None,
service_set_type: Optional[float] = None,
timeouts: Optional[CfwServiceGroupV1TimeoutsArgs] = None) -> CfwServiceGroupV1
func GetCfwServiceGroupV1(ctx *Context, name string, id IDInput, state *CfwServiceGroupV1State, opts ...ResourceOption) (*CfwServiceGroupV1, error)
public static CfwServiceGroupV1 Get(string name, Input<string> id, CfwServiceGroupV1State? state, CustomResourceOptions? opts = null)
public static CfwServiceGroupV1 get(String name, Output<String> id, CfwServiceGroupV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:CfwServiceGroupV1 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.
- Description string
- Specifies the description of the service group.
- Name string
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- Object
Id string - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- Service
Set doubleType - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - Timeouts
Cfw
Service Group V1Timeouts
- Description string
- Specifies the description of the service group.
- Name string
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- Object
Id string - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- Service
Set float64Type - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - Timeouts
Cfw
Service Group V1Timeouts Args
- description String
- Specifies the description of the service group.
- name String
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- object
Id String - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- service
Set DoubleType - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - timeouts
Cfw
Service Group V1Timeouts
- description string
- Specifies the description of the service group.
- name string
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- object
Id string - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- service
Set numberType - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - timeouts
Cfw
Service Group V1Timeouts
- description str
- Specifies the description of the service group.
- name str
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- object_
id str - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- service_
set_ floattype - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - timeouts
Cfw
Service Group V1Timeouts Args
- description String
- Specifies the description of the service group.
- name String
- Specifies the CFW Service group name. The CFW service group name of the same type is unique in the same firewall.
- object
Id String - Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- service
Set NumberType - Indicates the Service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - timeouts Property Map
Supporting Types
CfwServiceGroupV1Timeouts, CfwServiceGroupV1TimeoutsArgs
Import
CFW Service Group V1 resource can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/cfwServiceGroupV1:CfwServiceGroupV1 group_1 b4cd6aeb0b7445d3bf271457c6941544in09
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.