Show / Hide Table of Contents

Class NetworkAttachment

Provides a Cloud Connect Network Attachment resource. This topic describes how to associate a Smart Access Gateway (SAG) instance with a network instance. You must associate an SAG instance with a network instance if you want to connect the SAG to Alibaba Cloud. You can connect an SAG to Alibaba Cloud through a leased line, the Internet, or the active and standby links.

For information about Cloud Connect Network Attachment and how to use it, see What is Cloud Connect Network Attachment.

NOTE: Available in 1.64.0+

NOTE: Only the following regions support. [cn-shanghai, cn-shanghai-finance-1, cn-hongkong, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-5, ap-northeast-1, eu-central-1]

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var ccn = new AliCloud.CloudConnect.Network("ccn", new AliCloud.CloudConnect.NetworkArgs
    {
        IsDefault = "true",
    });
    var @default = new AliCloud.CloudConnect.NetworkAttachment("default", new AliCloud.CloudConnect.NetworkAttachmentArgs
    {
        CcnId = ccn.Id,
        SagId = "sag-xxxxx",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
NetworkAttachment
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.CloudConnect
Assembly: Pulumi.AliCloud.dll
Syntax
public class NetworkAttachment : CustomResource

Constructors

View Source

NetworkAttachment(String, NetworkAttachmentArgs, CustomResourceOptions)

Create a NetworkAttachment resource with the given unique name, arguments, and options.

Declaration
public NetworkAttachment(string name, NetworkAttachmentArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

NetworkAttachmentArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

CcnId

The ID of the CCN instance.

Declaration
public Output<string> CcnId { get; }
Property Value
Type Description
Output<System.String>
View Source

SagId

The ID of the Smart Access Gateway instance.

Declaration
public Output<string> SagId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, NetworkAttachmentState, CustomResourceOptions)

Get an existing NetworkAttachment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static NetworkAttachment Get(string name, Input<string> id, NetworkAttachmentState 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.

NetworkAttachmentState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
NetworkAttachment
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.