Process Update Service Provider
PUT /ecs-service-provider
Updatess a service provider using the specified attributes. The submitted provider element values will be
validated. The optional set of parameters are:
java_keystore/li>
key_alias
key_password
dns
Required Roles
Request Payload
Table
XML
JSON
<service_provider_update>
<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_update>
{
"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_update
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
PUT https://192.168.0.0::4443/ecs-service-provider
Content-Type : application/xml
Accept: appliction/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<service_provider_update>
<service_provider>
<java_keystore>/u3+7QAAAAIAA. . .</java_keystore>
<key_password>pass123</key_password>
<dns>127.0.0.1</dns>
<key_alias>saml</key_alias>
</service_provider>
</service_provider_update>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<UpdateServiceProviderResponse>
<ResponseMetadata>
<RequestId>0af9f5b8:17178fe9282:22c99:0</RequestId>
</ResponseMetadata>
<UpdateServiceProviderResult>
<service_provider>
<create_time>2020-04-16T19:42:02Z</create_time>
<dns>127.0.0.1</dns>
<etag>0000000000000001</etag>
<java_keystore>/u3+7QAAAAIAAAABA. . .</java_keystore>
<key_alias>saml</key_alias>
<key_password>pass123</key_password>
<last_modified>2020-04-16T19:47:05Z</last_modified>
<unique_id>48eef7e9-aadc-3a01-813b-54b06abb8d80</unique_id>
<uuid>25e0e516-a30f-49b0-bcbc-b2fb9ee96c90</uuid>
</service_provider>
</UpdateServiceProviderResult>
</UpdateServiceProviderResponse>
Request
PUT https://192.168.0.0::4443/ecs-service-provider
Content-Type : application/xml
Accept: appliction/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<service_provider_update>
<service_provider>
<java_keystore>/u3+7QAAAAIAA. . .</java_keystore>
<key_password>pass123</key_password>
<dns>127.0.0.1</dns>
<key_alias>saml</key_alias>
</service_provider>
</service_provider_update>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ResponseMetadata": {
"RequestId": "0af9f5b8:17178fe9282:22e62:25"
},
"UpdateServiceProviderResult": {
"service_provider": {
"dns": "127.0.0.1",
"uuid": "a5853e0f-3d2f-4a70-b560-37ca7af41c92",
"etag": "0000000000000001",
"java_keystore": "/u3+7QAAAAIAAAABAAAAA. . .",
"key_alias": "saml",
"key_password": "pass123",
"unique_id": "48eef7e9-aadc-3a01-813b-54b06abb8d80",
"create_time": "2020-04-16T20:01:37Z",
"last_modified": "2020-04-16T20:02:23Z"
}
}
}
Request
cat body.txt
<service_provider_update>
<service_provider>
<java_keystore>/u3+7QAAAAIAA. . .</java_keystore>
<key_password>pass123</key_password>
<dns>127.0.0.1</dns>
<key_alias>saml</key_alias>
</service_provider>
</service_provider_update>
curl -H $token -H "Content-Type: application/xml" -X PUT -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"?>
<UpdateServiceProviderResponse>
<ResponseMetadata>
<RequestId>0af9f5b8:17178fe9282:22c99:0</RequestId>
</ResponseMetadata>
<UpdateServiceProviderResult>
<service_provider>
<create_time>2020-04-16T19:42:02Z</create_time>
<dns>127.0.0.1</dns>
<etag>0000000000000001</etag>
<java_keystore>/u3+7QAAAAIAAAABA. . .</java_keystore>
<key_alias>saml</key_alias>
<key_password>pass123</key_password>
<last_modified>2020-04-16T19:47:05Z</last_modified>
<unique_id>48eef7e9-aadc-3a01-813b-54b06abb8d80</unique_id>
<uuid>25e0e516-a30f-49b0-bcbc-b2fb9ee96c90</uuid>
</service_provider>
</UpdateServiceProviderResult>
</UpdateServiceProviderResponse>