Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOpts ¶
type CreateOpts struct { // The ID of the subnet to which the transit IP belongs. SubnetId string `json:"virsubnet_id" required:"true"` // The IP address IpAddress string `json:"ip_address,omitempty"` // The ID of the enterprise project to which the transit IP belongs. EnterpriseProjectId string `json:"enterprise_project_id,omitempty"` // The key/value pairs to associate with the transit IP. Tags []tags.ResourceTag `json:"tags,omitempty"` }
CreateOpts is the structure used to create a new transit IP.
type TransitIp ¶
type TransitIp struct { // The transit IP ID. ID string `json:"id"` // The project ID to which the transit IP (private NAT) belongs. ProjectId string `json:"project_id"` // The network interface ID of the transit IP for private NAT. NetworkInterfaceId string `json:"network_interface_id"` // The IP address of the transit IP. IpAddress string `json:"ip_address"` // The creation time. CreatedAt string `json:"created_at"` // The latest update time. UpdatedAt string `json:"updated_at"` // The ID of the subnet to which the transit IP belongs. SubnetId string `json:"virsubnet_id"` // The key/value pairs to associate with the transit IP. Tags []tags.ResourceTag `json:"tags"` // The ID of the private NAT gateway to which the transit IP belongs. GatewayId string `json:"gateway_id"` // The ID of the enterprise project to which the transit IP belongs. EnterpriseProjectId string `json:"enterprise_project_id"` }
TransitIp is the structure that represents the detail of the transit IP for private NAT.
func Create ¶
func Create(c *golangsdk.ServiceClient, opts CreateOpts) (*TransitIp, error)
Create is a method used to create a new transit IP using given parameters.
Click to show internal directories.
Click to hide internal directories.