すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:DATASOURCE::SAE::Applications

最終更新日:Jan 16, 2025

DATASOURCE::SAE::Applications は、アプリケーションを照会するために使用されます。

構文

{
  "Type": "DATASOURCE::SAE::Applications",
  "Properties": {
    "NamespaceId": String,
    "FieldValue": String,
    "AppName": String,
    "FieldType": String,
    "RefreshOptions": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

NamespaceId

String

いいえ

はい

名前空間 ID。

なし。

FieldValue

String

いいえ

はい

アプリケーションをフィルタリングするために使用される条件。 アプリケーション名、アプリケーション ID、関連付けられているサーバーロードバランサー (SLB) インスタンスの IP アドレス、またはアプリケーションインスタンスの IP アドレスでアプリケーションを検索できます。

なし。

AppName

String

いいえ

はい

アプリケーション名。

なし。

FieldType

String

いいえ

はい

アプリケーションがフィルタリングされる基準となるディメンション。

有効な値:

  • appName: アプリケーション名。

  • appIds: アプリケーション ID。

  • slbIps: SLB インスタンスの IP アドレス。

  • instanceIps: インスタンスの IP アドレス。

RefreshOptions

String

いいえ

はい

スタックが更新されたときのデータソースリソースの更新ポリシー。

有効な値:

  • Never (デフォルト): スタックが更新されたときにデータソースリソースを更新しません。

  • Always: スタックが更新されたときにデータソースリソースを更新します。

戻り値 (Fn::GetAtt)

  • Applications: アプリケーションの詳細。

  • ApplicationIds: アプリケーションの ID。

プロパティ

タイプ

説明

制約

ApplicationIds

List

アプリケーションの ID。

なし。

Applications

List

アプリケーションの詳細。

なし。

AppId

String

アプリケーション ID。

なし。

AppName

String

アプリケーション名。

なし。

AppDescription

String

アプリケーションの説明。

なし。

ScaleRuleEnabled

Boolean

自動スケーリングが有効になっているかどうかを示します。

有効な値:

  • true

  • false

Instances

Number

アプリケーションインスタンスの数。

なし。

RunningInstances

Number

実行中のアプリケーションインスタンスの数。

なし。

AppDeletingStatus

Boolean

アプリケーションが削除されているかどうかを示します。

有効な値:

  • true

  • false

RegionId

String

アプリケーションのリージョン ID。

なし。

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AppName": {
      "Type": "String",
      "Description": "アプリケーションの名前です。" // The name of application.
    }
  },
  "Resources": {
    "Applications": {
      "Type": "DATASOURCE::SAE::Applications",
      "Properties": {
        "AppName": {
          "Ref": "AppName"
        }
      }
    }
  },
  "Outputs": {
    "Applications": {
      "Description": "アプリケーションのリストです。" // The list of applications.
      "Value": {
        "Fn::GetAtt": [
          "Applications",
          "Applications"
        ]
      }
    },
    "ApplicationIds": {
      "Description": "アプリケーション ID のリストです。" // The list of application IDs.
      "Value": {
        "Fn::GetAtt": [
          "Applications",
          "ApplicationIds"
        ]
      }
    }
  }
}
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AppName:
    Type: String
    Description: アプリケーションの名前です。 # The name of application.
Resources:
  Applications:
    Type: DATASOURCE::SAE::Applications
    Properties:
      AppName:
        Ref: AppName
Outputs:
  Applications:
    Description: アプリケーションのリストです。 # The list of applications.
    Value:
      Fn::GetAtt:
        - Applications
        - Applications
  ApplicationIds:
    Description: アプリケーション ID のリストです。 # The list of application IDs.
    Value:
      Fn::GetAtt:
        - Applications
        - ApplicationIds