Cosmic Admin API Reference

createStaticRoute

Creates a static route

Request parameters

Parameter NameDescriptionRequired
cidrThe CIDR to create the static route fortrue
nexthopIP address of the nexthop to route the CIDR totrue
vpcidThe VPC id we are creating static route for.true
gatewayidThe private gateway id to get the ipaddress from (DEPRECATED!).false

Response Tags

Response NameDescription
idthe ID of static route
accountthe account associated with the static route
cidrThe CIDR to route
domainthe domain associated with the static route
domainidthe ID of the domain associated with the static route
nexthopGateway ip address the CIDR is routed to
projectthe project name of the static route
projectidthe project id of the static route
statethe state of the static route
vpcidVPC the static route belongs to
tags(*)the list of resource tags associated with static route
accountthe account associated with the tag
customercustomer associated with the tag
domainthe domain associated with the tag
domainidthe ID of the domain associated with the tag
keytag key name
projectthe project name where tag belongs to
projectidthe project id the tag belongs to
resourceidid of the resource
resourcetyperesource type
valuetag value