Commit fe241e22 authored by Takumaru Sekine's avatar Takumaru Sekine Committed by Yas Naoi
Browse files

Issue #3256198 by sekinet, yas, Ryo Yamashita: Add a detailed view to SPA (AWS Cloud Subnet)

parent 8b9c03f1
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
import EntityInfoTemplate from 'model/EntityInfoTemplate';

const AWS_CLOUD_SUBNET_TEMPLATE: EntityInfoTemplate = {
  cloudServiceProvider: 'aws_cloud',
  entityName: 'subnet',
  entityRecords: [
    {
      panelName: 'Subnet',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'CIDR Block', name: 'cidr_block', type: 'default' },
        { labelName: 'Subnet ID', name: 'subnet_id', type: 'default' },
        { labelName: 'VPC', name: 'vpc_id', type: 'default' },
        { labelName: 'State', name: 'state', type: 'default' },
        { labelName: 'AWS account ID', name: 'account_id', type: 'default' },
        {
          labelName: 'Availability Zone', name: 'availability_zone', type: 'join', info: {
            entityTypeId: 'aws_cloud_instance',
            keyColumn: 'availability_zone',
            valueColumn: 'name',
          }
        },
        { labelName: 'Opt-In Status', name: 'opt_in_status', type: 'default' },
        { labelName: 'Region Name', name: 'region_name', type: 'default' },
        { labelName: 'Zone Name', name: 'zone_name', type: 'default' },
        { labelName: 'Zone ID', name: 'zone_id', type: 'default' },
        { labelName: 'Group Name', name: 'group_name', type: 'default' },
        { labelName: 'Network border group', name: 'network_border_group', type: 'default' },
        { labelName: 'Zone Type', name: 'zone_type', type: 'default' },
        { labelName: 'Created', name: 'created', type: 'datetime' },
      ]
    },
    {
      panelName: 'Tags',
      tableRecordList: ['tags'],
      keyValueRecords: [
        { labelName: 'Tags', name: 'tags', type: 'default' },
      ]
    },
  ]
};

export default AWS_CLOUD_SUBNET_TEMPLATE;
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ import AWS_CLOUD_VOLUME_TEMPLATE from 'constant/entity_info_template/aws_cloud/v
import AWS_CLOUD_SNAPSHOT_TEMPLATE from 'constant/entity_info_template/aws_cloud/snapshot';
import AWS_CLOUD_NETWORK_INTERFACE_TEMPLATE from 'constant/entity_info_template/aws_cloud/network_interface';
import AWS_CLOUD_VPC_TEMPLATE from 'constant/entity_info_template/aws_cloud/vpc';
import AWS_CLOUD_SUBNET_TEMPLATE from 'constant/entity_info_template/aws_cloud/subnet';
import K8S_POD_TEMPLATE from 'constant/entity_info_template/k8s/pod';

const ENTITY_INFO_LIST = [
@@ -19,6 +20,7 @@ const ENTITY_INFO_LIST = [
  AWS_CLOUD_SNAPSHOT_TEMPLATE,
  AWS_CLOUD_NETWORK_INTERFACE_TEMPLATE,
  AWS_CLOUD_VPC_TEMPLATE,
  AWS_CLOUD_SUBNET_TEMPLATE,
  K8S_POD_TEMPLATE,
];