published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Provides a resource to create a Organization IP whitelist config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.OrganizationIpWhitelistConfig("example", {
zoneId: "z-1os7c9znogct",
ipWhitelists: [
"10.0.0.0/24",
"192.168.1.0/24",
"172.16.10.0/24",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.OrganizationIpWhitelistConfig("example",
zone_id="z-1os7c9znogct",
ip_whitelists=[
"10.0.0.0/24",
"192.168.1.0/24",
"172.16.10.0/24",
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewOrganizationIpWhitelistConfig(ctx, "example", &tencentcloud.OrganizationIpWhitelistConfigArgs{
ZoneId: pulumi.String("z-1os7c9znogct"),
IpWhitelists: pulumi.StringArray{
pulumi.String("10.0.0.0/24"),
pulumi.String("192.168.1.0/24"),
pulumi.String("172.16.10.0/24"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.OrganizationIpWhitelistConfig("example", new()
{
ZoneId = "z-1os7c9znogct",
IpWhitelists = new[]
{
"10.0.0.0/24",
"192.168.1.0/24",
"172.16.10.0/24",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationIpWhitelistConfig;
import com.pulumi.tencentcloud.OrganizationIpWhitelistConfigArgs;
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 example = new OrganizationIpWhitelistConfig("example", OrganizationIpWhitelistConfigArgs.builder()
.zoneId("z-1os7c9znogct")
.ipWhitelists(
"10.0.0.0/24",
"192.168.1.0/24",
"172.16.10.0/24")
.build());
}
}
resources:
example:
type: tencentcloud:OrganizationIpWhitelistConfig
properties:
zoneId: z-1os7c9znogct
ipWhitelists:
- 10.0.0.0/24
- 192.168.1.0/24
- 172.16.10.0/24
Example coming soon!
Create OrganizationIpWhitelistConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationIpWhitelistConfig(name: string, args: OrganizationIpWhitelistConfigArgs, opts?: CustomResourceOptions);@overload
def OrganizationIpWhitelistConfig(resource_name: str,
args: OrganizationIpWhitelistConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationIpWhitelistConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_whitelists: Optional[Sequence[str]] = None,
zone_id: Optional[str] = None,
organization_ip_whitelist_config_id: Optional[str] = None)func NewOrganizationIpWhitelistConfig(ctx *Context, name string, args OrganizationIpWhitelistConfigArgs, opts ...ResourceOption) (*OrganizationIpWhitelistConfig, error)public OrganizationIpWhitelistConfig(string name, OrganizationIpWhitelistConfigArgs args, CustomResourceOptions? opts = null)
public OrganizationIpWhitelistConfig(String name, OrganizationIpWhitelistConfigArgs args)
public OrganizationIpWhitelistConfig(String name, OrganizationIpWhitelistConfigArgs args, CustomResourceOptions options)
type: tencentcloud:OrganizationIpWhitelistConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_organizationipwhitelistconfig" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args OrganizationIpWhitelistConfigArgs
- 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 OrganizationIpWhitelistConfigArgs
- 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 OrganizationIpWhitelistConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationIpWhitelistConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationIpWhitelistConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OrganizationIpWhitelistConfig 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 OrganizationIpWhitelistConfig resource accepts the following input properties:
- Ip
Whitelists List<string> - IP whitelist entries.
- Zone
Id string - Zone ID.
- Organization
Ip stringWhitelist Config Id - ID of the resource.
- Ip
Whitelists []string - IP whitelist entries.
- Zone
Id string - Zone ID.
- Organization
Ip stringWhitelist Config Id - ID of the resource.
- ip_
whitelists list(string) - IP whitelist entries.
- zone_
id string - Zone ID.
- organization_
ip_ stringwhitelist_ config_ id - ID of the resource.
- ip
Whitelists List<String> - IP whitelist entries.
- zone
Id String - Zone ID.
- organization
Ip StringWhitelist Config Id - ID of the resource.
- ip
Whitelists string[] - IP whitelist entries.
- zone
Id string - Zone ID.
- organization
Ip stringWhitelist Config Id - ID of the resource.
- ip_
whitelists Sequence[str] - IP whitelist entries.
- zone_
id str - Zone ID.
- organization_
ip_ strwhitelist_ config_ id - ID of the resource.
- ip
Whitelists List<String> - IP whitelist entries.
- zone
Id String - Zone ID.
- organization
Ip StringWhitelist Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationIpWhitelistConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OrganizationIpWhitelistConfig Resource
Get an existing OrganizationIpWhitelistConfig 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?: OrganizationIpWhitelistConfigState, opts?: CustomResourceOptions): OrganizationIpWhitelistConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ip_whitelists: Optional[Sequence[str]] = None,
organization_ip_whitelist_config_id: Optional[str] = None,
zone_id: Optional[str] = None) -> OrganizationIpWhitelistConfigfunc GetOrganizationIpWhitelistConfig(ctx *Context, name string, id IDInput, state *OrganizationIpWhitelistConfigState, opts ...ResourceOption) (*OrganizationIpWhitelistConfig, error)public static OrganizationIpWhitelistConfig Get(string name, Input<string> id, OrganizationIpWhitelistConfigState? state, CustomResourceOptions? opts = null)public static OrganizationIpWhitelistConfig get(String name, Output<String> id, OrganizationIpWhitelistConfigState state, CustomResourceOptions options)resources: _: type: tencentcloud:OrganizationIpWhitelistConfig get: id: ${id}import {
to = tencentcloud_organizationipwhitelistconfig.example
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.
- Ip
Whitelists List<string> - IP whitelist entries.
- Organization
Ip stringWhitelist Config Id - ID of the resource.
- Zone
Id string - Zone ID.
- Ip
Whitelists []string - IP whitelist entries.
- Organization
Ip stringWhitelist Config Id - ID of the resource.
- Zone
Id string - Zone ID.
- ip_
whitelists list(string) - IP whitelist entries.
- organization_
ip_ stringwhitelist_ config_ id - ID of the resource.
- zone_
id string - Zone ID.
- ip
Whitelists List<String> - IP whitelist entries.
- organization
Ip StringWhitelist Config Id - ID of the resource.
- zone
Id String - Zone ID.
- ip
Whitelists string[] - IP whitelist entries.
- organization
Ip stringWhitelist Config Id - ID of the resource.
- zone
Id string - Zone ID.
- ip_
whitelists Sequence[str] - IP whitelist entries.
- organization_
ip_ strwhitelist_ config_ id - ID of the resource.
- zone_
id str - Zone ID.
- ip
Whitelists List<String> - IP whitelist entries.
- organization
Ip StringWhitelist Config Id - ID of the resource.
- zone
Id String - Zone ID.
Import
Organization IP whitelist config can be imported using the zoneId, e.g.
$ pulumi import tencentcloud:index/organizationIpWhitelistConfig:OrganizationIpWhitelistConfig example z-1os7c9znogct
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
