fortios.firewall.Internetservicename
Explore with Pulumi AI
Define internet service names. Applies to FortiOS Version >= 6.4.0
.
Create Internetservicename Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Internetservicename(name: string, args?: InternetservicenameArgs, opts?: CustomResourceOptions);
@overload
def Internetservicename(resource_name: str,
args: Optional[InternetservicenameArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Internetservicename(resource_name: str,
opts: Optional[ResourceOptions] = None,
city_id: Optional[int] = None,
country_id: Optional[int] = None,
internet_service_id: Optional[int] = None,
name: Optional[str] = None,
region_id: Optional[int] = None,
type: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewInternetservicename(ctx *Context, name string, args *InternetservicenameArgs, opts ...ResourceOption) (*Internetservicename, error)
public Internetservicename(string name, InternetservicenameArgs? args = null, CustomResourceOptions? opts = null)
public Internetservicename(String name, InternetservicenameArgs args)
public Internetservicename(String name, InternetservicenameArgs args, CustomResourceOptions options)
type: fortios:firewall:Internetservicename
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 InternetservicenameArgs
- 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 InternetservicenameArgs
- 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 InternetservicenameArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InternetservicenameArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InternetservicenameArgs
- 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 internetservicenameResource = new Fortios.Firewall.Internetservicename("internetservicenameResource", new()
{
CityId = 0,
CountryId = 0,
InternetServiceId = 0,
Name = "string",
RegionId = 0,
Type = "string",
Vdomparam = "string",
});
example, err := firewall.NewInternetservicename(ctx, "internetservicenameResource", &firewall.InternetservicenameArgs{
CityId: pulumi.Int(0),
CountryId: pulumi.Int(0),
InternetServiceId: pulumi.Int(0),
Name: pulumi.String("string"),
RegionId: pulumi.Int(0),
Type: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var internetservicenameResource = new Internetservicename("internetservicenameResource", InternetservicenameArgs.builder()
.cityId(0)
.countryId(0)
.internetServiceId(0)
.name("string")
.regionId(0)
.type("string")
.vdomparam("string")
.build());
internetservicename_resource = fortios.firewall.Internetservicename("internetservicenameResource",
city_id=0,
country_id=0,
internet_service_id=0,
name="string",
region_id=0,
type="string",
vdomparam="string")
const internetservicenameResource = new fortios.firewall.Internetservicename("internetservicenameResource", {
cityId: 0,
countryId: 0,
internetServiceId: 0,
name: "string",
regionId: 0,
type: "string",
vdomparam: "string",
});
type: fortios:firewall:Internetservicename
properties:
cityId: 0
countryId: 0
internetServiceId: 0
name: string
regionId: 0
type: string
vdomparam: string
Internetservicename 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 Internetservicename resource accepts the following input properties:
- City
Id int - City ID.
- Country
Id int - Country or Area ID.
- Internet
Service intId - Internet Service ID.
- Name string
- Internet Service name.
- Region
Id int - Region ID.
- Type string
- Internet Service name type. Valid values:
default
,location
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- City
Id int - City ID.
- Country
Id int - Country or Area ID.
- Internet
Service intId - Internet Service ID.
- Name string
- Internet Service name.
- Region
Id int - Region ID.
- Type string
- Internet Service name type. Valid values:
default
,location
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- city
Id Integer - City ID.
- country
Id Integer - Country or Area ID.
- internet
Service IntegerId - Internet Service ID.
- name String
- Internet Service name.
- region
Id Integer - Region ID.
- type String
- Internet Service name type. Valid values:
default
,location
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- city
Id number - City ID.
- country
Id number - Country or Area ID.
- internet
Service numberId - Internet Service ID.
- name string
- Internet Service name.
- region
Id number - Region ID.
- type string
- Internet Service name type. Valid values:
default
,location
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- city_
id int - City ID.
- country_
id int - Country or Area ID.
- internet_
service_ intid - Internet Service ID.
- name str
- Internet Service name.
- region_
id int - Region ID.
- type str
- Internet Service name type. Valid values:
default
,location
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- city
Id Number - City ID.
- country
Id Number - Country or Area ID.
- internet
Service NumberId - Internet Service ID.
- name String
- Internet Service name.
- region
Id Number - Region ID.
- type String
- Internet Service name type. Valid values:
default
,location
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Internetservicename 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 Internetservicename Resource
Get an existing Internetservicename 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?: InternetservicenameState, opts?: CustomResourceOptions): Internetservicename
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
city_id: Optional[int] = None,
country_id: Optional[int] = None,
internet_service_id: Optional[int] = None,
name: Optional[str] = None,
region_id: Optional[int] = None,
type: Optional[str] = None,
vdomparam: Optional[str] = None) -> Internetservicename
func GetInternetservicename(ctx *Context, name string, id IDInput, state *InternetservicenameState, opts ...ResourceOption) (*Internetservicename, error)
public static Internetservicename Get(string name, Input<string> id, InternetservicenameState? state, CustomResourceOptions? opts = null)
public static Internetservicename get(String name, Output<String> id, InternetservicenameState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- City
Id int - City ID.
- Country
Id int - Country or Area ID.
- Internet
Service intId - Internet Service ID.
- Name string
- Internet Service name.
- Region
Id int - Region ID.
- Type string
- Internet Service name type. Valid values:
default
,location
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- City
Id int - City ID.
- Country
Id int - Country or Area ID.
- Internet
Service intId - Internet Service ID.
- Name string
- Internet Service name.
- Region
Id int - Region ID.
- Type string
- Internet Service name type. Valid values:
default
,location
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- city
Id Integer - City ID.
- country
Id Integer - Country or Area ID.
- internet
Service IntegerId - Internet Service ID.
- name String
- Internet Service name.
- region
Id Integer - Region ID.
- type String
- Internet Service name type. Valid values:
default
,location
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- city
Id number - City ID.
- country
Id number - Country or Area ID.
- internet
Service numberId - Internet Service ID.
- name string
- Internet Service name.
- region
Id number - Region ID.
- type string
- Internet Service name type. Valid values:
default
,location
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- city_
id int - City ID.
- country_
id int - Country or Area ID.
- internet_
service_ intid - Internet Service ID.
- name str
- Internet Service name.
- region_
id int - Region ID.
- type str
- Internet Service name type. Valid values:
default
,location
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- city
Id Number - City ID.
- country
Id Number - Country or Area ID.
- internet
Service NumberId - Internet Service ID.
- name String
- Internet Service name.
- region
Id Number - Region ID.
- type String
- Internet Service name type. Valid values:
default
,location
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Import
Firewall InternetServiceName can be imported using any of these accepted formats:
$ pulumi import fortios:firewall/internetservicename:Internetservicename labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:firewall/internetservicename:Internetservicename labelname {{name}}
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.