xref: /openbmc/bmcweb/features/redfish/schema/dmtf/csdl/AllowDeny_v1.xml (revision d125652e8a30dfeaad88bbfa5b1e04a80610469c)
12bde4061SEd Tanous<?xml version="1.0" encoding="UTF-8"?>
22bde4061SEd Tanous<!---->
32bde4061SEd Tanous<!--################################################################################       -->
4f2a8e57eSGunnar Mills<!--# Redfish Schema:  AllowDeny v1.0.3                                                    -->
52bde4061SEd Tanous<!--#                                                                                      -->
62bde4061SEd Tanous<!--# For a detailed change log, see the README file contained in the DSP8010 bundle,      -->
72bde4061SEd Tanous<!--# available at http://www.dmtf.org/standards/redfish                                   -->
8*d125652eSGunnar Mills<!--# Copyright 2014-2025 DMTF.                                                            -->
92bde4061SEd Tanous<!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
102bde4061SEd Tanous<!--################################################################################       -->
112bde4061SEd Tanous<!---->
122bde4061SEd Tanous<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
132bde4061SEd Tanous
142bde4061SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml">
152bde4061SEd Tanous    <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/>
162bde4061SEd Tanous  </edmx:Reference>
172bde4061SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Capabilities.V1.xml">
182bde4061SEd Tanous    <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"/>
192bde4061SEd Tanous  </edmx:Reference>
202bde4061SEd Tanous  <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Measures.V1.xml">
212bde4061SEd Tanous    <edmx:Include Namespace="Org.OData.Measures.V1" Alias="Measures"/>
222bde4061SEd Tanous  </edmx:Reference>
232bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
242bde4061SEd Tanous    <edmx:Include Namespace="Resource"/>
252bde4061SEd Tanous    <edmx:Include Namespace="Resource.v1_0_0"/>
262bde4061SEd Tanous  </edmx:Reference>
272bde4061SEd Tanous  <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
282bde4061SEd Tanous    <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
292bde4061SEd Tanous    <edmx:Include Namespace="Validation.v1_0_0" Alias="Validation"/>
302bde4061SEd Tanous  </edmx:Reference>
312bde4061SEd Tanous
322bde4061SEd Tanous  <edmx:DataServices>
332bde4061SEd Tanous
342bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="AllowDeny">
352bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
36f2a8e57eSGunnar Mills      <Annotation Term="Redfish.Language" String="en"/>
372bde4061SEd Tanous
382bde4061SEd Tanous      <EntityType Name="AllowDeny" BaseType="Resource.v1_0_0.Resource" Abstract="true">
39f2a8e57eSGunnar Mills        <Annotation Term="OData.Description" String="The `AllowDeny` schema represents a set of allow or deny configurations."/>
402bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This resource shall represent an AllowDeny resource in a Redfish implementation."/>
412bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
422bde4061SEd Tanous        <Annotation Term="Capabilities.InsertRestrictions">
432bde4061SEd Tanous          <Record>
442bde4061SEd Tanous            <PropertyValue Property="Insertable" Bool="false"/>
452bde4061SEd Tanous          </Record>
462bde4061SEd Tanous        </Annotation>
472bde4061SEd Tanous        <Annotation Term="Capabilities.UpdateRestrictions">
482bde4061SEd Tanous          <Record>
492bde4061SEd Tanous            <PropertyValue Property="Updatable" Bool="true"/>
502bde4061SEd Tanous          </Record>
512bde4061SEd Tanous        </Annotation>
522bde4061SEd Tanous        <Annotation Term="Capabilities.DeleteRestrictions">
532bde4061SEd Tanous          <Record>
542bde4061SEd Tanous            <PropertyValue Property="Deletable" Bool="true"/>
552bde4061SEd Tanous          </Record>
562bde4061SEd Tanous        </Annotation>
572bde4061SEd Tanous        <Annotation Term="Redfish.Uris">
582bde4061SEd Tanous          <Collection>
592bde4061SEd Tanous            <String>/redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}/AllowDeny/{AllowDenyId}</String>
602bde4061SEd Tanous            <String>/redfish/v1/Systems/{ComputerSystemId}/NetworkInterfaces/{NetworkInterfaceId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}/AllowDeny/{AllowDenyId}</String>
612bde4061SEd Tanous            <String>/redfish/v1/CompositionService/ResourceBlocks/{ResourceBlockId}/NetworkInterfaces/{NetworkInterfaceId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}/AllowDeny/{AllowDenyId}</String>
622bde4061SEd Tanous            <String>/redfish/v1/CompositionService/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/NetworkInterfaces/{NetworkInterfaceId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}/AllowDeny/{AllowDenyId}</String>
632bde4061SEd Tanous            <String>/redfish/v1/ResourceBlocks/{ResourceBlockId}/NetworkInterfaces/{NetworkInterfaceId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}/AllowDeny/{AllowDenyId}</String>
642bde4061SEd Tanous            <String>/redfish/v1/ResourceBlocks/{ResourceBlockId}/Systems/{ComputerSystemId}/NetworkInterfaces/{NetworkInterfaceId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}/AllowDeny/{AllowDenyId}</String>
652bde4061SEd Tanous          </Collection>
662bde4061SEd Tanous        </Annotation>
672bde4061SEd Tanous      </EntityType>
682bde4061SEd Tanous    </Schema>
692bde4061SEd Tanous
702bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="AllowDeny.v1_0_0">
712bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
722bde4061SEd Tanous      <Annotation Term="Redfish.Release" String="2021.2"/>
732bde4061SEd Tanous
742bde4061SEd Tanous      <EntityType Name="AllowDeny" BaseType="AllowDeny.AllowDeny">
752bde4061SEd Tanous        <Property Name="Direction" Type="AllowDeny.v1_0_0.DataDirection">
762bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
772bde4061SEd Tanous          <Annotation Term="OData.Description" String="Indicates the direction of the data to which this permission applies."/>
782bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This value shall indicate the direction of the data to which this permission applies for this network device function."/>
792bde4061SEd Tanous        </Property>
802bde4061SEd Tanous        <Property Name="AllowType" Type="AllowDeny.v1_0_0.AllowType">
812bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
822bde4061SEd Tanous          <Annotation Term="OData.Description" String="Indicates the type of permission."/>
832bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall indicate the type of permission."/>
842bde4061SEd Tanous        </Property>
852bde4061SEd Tanous        <Property Name="StatefulSession" Type="Edm.Boolean">
862bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
872bde4061SEd Tanous          <Annotation Term="OData.Description" String="Indicates if this is a permission that only applies to stateful connections."/>
882bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall indicate if this permission only applies to stateful connections, which are those using SYN, ACK, and FIN."/>
892bde4061SEd Tanous        </Property>
902bde4061SEd Tanous        <Property Name="IPAddressType" Type="AllowDeny.v1_0_0.IPAddressType">
912bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
92f2a8e57eSGunnar Mills          <Annotation Term="OData.Description" String="The type of IP address populated in the `IPAddressLower` and `IPAddressUpper` properties."/>
93f2a8e57eSGunnar Mills          <Annotation Term="OData.LongDescription" String="This property shall contain the type of IP address populated in the `IPAddressLower` and `IPAddressUpper` properties.  Services shall not permit mixing IPv6 and IPv4 addresses on the same resource."/>
942bde4061SEd Tanous        </Property>
952bde4061SEd Tanous        <Property Name="IPAddressLower" Type="Edm.String">
962bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
972bde4061SEd Tanous          <Annotation Term="OData.Description" String="The lower IP address to which this permission applies."/>
982bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the lower IP address to which this permission applies."/>
992bde4061SEd Tanous        </Property>
1002bde4061SEd Tanous        <Property Name="IPAddressUpper" Type="Edm.String">
1012bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
1022bde4061SEd Tanous          <Annotation Term="OData.Description" String="The upper IP address to which this permission applies."/>
1032bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the upper IP address to which this permission applies."/>
1042bde4061SEd Tanous        </Property>
1052bde4061SEd Tanous        <Property Name="IANAProtocolNumber" Type="Edm.Int64">
1062bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
1072bde4061SEd Tanous          <Annotation Term="OData.Description" String="The IANA protocol number to which this permission applies.  For TCP, this is `6`.  For UDP, this is `17`."/>
1082bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the IANA protocol number to which this permission applies."/>
1092bde4061SEd Tanous        </Property>
1102bde4061SEd Tanous        <Property Name="SourcePortLower" Type="Edm.Int64">
1112bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
1122bde4061SEd Tanous          <Annotation Term="OData.Description" String="The TCP, UDP, or other source port to which this rule begins application, inclusive."/>
1132bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the TCP, UDP, or other source port to which this rule begins application, inclusive."/>
1142bde4061SEd Tanous        </Property>
1152bde4061SEd Tanous        <Property Name="SourcePortUpper" Type="Edm.Int64">
1162bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
1172bde4061SEd Tanous          <Annotation Term="OData.Description" String="The TCP, UDP or other source port to which this rule ends application, inclusive."/>
1182bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the TCP, UDP, or other source port to which this rule ends application, inclusive."/>
1192bde4061SEd Tanous        </Property>
1202bde4061SEd Tanous        <Property Name="DestinationPortLower" Type="Edm.Int64">
1212bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
1222bde4061SEd Tanous          <Annotation Term="OData.Description" String="The TCP, UDP, or other destination port to which this rule begins application, inclusive."/>
1232bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the TCP, UDP, or other destination port to which this rule begins application, inclusive."/>
1242bde4061SEd Tanous        </Property>
1252bde4061SEd Tanous        <Property Name="DestinationPortUpper" Type="Edm.Int64">
1262bde4061SEd Tanous          <Annotation Term="OData.Permissions" EnumMember="OData.Permission/ReadWrite"/>
1272bde4061SEd Tanous          <Annotation Term="OData.Description" String="The TCP, UDP, or other destination port to which this rule ends application, inclusive."/>
1282bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the TCP, UDP, or other destination port to which this rule ends application, inclusive."/>
1292bde4061SEd Tanous        </Property>
1302bde4061SEd Tanous        <Property Name="Actions" Type="AllowDeny.v1_0_0.Actions" Nullable="false">
1312bde4061SEd Tanous          <Annotation Term="OData.Description" String="The available actions for this resource."/>
1322bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available actions for this resource."/>
1332bde4061SEd Tanous        </Property>
1342bde4061SEd Tanous      </EntityType>
1352bde4061SEd Tanous
1362bde4061SEd Tanous      <ComplexType Name="Actions">
1372bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="false"/>
1382bde4061SEd Tanous        <Annotation Term="OData.Description" String="The available actions for this resource."/>
1392bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
1402bde4061SEd Tanous        <Property Name="Oem" Type="AllowDeny.v1_0_0.OemActions" Nullable="false">
1412bde4061SEd Tanous          <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
1422bde4061SEd Tanous          <Annotation Term="OData.LongDescription" String="This property shall contain the available OEM-specific actions for this resource."/>
1432bde4061SEd Tanous        </Property>
1442bde4061SEd Tanous      </ComplexType>
1452bde4061SEd Tanous
1462bde4061SEd Tanous      <ComplexType Name="OemActions">
1472bde4061SEd Tanous        <Annotation Term="OData.AdditionalProperties" Bool="true"/>
1482bde4061SEd Tanous        <Annotation Term="OData.Description" String="The available OEM-specific actions for this resource."/>
1492bde4061SEd Tanous        <Annotation Term="OData.LongDescription" String="This type shall contain the available OEM-specific actions for this resource."/>
1502bde4061SEd Tanous      </ComplexType>
1512bde4061SEd Tanous
1522bde4061SEd Tanous      <EnumType Name="IPAddressType">
1532bde4061SEd Tanous        <Member Name="IPv4">
1542bde4061SEd Tanous          <Annotation Term="OData.Description" String="IPv4 addressing is used for all IP-fields in this object."/>
1552bde4061SEd Tanous        </Member>
1562bde4061SEd Tanous        <Member Name="IPv6">
1572bde4061SEd Tanous          <Annotation Term="OData.Description" String="IPv6 addressing is used for all IP-fields in this object."/>
1582bde4061SEd Tanous        </Member>
1592bde4061SEd Tanous      </EnumType>
1602bde4061SEd Tanous
1612bde4061SEd Tanous      <EnumType Name="AllowType">
1622bde4061SEd Tanous        <Member Name="Allow">
1632bde4061SEd Tanous          <Annotation Term="OData.Description" String="Indicates that traffic that matches the criteria in this resource is permitted."/>
1642bde4061SEd Tanous        </Member>
1652bde4061SEd Tanous        <Member Name="Deny">
1662bde4061SEd Tanous          <Annotation Term="OData.Description" String="Indicates that traffic that matches the criteria in this resource is not permitted."/>
1672bde4061SEd Tanous        </Member>
1682bde4061SEd Tanous      </EnumType>
1692bde4061SEd Tanous
1702bde4061SEd Tanous      <EnumType Name="DataDirection">
1712bde4061SEd Tanous        <Member Name="Ingress">
1722bde4061SEd Tanous          <Annotation Term="OData.Description" String="Indicates that this limit is enforced on packets and bytes received by the network device function."/>
1732bde4061SEd Tanous        </Member>
1742bde4061SEd Tanous        <Member Name="Egress">
1752bde4061SEd Tanous          <Annotation Term="OData.Description" String="Indicates that this limit is enforced on packets and bytes transmitted by the network device function."/>
1762bde4061SEd Tanous        </Member>
1772bde4061SEd Tanous      </EnumType>
1782bde4061SEd Tanous    </Schema>
1792bde4061SEd Tanous
1802bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="AllowDeny.v1_0_1">
1812bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
1822bde4061SEd Tanous      <Annotation Term="OData.Description" String="This version was created to remove normative language from non-normative descriptions."/>
1832bde4061SEd Tanous      <EntityType Name="AllowDeny" BaseType="AllowDeny.v1_0_0.AllowDeny"/>
1842bde4061SEd Tanous    </Schema>
1852bde4061SEd Tanous
1862bde4061SEd Tanous    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="AllowDeny.v1_0_2">
1872bde4061SEd Tanous      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
1882bde4061SEd Tanous      <Annotation Term="OData.Description" String="This version was created to correct various typographical errors."/>
1892bde4061SEd Tanous      <EntityType Name="AllowDeny" BaseType="AllowDeny.v1_0_1.AllowDeny"/>
1902bde4061SEd Tanous    </Schema>
1912bde4061SEd Tanous
192f2a8e57eSGunnar Mills    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="AllowDeny.v1_0_3">
193f2a8e57eSGunnar Mills      <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
194f2a8e57eSGunnar Mills      <Annotation Term="OData.Description" String="This version was created to force the regeneration of OpenAPI schemas to properly express nullable properties with external references.  It was also created to correct various typographical errors."/>
195f2a8e57eSGunnar Mills      <EntityType Name="AllowDeny" BaseType="AllowDeny.v1_0_2.AllowDeny"/>
196f2a8e57eSGunnar Mills    </Schema>
197f2a8e57eSGunnar Mills
1982bde4061SEd Tanous  </edmx:DataServices>
1992bde4061SEd Tanous</edmx:Edmx>
200