blob: e6cc4a0e469311be5d2cad8253bc3d4b787145f1 [file] [log] [blame]
Marri Devender Raod45d2d02019-01-21 10:11:34 -06001<?xml version="1.0" encoding="UTF-8"?>
2<!---->
3<!--################################################################################ -->
4<!--# Redfish Schema: CertificateService v1.0.0-->
5<!--# -->
6<!--# For a detailed change log, see the README file contained in the DSP8010 bundle, -->
7<!--# available at http://www.dmtf.org/standards/redfish -->
8<!--# Copyright 2014-2018 DMTF. -->
9<!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright -->
10<!--################################################################################ -->
11<!---->
12<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
13
14 <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml">
15 <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/>
16 </edmx:Reference>
17 <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Capabilities.V1.xml">
18 <edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities"/>
19 </edmx:Reference>
20 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
21 <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
22 </edmx:Reference>
23 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
24 <edmx:Include Namespace="Resource.v1_0_0"/>
25 </edmx:Reference>
26 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/CertificateLocations_v1.xml">
27 <edmx:Include Namespace="CertificateLocations"/>
28 </edmx:Reference>
29 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/CertificateCollection_v1.xml">
30 <edmx:Include Namespace="CertificateCollection"/>
31 </edmx:Reference>
32 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Certificate_v1.xml">
33 <edmx:Include Namespace="Certificate"/>
34 </edmx:Reference>
35
36 <edmx:DataServices>
37
38 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="CertificateService">
39 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
40
41 <EntityType Name="CertificateService" BaseType="Resource.v1_0_0.Resource" Abstract="true">
42 <Annotation Term="OData.Description" String="The CertificateService schema defines a Certificate Service which represents the actions available to manage certificates and links to where certificates are installed."/>
43 <Annotation Term="OData.LongDescription" String="This resource shall be used to represent the Certificate Service Properties for a Redfish implementation."/>
44 <Annotation Term="Capabilities.InsertRestrictions">
45 <Record>
46 <PropertyValue Property="Insertable" Bool="false"/>
47 </Record>
48 </Annotation>
49 <Annotation Term="Capabilities.UpdateRestrictions">
50 <Record>
51 <PropertyValue Property="Updatable" Bool="false"/>
52 </Record>
53 </Annotation>
54 <Annotation Term="Capabilities.DeleteRestrictions">
55 <Record>
56 <PropertyValue Property="Deletable" Bool="false"/>
57 </Record>
58 </Annotation>
59 <Annotation Term="Redfish.Uris">
60 <Collection>
61 <String>/redfish/v1/CertificateService</String>
62 </Collection>
63 </Annotation>
64 </EntityType>
65
66 <Action Name="GenerateCSR" IsBound="true">
67 <Parameter Name="CertificateService" Type="CertificateService.v1_0_0.Actions"/>
68 <Parameter Name="CommonName" Type="Edm.String" Nullable="false">
69 <Annotation Term="OData.Description" String="The fully qualified domain name of the component that is being secured."/>
70 <Annotation Term="OData.LongDescription" String="This parameter shall contain the fully qualified domain name of the component that is being secured as defined by the commonName attribute in RFC5280."/>
71 </Parameter>
72 <Parameter Name="AlternativeNames" Type="Collection(Edm.String)">
73 <Annotation Term="OData.Description" String="Additional hostnames of the component that is being secured."/>
74 <Annotation Term="OData.LongDescription" String="This parameter shall contain an array of additional hostnames of the component that is being secured as defined by the Subject Alternative Name extension in RFC5280."/>
75 </Parameter>
76 <Parameter Name="Organization" Type="Edm.String" Nullable="false">
77 <Annotation Term="OData.Description" String="The name of the organization making the request."/>
78 <Annotation Term="OData.LongDescription" String="This parameter shall contain the name of the organization making the request as defined by the organizationName attribute in RFC5280."/>
79 </Parameter>
80 <Parameter Name="OrganizationalUnit" Type="Edm.String" Nullable="false">
81 <Annotation Term="OData.Description" String="The name of the unit or division of the organization making the request."/>
82 <Annotation Term="OData.LongDescription" String="This parameter shall contain the name of the unit or division of the organization making the request as defined by the organizationalUnitName attribute in RFC5280."/>
83 </Parameter>
84 <Parameter Name="City" Type="Edm.String" Nullable="false">
85 <Annotation Term="OData.Description" String="The city or locality of the organization making the request."/>
86 <Annotation Term="OData.LongDescription" String="This parameter shall contain the city or locality of the organization making the request as defined by the localityName attribute in RFC5280."/>
87 </Parameter>
88 <Parameter Name="State" Type="Edm.String" Nullable="false">
89 <Annotation Term="OData.Description" String="The state, province, or region of the organization making the request."/>
90 <Annotation Term="OData.LongDescription" String="This parameter shall contain the state, province, or region of the organization making the request as defined by the stateOrProvinceName attribute in RFC5280."/>
91 </Parameter>
92 <Parameter Name="Country" Type="Edm.String" Nullable="false">
93 <Annotation Term="OData.Description" String="The country of the organization making the request."/>
94 <Annotation Term="OData.LongDescription" String="This parameter shall contain the two letter ISO code for the country of the organization making the request as defined by the countryName attribute in RFC5280."/>
95 </Parameter>
96 <Parameter Name="Email" Type="Edm.String">
97 <Annotation Term="OData.Description" String="The email address of the contact within the organization making the request."/>
98 <Annotation Term="OData.LongDescription" String="This parameter shall contain the email address of the contact within the organization making the request as defined by the emailAddress attribute in RFC2985."/>
99 </Parameter>
100 <Parameter Name="KeyPairAlgorithm" Type="Edm.String">
101 <Annotation Term="OData.Description" String="The type of key pair for use with signing algorithms."/>
102 <Annotation Term="OData.LongDescription" String="The value of this property shall be the type of key pair for use with signing algorithms. The allowable values for this parameter shall be the strings in the 'Algorithm Name' field of the 'TPM_ALG_ID Constants' table within the 'Trusted Computing Group Algorithm Registry'."/>
103 </Parameter>
104 <Parameter Name="KeyBitLength" Type="Edm.Int64">
105 <Annotation Term="OData.Description" String="The length of the key in bits, if needed based on the value of the 'KeyPairAlgorithm' parameter."/>
106 <Annotation Term="OData.LongDescription" String="The value of this property shall be the length of the key in bits, if needed based on the value of the 'KeyPairAlgorithm' parameter."/>
107 </Parameter>
108 <Parameter Name="KeyCurveId" Type="Edm.String">
109 <Annotation Term="OData.Description" String="The curve ID to be used with the key, if needed based on the value of the 'KeyPairAlgorithm' parameter."/>
110 <Annotation Term="OData.LongDescription" String="The value of this property shall be the curve ID to be used with the key, if needed based on the value of the 'KeyPairAlgorithm' parameter. The allowable values for this parameter shall be the strings in the 'Name' field of the 'TPM_ECC_CURVE Constants' table within the 'Trusted Computing Group Algorithm Registry'."/>
111 </Parameter>
112 <Parameter Name="CertificateCollection" Type="CertificateCollection.CertificateCollection" Nullable="false">
113 <Annotation Term="OData.Description" String="A link to the certificate collection where the certificate will be installed."/>
114 <Annotation Term="OData.LongDescription" String="This parameter shall contain the URI of the Certificate Collection where the certificate will be installed once the CA has signed the certificate."/>
115 </Parameter>
116 <Parameter Name="KeyUsage" Type="Collection(Certificate.KeyUsage)">
117 <Annotation Term="OData.Description" String="The usage of the key contained in the certificate."/>
118 <Annotation Term="OData.LongDescription" String="This parameter shall contain the usage of the key contained in the certificate. If not provided by the client, the service may determine the appropriate key usage settings in the certificate signing request."/>
119 </Parameter>
120 <Parameter Name="Surname" Type="Edm.String">
121 <Annotation Term="OData.Description" String="The surname of the user making the request."/>
122 <Annotation Term="OData.LongDescription" String="The value of this property shall contain the surname of the user making the request as defined by the surname attribute in RFC5280."/>
123 </Parameter>
124 <Parameter Name="GivenName" Type="Edm.String">
125 <Annotation Term="OData.Description" String="The given name of the user making the request."/>
126 <Annotation Term="OData.LongDescription" String="The value of this property shall contain the given name of the user making the request as defined by the givenName attribute in RFC5280."/>
127 </Parameter>
128 <Parameter Name="Initials" Type="Edm.String">
129 <Annotation Term="OData.Description" String="The initials of the user making the request."/>
130 <Annotation Term="OData.LongDescription" String="The value of this property shall contain the initials of the user making the request as defined by the initials attribute in RFC5280."/>
131 </Parameter>
132 <Parameter Name="ChallengePassword" Type="Edm.String">
133 <Annotation Term="OData.Description" String="The challenge password to be applied to the certificate for revocation requests."/>
134 <Annotation Term="OData.LongDescription" String="The value of this property shall contain the challenge password to be applied to the certificate for revocation requests as defined by the challengePassword attribute in RFC2985."/>
135 </Parameter>
136 <Parameter Name="UnstructuredName" Type="Edm.String">
137 <Annotation Term="OData.Description" String="The unstructured name of the subject."/>
138 <Annotation Term="OData.LongDescription" String="The value of this property shall contain the unstructured name of the subject as defined by the unstructuredName attribute in RFC2985."/>
139 </Parameter>
140 <Parameter Name="ContactPerson" Type="Edm.String">
141 <Annotation Term="OData.Description" String="The name of the user making the request."/>
142 <Annotation Term="OData.LongDescription" String="The value of this property shall contain the name of the user making the request as defined by the name attribute in RFC5280."/>
143 </Parameter>
144 <ReturnType Type="CertificateService.v1_0_0.GenerateCSRResponse" Nullable="false"/>
145 <Annotation Term="OData.Description" String="This action is used to perform a certificate signing request."/>
146 <Annotation Term="OData.LongDescription" String="This action shall perform a certificate signing request. The response shall contain a signing request that is used to be signed by a certificate authority (CA). The service should retain the private key used for the generation of this request for when the certificate is installed. The private key should not be part of the response."/>
147 </Action>
148
149 <Action Name="ReplaceCertificate" IsBound="true">
150 <Parameter Name="CertificateService" Type="CertificateService.v1_0_0.Actions"/>
151 <Parameter Name="CertificateString" Type="Edm.String" Nullable="false">
152 <Annotation Term="OData.Description" String="The string for the certificate."/>
153 <Annotation Term="OData.LongDescription" String="The value of this property shall be the string of the certificate, and the format shall follow the requirements specified by the value of the CertificateType property. If the certificate contains any private keys, they shall be removed from the string on GET requests. If the private key for the certificate is not known by the service and is needed to use the certificate, the client shall provide the private key as part of the string in the POST request."/>
154 </Parameter>
155 <Parameter Name="CertificateType" Type="Certificate.CertificateType" Nullable="false">
156 <Annotation Term="OData.Description" String="The format of the certificate."/>
157 <Annotation Term="OData.LongDescription" String="The value of this parameter shall contain the format type for the certificate."/>
158 </Parameter>
159 <Parameter Name="CertificateUri" Type="Certificate.Certificate" Nullable="false">
160 <Annotation Term="OData.Description" String="A link to the certificate that is being replaced."/>
161 <Annotation Term="OData.LongDescription" String="This parameter shall contain the URI of the Certificate that is being replaced."/>
162 </Parameter>
163 <Annotation Term="OData.Description" String="This action is used to replace an existing certificate."/>
164 <Annotation Term="OData.LongDescription" String="This action shall replace an existing certificate. The Location header in the response shall contain the URI of the new Certificate resource."/>
165 </Action>
166 </Schema>
167
168 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="CertificateService.v1_0_0">
169 <Annotation Term="Redfish.OwningEntity" String="DMTF"/>
170 <Annotation Term="Redfish.Release" String="2018.3"/>
171
172 <EntityType Name="CertificateService" BaseType="CertificateService.CertificateService">
173 <Property Name="Actions" Type="CertificateService.v1_0_0.Actions" Nullable="false">
174 <Annotation Term="OData.Description" String="The available actions for this resource."/>
175 <Annotation Term="OData.LongDescription" String="The Actions property shall contain the available actions for this resource."/>
176 </Property>
177 <NavigationProperty Name="CertificateLocations" Type="CertificateLocations.CertificateLocations" ContainsTarget="true" Nullable="false">
178 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
179 <Annotation Term="OData.Description" String="Information regarding the location of certificates."/>
180 <Annotation Term="OData.LongDescription" String="This property shall contain the link to a resource of type CertificateLocations."/>
181 <Annotation Term="OData.AutoExpandReferences"/>
182 </NavigationProperty>
183 </EntityType>
184
185 <ComplexType Name="Actions">
186 <Annotation Term="OData.AdditionalProperties" Bool="false"/>
187 <Annotation Term="OData.Description" String="The available actions for this resource."/>
188 <Annotation Term="OData.LongDescription" String="This type shall contain the available actions for this resource."/>
189 <Property Name="Oem" Type="CertificateService.v1_0_0.OemActions" Nullable="false">
190 <Annotation Term="OData.Description" String="This property contains the available OEM specific actions for this resource."/>
191 <Annotation Term="OData.LongDescription" String="This property shall contain any additional OEM actions for this resource."/>
192 </Property>
193 </ComplexType>
194
195 <ComplexType Name="OemActions">
196 <Annotation Term="OData.AdditionalProperties" Bool="true"/>
197 <Annotation Term="OData.Description" String="The available OEM specific actions for this resource."/>
198 <Annotation Term="OData.LongDescription" String="This type shall contain any additional OEM actions for this resource."/>
199 </ComplexType>
200
201 <ComplexType Name="GenerateCSRResponse">
202 <Annotation Term="OData.AdditionalProperties" Bool="false"/>
203 <Annotation Term="OData.Description" String="The response body for the GenerateCSR action."/>
204 <Annotation Term="OData.LongDescription" String="This type shall contain the properties found in the response body for the GenerateCSR action."/>
205 <NavigationProperty Name="CertificateCollection" Type="CertificateCollection.CertificateCollection" Nullable="false">
206 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
207 <Annotation Term="OData.Description" String="A link to the certificate collection where the certificate will be installed."/>
208 <Annotation Term="OData.LongDescription" String="This property shall contain the URI of the Certificate Collection where the certificate will be installed once the CA has signed the certificate."/>
209 <Annotation Term="Redfish.Required"/>
210 </NavigationProperty>
211 <Property Name="CSRString" Type="Edm.String" Nullable="false">
212 <Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
213 <Annotation Term="OData.Description" String="The string for the certificate signing request."/>
214 <Annotation Term="OData.LongDescription" String="The value of this property shall be the string of the certificate signing request as a Privacy Enhanced Mail (PEM) encoded string, containing structures specified by RFC2986. The private key should not be part of the string."/>
215 <Annotation Term="Redfish.Required"/>
216 </Property>
217 </ComplexType>
218 </Schema>
219
220 </edmx:DataServices>
221</edmx:Edmx>