DATASOURCE::CR::Instances is used to query Container Registry instances.

Syntax

{
  "Type": "DATASOURCE::CR::Instances",
  "Properties": {
    "InstanceName": String,
    "ResourceGroupId": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
InstanceNameStringNoYesThe name of the instance. None.
ResourceGroupIdStringNoYesThe ID of the resource group. None.

Return values

Fn::GetAtt

  • Instances: details of the instances.
  • InstanceIds: the IDs of the instances.
PropertyTypeDescriptionConstraint
InstanceIdsListThe IDs of the instances. None.
InstancesListDetails of the instances. None.
StatusStringThe state of the instance. None.
ModifiedTimeStringThe time when the instance was last modified. None.
InstanceIdStringThe instance ID. None.
InstanceSpecificationStringThe edition of the Enterprise Edition instance. None.
RegionIdStringThe region ID. None.
ResourceGroupIdStringThe ID of the resource group. None.
InstanceNameStringThe name of the instance. None.
CreateTimeStringThe time when the instance was created. None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::CR::Instances
        Properties:
          InstanceName: demo
    Outputs:
      Instances:
        Description: The list of instances.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Instances
      InstanceIds:
        Description: The list of instance IDs.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - InstanceIds
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::CR::Instances",
          "Properties": {
            "InstanceName": "demo"
          }
        }
      },
      "Outputs": {
        "Instances": {
          "Description": "The list of instances.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Instances"
            ]
          }
        },
        "InstanceIds": {
          "Description": "The list of instance IDs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InstanceIds"
            ]
          }
        }
      }
    }