fortimanager.ObjectFirewallInternetservicename
Explore with Pulumi AI
Define internet service names.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";
const trname = new fortimanager.ObjectFirewallInternetservicename("trname", {
    countryId: 1,
    internetServiceId: "65536",
    type: "location",
});
import pulumi
import pulumi_fortimanager as fortimanager
trname = fortimanager.ObjectFirewallInternetservicename("trname",
    country_id=1,
    internet_service_id="65536",
    type="location")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fortimanager.NewObjectFirewallInternetservicename(ctx, "trname", &fortimanager.ObjectFirewallInternetservicenameArgs{
			CountryId:         pulumi.Float64(1),
			InternetServiceId: pulumi.String("65536"),
			Type:              pulumi.String("location"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;
return await Deployment.RunAsync(() => 
{
    var trname = new Fortimanager.ObjectFirewallInternetservicename("trname", new()
    {
        CountryId = 1,
        InternetServiceId = "65536",
        Type = "location",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectFirewallInternetservicename;
import com.pulumi.fortimanager.ObjectFirewallInternetservicenameArgs;
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 trname = new ObjectFirewallInternetservicename("trname", ObjectFirewallInternetservicenameArgs.builder()
            .countryId(1)
            .internetServiceId("65536")
            .type("location")
            .build());
    }
}
resources:
  trname:
    type: fortimanager:ObjectFirewallInternetservicename
    properties:
      countryId: 1
      internetServiceId: '65536'
      type: location
Create ObjectFirewallInternetservicename Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectFirewallInternetservicename(name: string, args?: ObjectFirewallInternetservicenameArgs, opts?: CustomResourceOptions);@overload
def ObjectFirewallInternetservicename(resource_name: str,
                                      args: Optional[ObjectFirewallInternetservicenameArgs] = None,
                                      opts: Optional[ResourceOptions] = None)
@overload
def ObjectFirewallInternetservicename(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      adom: Optional[str] = None,
                                      city_id: Optional[float] = None,
                                      country_id: Optional[float] = None,
                                      internet_service_id: Optional[str] = None,
                                      name: Optional[str] = None,
                                      object_firewall_internetservicename_id: Optional[str] = None,
                                      region_id: Optional[float] = None,
                                      scopetype: Optional[str] = None,
                                      type: Optional[str] = None)func NewObjectFirewallInternetservicename(ctx *Context, name string, args *ObjectFirewallInternetservicenameArgs, opts ...ResourceOption) (*ObjectFirewallInternetservicename, error)public ObjectFirewallInternetservicename(string name, ObjectFirewallInternetservicenameArgs? args = null, CustomResourceOptions? opts = null)
public ObjectFirewallInternetservicename(String name, ObjectFirewallInternetservicenameArgs args)
public ObjectFirewallInternetservicename(String name, ObjectFirewallInternetservicenameArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFirewallInternetservicename
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 ObjectFirewallInternetservicenameArgs
- 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 ObjectFirewallInternetservicenameArgs
- 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 ObjectFirewallInternetservicenameArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectFirewallInternetservicenameArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectFirewallInternetservicenameArgs
- 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 objectFirewallInternetservicenameResource = new Fortimanager.ObjectFirewallInternetservicename("objectFirewallInternetservicenameResource", new()
{
    Adom = "string",
    CityId = 0,
    CountryId = 0,
    InternetServiceId = "string",
    Name = "string",
    ObjectFirewallInternetservicenameId = "string",
    RegionId = 0,
    Scopetype = "string",
    Type = "string",
});
example, err := fortimanager.NewObjectFirewallInternetservicename(ctx, "objectFirewallInternetservicenameResource", &fortimanager.ObjectFirewallInternetservicenameArgs{
Adom: pulumi.String("string"),
CityId: pulumi.Float64(0),
CountryId: pulumi.Float64(0),
InternetServiceId: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectFirewallInternetservicenameId: pulumi.String("string"),
RegionId: pulumi.Float64(0),
Scopetype: pulumi.String("string"),
Type: pulumi.String("string"),
})
var objectFirewallInternetservicenameResource = new ObjectFirewallInternetservicename("objectFirewallInternetservicenameResource", ObjectFirewallInternetservicenameArgs.builder()
    .adom("string")
    .cityId(0)
    .countryId(0)
    .internetServiceId("string")
    .name("string")
    .objectFirewallInternetservicenameId("string")
    .regionId(0)
    .scopetype("string")
    .type("string")
    .build());
object_firewall_internetservicename_resource = fortimanager.ObjectFirewallInternetservicename("objectFirewallInternetservicenameResource",
    adom="string",
    city_id=0,
    country_id=0,
    internet_service_id="string",
    name="string",
    object_firewall_internetservicename_id="string",
    region_id=0,
    scopetype="string",
    type="string")
const objectFirewallInternetservicenameResource = new fortimanager.ObjectFirewallInternetservicename("objectFirewallInternetservicenameResource", {
    adom: "string",
    cityId: 0,
    countryId: 0,
    internetServiceId: "string",
    name: "string",
    objectFirewallInternetservicenameId: "string",
    regionId: 0,
    scopetype: "string",
    type: "string",
});
type: fortimanager:ObjectFirewallInternetservicename
properties:
    adom: string
    cityId: 0
    countryId: 0
    internetServiceId: string
    name: string
    objectFirewallInternetservicenameId: string
    regionId: 0
    scopetype: string
    type: string
ObjectFirewallInternetservicename 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 ObjectFirewallInternetservicename resource accepts the following input properties:
- Adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- CityId double
- City ID.
- CountryId double
- Country or Area ID.
- InternetService stringId 
- Internet Service ID.
- Name string
- Internet Service name.
- ObjectFirewall stringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- RegionId double
- Region ID.
- Scopetype string
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- Type string
- Internet Service name type. Valid values: default,location.
- Adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- CityId float64
- City ID.
- CountryId float64
- Country or Area ID.
- InternetService stringId 
- Internet Service ID.
- Name string
- Internet Service name.
- ObjectFirewall stringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- RegionId float64
- Region ID.
- Scopetype string
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- Type string
- Internet Service name type. Valid values: default,location.
- adom String
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- cityId Double
- City ID.
- countryId Double
- Country or Area ID.
- internetService StringId 
- Internet Service ID.
- name String
- Internet Service name.
- objectFirewall StringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- regionId Double
- Region ID.
- scopetype String
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- type String
- Internet Service name type. Valid values: default,location.
- adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- cityId number
- City ID.
- countryId number
- Country or Area ID.
- internetService stringId 
- Internet Service ID.
- name string
- Internet Service name.
- objectFirewall stringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- regionId number
- Region ID.
- scopetype string
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- type string
- Internet Service name type. Valid values: default,location.
- adom str
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- city_id float
- City ID.
- country_id float
- Country or Area ID.
- internet_service_ strid 
- Internet Service ID.
- name str
- Internet Service name.
- object_firewall_ strinternetservicename_ id 
- an identifier for the resource with format {{name}}.
- region_id float
- Region ID.
- scopetype str
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- type str
- Internet Service name type. Valid values: default,location.
- adom String
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- cityId Number
- City ID.
- countryId Number
- Country or Area ID.
- internetService StringId 
- Internet Service ID.
- name String
- Internet Service name.
- objectFirewall StringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- regionId Number
- Region ID.
- scopetype String
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- type String
- Internet Service name type. Valid values: default,location.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectFirewallInternetservicename 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 str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ObjectFirewallInternetservicename Resource
Get an existing ObjectFirewallInternetservicename 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?: ObjectFirewallInternetservicenameState, opts?: CustomResourceOptions): ObjectFirewallInternetservicename@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        city_id: Optional[float] = None,
        country_id: Optional[float] = None,
        internet_service_id: Optional[str] = None,
        name: Optional[str] = None,
        object_firewall_internetservicename_id: Optional[str] = None,
        region_id: Optional[float] = None,
        scopetype: Optional[str] = None,
        type: Optional[str] = None) -> ObjectFirewallInternetservicenamefunc GetObjectFirewallInternetservicename(ctx *Context, name string, id IDInput, state *ObjectFirewallInternetservicenameState, opts ...ResourceOption) (*ObjectFirewallInternetservicename, error)public static ObjectFirewallInternetservicename Get(string name, Input<string> id, ObjectFirewallInternetservicenameState? state, CustomResourceOptions? opts = null)public static ObjectFirewallInternetservicename get(String name, Output<String> id, ObjectFirewallInternetservicenameState state, CustomResourceOptions options)resources:  _:    type: fortimanager:ObjectFirewallInternetservicename    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.
- Adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- CityId double
- City ID.
- CountryId double
- Country or Area ID.
- InternetService stringId 
- Internet Service ID.
- Name string
- Internet Service name.
- ObjectFirewall stringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- RegionId double
- Region ID.
- Scopetype string
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- Type string
- Internet Service name type. Valid values: default,location.
- Adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- CityId float64
- City ID.
- CountryId float64
- Country or Area ID.
- InternetService stringId 
- Internet Service ID.
- Name string
- Internet Service name.
- ObjectFirewall stringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- RegionId float64
- Region ID.
- Scopetype string
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- Type string
- Internet Service name type. Valid values: default,location.
- adom String
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- cityId Double
- City ID.
- countryId Double
- Country or Area ID.
- internetService StringId 
- Internet Service ID.
- name String
- Internet Service name.
- objectFirewall StringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- regionId Double
- Region ID.
- scopetype String
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- type String
- Internet Service name type. Valid values: default,location.
- adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- cityId number
- City ID.
- countryId number
- Country or Area ID.
- internetService stringId 
- Internet Service ID.
- name string
- Internet Service name.
- objectFirewall stringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- regionId number
- Region ID.
- scopetype string
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- type string
- Internet Service name type. Valid values: default,location.
- adom str
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- city_id float
- City ID.
- country_id float
- Country or Area ID.
- internet_service_ strid 
- Internet Service ID.
- name str
- Internet Service name.
- object_firewall_ strinternetservicename_ id 
- an identifier for the resource with format {{name}}.
- region_id float
- Region ID.
- scopetype str
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- type str
- Internet Service name type. Valid values: default,location.
- adom String
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- cityId Number
- City ID.
- countryId Number
- Country or Area ID.
- internetService StringId 
- Internet Service ID.
- name String
- Internet Service name.
- objectFirewall StringInternetservicename Id 
- an identifier for the resource with format {{name}}.
- regionId Number
- Region ID.
- scopetype String
- The scope of application of the resource. Valid values: inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- type String
- Internet Service name type. Valid values: default,location.
Import
ObjectFirewall InternetServiceName can be imported using any of these accepted formats:
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/objectFirewallInternetservicename:ObjectFirewallInternetservicename labelname {{name}}
$ unset “FORTIMANAGER_IMPORT_TABLE”
-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortimanager fortinetdev/terraform-provider-fortimanager
- License
- Notes
- This Pulumi package is based on the fortimanagerTerraform Provider.