Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.VPNaaS
Assembly: Pulumi.OpenStack.dll
Syntax
public class Service : CustomResource
Constructors
View SourceService(String, ServiceArgs, CustomResourceOptions)
Create a Service resource with the given unique name, arguments, and options.
Declaration
public Service(string name, ServiceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ServiceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAdminStateUp
The administrative state of the resource. Can either be up(true) or down(false). Changing this updates the administrative state of the existing service.
Declaration
public Output<bool?> AdminStateUp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Description
The human-readable description for the service. Changing this updates the description of the existing service.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExternalV4Ip
The read-only external (public) IPv4 address that is used for the VPN service.
Declaration
public Output<string> ExternalV4Ip { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExternalV6Ip
The read-only external (public) IPv6 address that is used for the VPN service.
Declaration
public Output<string> ExternalV6Ip { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the service. Changing this updates the name of the existing service.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
The region in which to obtain the V2 Networking client.
A Networking client is needed to create a VPN service. If omitted, the
region argument of the provider is used. Changing this creates a new
service.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RouterId
The ID of the router. Changing this creates a new service.
Declaration
public Output<string> RouterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
Indicates whether IPsec VPN service is currently operational. Values are ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SubnetId
SubnetID is the ID of the subnet. Default is null.
Declaration
public Output<string> SubnetId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TenantId
The owner of the service. Required if admin wants to create a service for another project. Changing this creates a new service.
Declaration
public Output<string> TenantId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ValueSpecs
Map of additional options.
Declaration
public Output<ImmutableDictionary<string, object>> ValueSpecs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, ServiceState, CustomResourceOptions)
Get an existing Service resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Service Get(string name, Input<string> id, ServiceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ServiceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Service |