ALIYUN::SAE::SlbBinding is used to bind an SLB instance to an application.

Syntax

{
  "Type": "ALIYUN::SAE::SlbBinding",
  "Properties": {
    "InternetSlbId": String,
    "AppId": String,
    "Intranet": String,
    "IntranetSlbId": String,
    "Internet": String
  }
}

Properties

Property Type Required Editable Description Constraint
InternetSlbId String No No The ID of the Internet SLB instance. Only non-shared instances are supported.
AppId String Yes No The ID of the deployed application. None
Intranet String No No Bind the private network SLB instance. For example, [{"port":80,"targetPort":8080,"protocol":"TCP"}] indicates that port 8080 of the container is used to expose the service through port 80 of the SLB. The protocol is TCP. None
IntranetSlbId String No No The ID of the intranet SLB instance. Only non-shared instances are supported.
Internet String No No Bind an Internet SLB instance. For example, [{"port":80,"targetPort":8080,"protocol":"TCP"}] indicates that port 8080 of the container is used to expose the service through port 80 of the SLB. The protocol is TCP. None

Response parameters

Fn::GetAtt

  • AppId: the ID of the application.
  • ChangeOrderId: the ID of the release Form, which is used to query the task execution status.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InternetSlbId": {
      "Type": "String",
      "Description": "Use SLB purchased specified, currently only supports non-shared examples"
    },
    "AppId": {
      "Type": "String",
      "Description": "Successful application deployment target ID"
    },
    "Intranet": {
      "Type": "String",
      "Description": "Bind private SLB. For example: [{ \"port\": 80, \"targetPort\": 8080, \"protocol\": \"TCP\"}], shows a container port 8080 through port 80 slb exposed service, the protocol is TCP, the blank is ignored."
    },
    "IntranetSlbId": {
      "Type": "String",
      "Description": "Use SLB purchased specified, currently only supports non-shared examples"
    },
    "Internet": {
      "Type": "String",
      "Description": "Binding public SLB. For example: [{ \"port\": 80, \"targetPort\": 8080, \"protocol\": \"TCP\"}], shows a container port 8080 through port 80 slb exposed service, the protocol is TCP, the blank is ignored."
    }
  },
  "Resources": {
    "SlbBinding": {
      "Type": "ALIYUN::SAE::SlbBinding",
      "Properties": {
        "InternetSlbId": {
          "Ref": "InternetSlbId"
        },
        "AppId": {
          "Ref": "AppId"
        },
        "Intranet": {
          "Ref": "Intranet"
        },
        "IntranetSlbId": {
          "Ref": "IntranetSlbId"
        },
        "Internet": {
          "Ref": "Internet"
        }
      }
    }
  },
  "Outputs": {
    "AppId": {
      "Description": "Successful application deployment target ID",
      "Value": {
        "Fn::GetAtt": [
          "SlbBinding",
          "AppId"
        ]
      }
    },
    "ChangeOrderId": {
      "Description": "Return to release a single ID, used to query task execution status.",
      "Value": {
        "Fn::GetAtt": [
          "SlbBinding",
          "ChangeOrderId"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InternetSlbId:
    Type: String
    Description: 'Use SLB purchased specified, currently only supports non-shared examples'
  AppId:
    Type: String
    Description: Successful application deployment target ID
  Intranet:
    Type: String
    Description: >-
      Bind private SLB. For example: [{ "port": 80, "targetPort": 8080,
      "protocol": "TCP"}], shows a container port 8080 through port 80 slb
      exposed service, the protocol is TCP, the blank is ignored.
  IntranetSlbId:
    Type: String
    Description: 'Use SLB purchased specified, currently only supports non-shared examples'
  Internet:
    Type: String
    Description: >-
      Binding public SLB. For example: [{ "port": 80, "targetPort": 8080,
      "protocol": "TCP"}], shows a container port 8080 through port 80 slb
      exposed service, the protocol is TCP, the blank is ignored.
Resources:
  SlbBinding:
    Type: 'ALIYUN::SAE::SlbBinding'
    Properties:
      InternetSlbId:
        Ref: InternetSlbId
      AppId:
        Ref: AppId
      Intranet:
        Ref: Intranet
      IntranetSlbId:
        Ref: IntranetSlbId
      Internet:
        Ref: Internet
Outputs:
  AppId:
    Description: Successful application deployment target ID
    Value:
      'Fn::GetAtt':
        -SlbBinding
        -AppId
  ChangeOrderId:
    Description: 'Return to release a single ID, used to query task execution status.'
    Value:
      'Fn::GetAtt':
        -SlbBinding
        -ChangeOrderId