Module ocs_rest_res_service

This library module implements resource handling functions for a REST server in the ocs application.

Copyright © 2016 - 2026 SigScale Global Inc.

Description

This library module implements resource handling functions for a REST server in the ocs application.

Data Types

aka_cred()

aka_cred() = #aka_cred{k = binary(), opc = binary(), dif = integer()}

service_status()

service_status() = feasibilityChecked | designed | reserved | active | inactive | terminated

Function Index

content_types_accepted/0Provides list of resource representations accepted.
content_types_provided/0Provides list of resource representations available.
add_service/1Respond to POST /serviceInventoryManagement/v2/service.
get_service/1Respond to GET /serviceInventoryManagement/v2/service/{id}.
get_services/2Respond to GET /serviceInventoryManagement/v2/service/.
delete_service/1Respond to DELETE /serviceInventoryManagement/v2/service/{id} request to remove a Service Inventory.
patch_service/3Respond to PATCH /serviceInventoryManagement/v2/service/{id}.
get_service_specs/1Respond to GET /serviceCatalogManagement/v2/serviceSpecification/.
get_service_spec/2Respond to GET /serviceCatalogManagement/v2/serviceSpecification/{id}.
service_spec/1*Get Service Specification by ID.
service/1CODEC for service inventory item.
start_mode/1*Codec for Service start mode.
service_state/1*CODEC for life cycle status of Product instance.
service_chars/1*CODEC for service characteristics.
radius_reserve/1*CODEC for top up duration characteristic.

Function Details

content_types_accepted/0

content_types_accepted() -> ContentTypes

Provides list of resource representations accepted.

content_types_provided/0

content_types_provided() -> ContentTypes

Provides list of resource representations available.

add_service/1

add_service(RequestBody) -> Result

Respond to POST /serviceInventoryManagement/v2/service. Add a new Service Inventory.

get_service/1

get_service(Id) -> Result

Respond to GET /serviceInventoryManagement/v2/service/{id}. Retrieve a service inventory item.

get_services/2

get_services(Query, RequestHeaders) -> Result

Respond to GET /serviceInventoryManagement/v2/service/. Retrieve all Service Inventories.

delete_service/1

delete_service(Id) -> Result

Respond to DELETE /serviceInventoryManagement/v2/service/{id} request to remove a Service Inventory.

patch_service/3

patch_service(ServiceId, Etag, RequestBody) -> Result

Respond to PATCH /serviceInventoryManagement/v2/service/{id}. Update a Service Inventory using JSON patch method RFC6902.

get_service_specs/1

get_service_specs(Query) -> Result

Respond to GET /serviceCatalogManagement/v2/serviceSpecification/. Retrieve all service specifications.

get_service_spec/2

get_service_spec(Id, Query) -> Result

Respond to GET /serviceCatalogManagement/v2/serviceSpecification/{id}. Retrieve a service specification.

service_spec/1 *

service_spec(ID) -> Result

Get Service Specification by ID

service/1

service(Service) -> Service

CODEC for service inventory item.

start_mode/1 *

start_mode(Mode) -> Mode

Codec for Service start mode

service_state/1 *

service_state(State) -> State

CODEC for life cycle status of Product instance.

service_chars/1 *

service_chars(ServiceChars) -> ServiceChars

CODEC for service characteristics

radius_reserve/1 *

radius_reserve(RadiusReserve) -> RadiusReserve

CODEC for top up duration characteristic


Generated by EDoc