Service
Manages a V2 Neutron VPN service resource within OpenStack.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var service1 = new OpenStack.VPNaaS.Service("service1", new OpenStack.VPNaaS.ServiceArgs
{
AdminStateUp = true,
RouterId = "14a75700-fc03-4602-9294-26ee44f366b3",
});
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
service1 = openstack.vpnaas.Service("service1",
admin_state_up="true",
router_id="14a75700-fc03-4602-9294-26ee44f366b3")import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const service1 = new openstack.vpnaas.Service("service_1", {
adminStateUp: true,
routerId: "14a75700-fc03-4602-9294-26ee44f366b3",
});Create a Service Resource
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);def Service(resource_name, opts=None, admin_state_up=None, description=None, name=None, region=None, router_id=None, subnet_id=None, tenant_id=None, value_specs=None, __props__=None);func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Service Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Service resource accepts the following input properties:
- Router
Id string The ID of the router. Changing this creates a new service.
- Admin
State boolUp The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
- Description string
The human-readable description for the service. Changing this updates the description of the existing service.
- Name string
The name of the service. Changing this updates the name of the existing service.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a VPN service. If omitted, the
regionargument of the provider is used. Changing this creates a new service.- Subnet
Id string SubnetID is the ID of the subnet. Default is null.
- Tenant
Id string The owner of the service. Required if admin wants to create a service for another project. Changing this creates a new service.
- Value
Specs Dictionary<string, object> Map of additional options.
- Router
Id string The ID of the router. Changing this creates a new service.
- Admin
State boolUp The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
- Description string
The human-readable description for the service. Changing this updates the description of the existing service.
- Name string
The name of the service. Changing this updates the name of the existing service.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a VPN service. If omitted, the
regionargument of the provider is used. Changing this creates a new service.- Subnet
Id string SubnetID is the ID of the subnet. Default is null.
- Tenant
Id string The owner of the service. Required if admin wants to create a service for another project. Changing this creates a new service.
- Value
Specs map[string]interface{} Map of additional options.
- router
Id string The ID of the router. Changing this creates a new service.
- admin
State booleanUp The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
- description string
The human-readable description for the service. Changing this updates the description of the existing service.
- name string
The name of the service. Changing this updates the name of the existing service.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a VPN service. If omitted, the
regionargument of the provider is used. Changing this creates a new service.- subnet
Id string SubnetID is the ID of the subnet. Default is null.
- tenant
Id string The owner of the service. Required if admin wants to create a service for another project. Changing this creates a new service.
- value
Specs {[key: string]: any} Map of additional options.
- router_
id str The ID of the router. Changing this creates a new service.
- admin_
state_ boolup The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
- description str
The human-readable description for the service. Changing this updates the description of the existing service.
- name str
The name of the service. Changing this updates the name of the existing service.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create a VPN service. If omitted, the
regionargument of the provider is used. Changing this creates a new service.- subnet_
id str SubnetID is the ID of the subnet. Default is null.
- tenant_
id str The owner of the service. Required if admin wants to create a service for another project. Changing this creates a new service.
- value_
specs Dict[str, Any] Map of additional options.
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
- External
V4Ip string The read-only external (public) IPv4 address that is used for the VPN service.
- External
V6Ip string The read-only external (public) IPv6 address that is used for the VPN service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
- External
V4Ip string The read-only external (public) IPv4 address that is used for the VPN service.
- External
V6Ip string The read-only external (public) IPv6 address that is used for the VPN service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
- external
V4Ip string The read-only external (public) IPv4 address that is used for the VPN service.
- external
V6Ip string The read-only external (public) IPv6 address that is used for the VPN service.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
- external_
v4_ strip The read-only external (public) IPv4 address that is used for the VPN service.
- external_
v6_ strip The read-only external (public) IPv6 address that is used for the VPN service.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
Look up an Existing Service Resource
Get an existing Service 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?: ServiceState, opts?: CustomResourceOptions): Servicestatic get(resource_name, id, opts=None, admin_state_up=None, description=None, external_v4_ip=None, external_v6_ip=None, name=None, region=None, router_id=None, status=None, subnet_id=None, tenant_id=None, value_specs=None, __props__=None);func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Admin
State boolUp The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
- Description string
The human-readable description for the service. Changing this updates the description of the existing service.
- External
V4Ip string The read-only external (public) IPv4 address that is used for the VPN service.
- External
V6Ip string The read-only external (public) IPv6 address that is used for the VPN service.
- Name string
The name of the service. Changing this updates the name of the existing service.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a VPN service. If omitted, the
regionargument of the provider is used. Changing this creates a new service.- Router
Id string The ID of the router. Changing this creates a new service.
- Status string
Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
- Subnet
Id string SubnetID is the ID of the subnet. Default is null.
- Tenant
Id string The owner of the service. Required if admin wants to create a service for another project. Changing this creates a new service.
- Value
Specs Dictionary<string, object> Map of additional options.
- Admin
State boolUp The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
- Description string
The human-readable description for the service. Changing this updates the description of the existing service.
- External
V4Ip string The read-only external (public) IPv4 address that is used for the VPN service.
- External
V6Ip string The read-only external (public) IPv6 address that is used for the VPN service.
- Name string
The name of the service. Changing this updates the name of the existing service.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a VPN service. If omitted, the
regionargument of the provider is used. Changing this creates a new service.- Router
Id string The ID of the router. Changing this creates a new service.
- Status string
Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
- Subnet
Id string SubnetID is the ID of the subnet. Default is null.
- Tenant
Id string The owner of the service. Required if admin wants to create a service for another project. Changing this creates a new service.
- Value
Specs map[string]interface{} Map of additional options.
- admin
State booleanUp The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
- description string
The human-readable description for the service. Changing this updates the description of the existing service.
- external
V4Ip string The read-only external (public) IPv4 address that is used for the VPN service.
- external
V6Ip string The read-only external (public) IPv6 address that is used for the VPN service.
- name string
The name of the service. Changing this updates the name of the existing service.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a VPN service. If omitted, the
regionargument of the provider is used. Changing this creates a new service.- router
Id string The ID of the router. Changing this creates a new service.
- status string
Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
- subnet
Id string SubnetID is the ID of the subnet. Default is null.
- tenant
Id string The owner of the service. Required if admin wants to create a service for another project. Changing this creates a new service.
- value
Specs {[key: string]: any} Map of additional options.
- admin_
state_ boolup The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
- description str
The human-readable description for the service. Changing this updates the description of the existing service.
- external_
v4_ strip The read-only external (public) IPv4 address that is used for the VPN service.
- external_
v6_ strip The read-only external (public) IPv6 address that is used for the VPN service.
- name str
The name of the service. Changing this updates the name of the existing service.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create a VPN service. If omitted, the
regionargument of the provider is used. Changing this creates a new service.- router_
id str The ID of the router. Changing this creates a new service.
- status str
Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
- subnet_
id str SubnetID is the ID of the subnet. Default is null.
- tenant_
id str The owner of the service. Required if admin wants to create a service for another project. Changing this creates a new service.
- value_
specs Dict[str, Any] Map of additional options.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.