1. Packages
  2. Packages
  3. Linode Provider
  4. API Docs
  5. InstanceSharedIps
Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
linode logo
Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Create InstanceSharedIps Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InstanceSharedIps(name: string, args: InstanceSharedIpsArgs, opts?: CustomResourceOptions);
    @overload
    def InstanceSharedIps(resource_name: str,
                          args: InstanceSharedIpsArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstanceSharedIps(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          addresses: Optional[Sequence[str]] = None,
                          linode_id: Optional[int] = None)
    func NewInstanceSharedIps(ctx *Context, name string, args InstanceSharedIpsArgs, opts ...ResourceOption) (*InstanceSharedIps, error)
    public InstanceSharedIps(string name, InstanceSharedIpsArgs args, CustomResourceOptions? opts = null)
    public InstanceSharedIps(String name, InstanceSharedIpsArgs args)
    public InstanceSharedIps(String name, InstanceSharedIpsArgs args, CustomResourceOptions options)
    
    type: linode:InstanceSharedIps
    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 InstanceSharedIpsArgs
    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 InstanceSharedIpsArgs
    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 InstanceSharedIpsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceSharedIpsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceSharedIpsArgs
    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 instanceSharedIpsResource = new Linode.InstanceSharedIps("instanceSharedIpsResource", new()
    {
        Addresses = new[]
        {
            "string",
        },
        LinodeId = 0,
    });
    
    example, err := linode.NewInstanceSharedIps(ctx, "instanceSharedIpsResource", &linode.InstanceSharedIpsArgs{
    	Addresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LinodeId: pulumi.Int(0),
    })
    
    var instanceSharedIpsResource = new InstanceSharedIps("instanceSharedIpsResource", InstanceSharedIpsArgs.builder()
        .addresses("string")
        .linodeId(0)
        .build());
    
    instance_shared_ips_resource = linode.InstanceSharedIps("instanceSharedIpsResource",
        addresses=["string"],
        linode_id=0)
    
    const instanceSharedIpsResource = new linode.InstanceSharedIps("instanceSharedIpsResource", {
        addresses: ["string"],
        linodeId: 0,
    });
    
    type: linode:InstanceSharedIps
    properties:
        addresses:
            - string
        linodeId: 0
    

    InstanceSharedIps 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 InstanceSharedIps resource accepts the following input properties:

    Addresses List<string>
    The set of IPs to share with the Linode.
    LinodeId int
    The ID of the Linode to share the IPs to.
    Addresses []string
    The set of IPs to share with the Linode.
    LinodeId int
    The ID of the Linode to share the IPs to.
    addresses List<String>
    The set of IPs to share with the Linode.
    linodeId Integer
    The ID of the Linode to share the IPs to.
    addresses string[]
    The set of IPs to share with the Linode.
    linodeId number
    The ID of the Linode to share the IPs to.
    addresses Sequence[str]
    The set of IPs to share with the Linode.
    linode_id int
    The ID of the Linode to share the IPs to.
    addresses List<String>
    The set of IPs to share with the Linode.
    linodeId Number
    The ID of the Linode to share the IPs to.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InstanceSharedIps 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 InstanceSharedIps Resource

    Get an existing InstanceSharedIps 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?: InstanceSharedIpsState, opts?: CustomResourceOptions): InstanceSharedIps
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            addresses: Optional[Sequence[str]] = None,
            linode_id: Optional[int] = None) -> InstanceSharedIps
    func GetInstanceSharedIps(ctx *Context, name string, id IDInput, state *InstanceSharedIpsState, opts ...ResourceOption) (*InstanceSharedIps, error)
    public static InstanceSharedIps Get(string name, Input<string> id, InstanceSharedIpsState? state, CustomResourceOptions? opts = null)
    public static InstanceSharedIps get(String name, Output<String> id, InstanceSharedIpsState state, CustomResourceOptions options)
    resources:  _:    type: linode:InstanceSharedIps    get:      id: ${id}
    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.
    The following state arguments are supported:
    Addresses List<string>
    The set of IPs to share with the Linode.
    LinodeId int
    The ID of the Linode to share the IPs to.
    Addresses []string
    The set of IPs to share with the Linode.
    LinodeId int
    The ID of the Linode to share the IPs to.
    addresses List<String>
    The set of IPs to share with the Linode.
    linodeId Integer
    The ID of the Linode to share the IPs to.
    addresses string[]
    The set of IPs to share with the Linode.
    linodeId number
    The ID of the Linode to share the IPs to.
    addresses Sequence[str]
    The set of IPs to share with the Linode.
    linode_id int
    The ID of the Linode to share the IPs to.
    addresses List<String>
    The set of IPs to share with the Linode.
    linodeId Number
    The ID of the Linode to share the IPs to.

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo
    Viewing docs for Linode v3.12.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.