Process Create Service Provider
POST /ecs-service-provider
Creates a service provider using the specified attributes. The submitted provider element values will be
validated. The required set of parameters are:
java_keystore/li>
key_alias
key_password
dns
Required Roles
Request Payload
Table
XML
JSON
<service_provider_create>
<service_provider>
<java_keystore></java_keystore>
<key_alias></key_alias>
<key_password></key_password>
<dns></dns>
<unique_id></unique_id>
<uuid></uuid>
<etag></etag>
<create_time></create_time>
<last_modified></last_modified>
</service_provider>
</service_provider_create>
{
"service_provider": {
"java_keystore": "",
"key_alias": "",
"key_password": "",
"dns": "",
"unique_id": "",
"uuid": "",
"etag": "",
"create_time": "",
"last_modified": ""
}
}
All parameters are required unless otherwise stated.
Field
Description
Type
Notes
service_provider_create
service_provider
java_keystore
A repository of security keys and certificates
String
key_alias
The unique alias used for accessing the keystore entry.
String
key_password
The password used for accessing the keystore entry.
String
dns
The host to be used in the entity base url.
String
unique_id
The unique identifier of the keystore.
String
uuid
Used in the entity Id.
String
etag
The tag to be used for editing the service provider.
String
create_time
The date the provider was created.
String
last_modified
The date the provider was last modified.
String
Response Body
Newly created service provider details
Examples
XML Example
JSON Example
curl Example
Request
POST https://192.168.0.0::4443/ecs-service-provider
Content-Type : application/xml
Accept: appliction/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<service_provider_create>
<service_provider>
<java_keystore>/u3+7QAAAAIAAAAB . . .</java_keystore>
<key_password>pass123</key_password>
<dns>127.0.0.1</dns>
<key_alias>saml</key_alias>
</service_provider>
</service_provider_create>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CreateServiceProviderResponse>
<ResponseMetadata>
<RequestId>0af9f5b8:17178fe9282:224de:2a</RequestId>
</ResponseMetadata>
<CreateServiceProviderResult>
<service_provider>
<create_time>2020-04-16T19:42:02Z</create_time>
<dns>127.0.0.1</dns>
<etag>0000000000000000</etag>
<java_keystore>/u3+7QAAAAIAAAABAAAAAQAE.../java_keystore>
<key_alias>saml</key_alias>
<key_password>pass123</key_password>
<unique_id>48eef7e9-aadc-3a01-813b-54b06abb8d80</unique_id>
<uuid>25e0e516-a30f-49b0-bcbc-b2fb9ee96c90</uuid>
</service_provider>
</CreateServiceProviderResult>
</CreateServiceProviderResponse>
Request
POST https://192.168.0.0::4443/ecs-service-provider
Content-Type : application/xml
Accept: appliction/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<service_provider_create>
<service_provider>
<java_keystore>/u3+7QAAAAIAAAAB . . .</java_keystore>
<key_password>pass123</key_password>
<dns>127.0.0.1</dns>
<key_alias>saml</key_alias>
</service_provider>
</service_provider_create>
Response
HTTP/1.1 200 OK
{
"ResponseMetadata": {
"RequestId": "0af9f5b8:17178fe9282:22f86:42"
},
"CreateServiceProviderResult": {
"service_provider": {
"dns": "127.0.0.1",
"uuid": "396dc76a-1118-4ff8-b338-c6222a4b5709",
"etag": "0000000000000000",
"java_keystore": "/u3+7QAAAAIAAAABA. . .",
"key_alias": "saml",
"key_password": "pass123",
"unique_id": "48eef7e9-aadc-3a01-813b-54b06abb8d80",
"create_time": "2020-04-16T20:06:05Z"
}
}
}
Request
cat body.txt
<service_provider_create>
<service_provider>
<java_keystore>/u3+7QAAAAIAAAAB . . .</java_keystore>
<key_password>pass123</key_password>
<dns>127.0.0.1</dns>
<key_alias>saml</key_alias>
</service_provider>
</service_provider_create>
curl -H $token -H "Content-Type: application/xml" -H "Accept: appliction/xml" -X POST -d @body.txt https://$nodeIp:4443/ecs-service-provider
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CreateServiceProviderResponse>
<ResponseMetadata>
<RequestId>0af9f5b8:17178fe9282:224de:2a</RequestId>
</ResponseMetadata>
<CreateServiceProviderResult>
<service_provider>
<create_time>2020-04-16T19:42:02Z</create_time>
<dns>127.0.0.1</dns>
<etag>0000000000000000</etag>
<java_keystore>/u3+7QAAAAIAAAABAAAAAQAE.../java_keystore>
<key_alias>saml</key_alias>
<key_password>pass123</key_password>
<unique_id>48eef7e9-aadc-3a01-813b-54b06abb8d80</unique_id>
<uuid>25e0e516-a30f-49b0-bcbc-b2fb9ee96c90</uuid>
</service_provider>
</CreateServiceProviderResult>
</CreateServiceProviderResponse>