Loading nf-samples/README.md→netapp-samples/README.md +0 −0 File moved. View file netapp-samples/netapp-invoker-sample/capif-sdk-config-sample.json 0 → 100644 +21 −0 Original line number Diff line number Diff line { "invoker_folder": "/Users/dgs/Downloads/capif_sdk/invoker/", "provider_folder": "/Users/dgs/Downloads/capif_sdk/provider/", "capif_host": "capif-prev.mobilesandbox.cloud", "register_host": "registercapif-prev.mobilesandbox.cloud", "capif_https_port": "36212", "capif_register_port": "36211", "capif_callback_url": "capif-prev.mobilesandbox.cloud", "csr_common_name": "myAppServer", "csr_organizational_unit": "TID", "csr_organization": "Telefonica", "crs_locality": "Madrid", "csr_state_or_province_name": "Spain", "csr_country_name": "ES", "csr_email_address": "daniel.garciasanchez@telefonica.com", "capif_username": "Daniel_TEF", "capif_password": "PISRsuTErTio", "APFs":"2", "AEFs":"2", "debug_mode": "true" } netapp-samples/netapp-invoker-sample/netapp-invoker.py 0 → 100644 +29 −0 Original line number Diff line number Diff line import sys import os import utilities # Añadir el directorio del SDK al PYTHONPATH usando una ruta relativa script_dir = os.path.dirname(os.path.abspath(__file__)) # Directorio actual del script sys.path.insert(0, script_dir) capif_sdk_config_path = "/Users/dgs/Downloads/capif_sdk/invoker/config.json" from sdk import CAPIFInvokerConnector if __name__ == "__main__": capif_connector = CAPIFInvokerConnector(config_file=utilities.get_config_file()) capif_connector.register_and_onboard_Invoker() print("INVOKER ONBOARDING COMPLETED") # Aquí ya tengo certificados, ahora puedo hacer discover (get token para un api o varios, según elijas) # Como developer yo ya sé a qué APIs quiero acceder # DISCOVER filter configureCmcAmfSet # Without DISCOVER filter it is obtained the whole list of available APIs in CAPIF netapp-samples/netapp-provider-sample/netapp-provider-api-spec.json 0 → 100755 +155 −0 Original line number Diff line number Diff line { "apiName": "Api-de-prueba-2", "aefProfiles": [ { "aefId": "AEF0f66526ff2fd8a1be721ace3506adb", "versions": [ { "apiVersion": "v1", "expiry": "2100-11-30T10:32:02.004Z", "resources": [ { "resourceName": "MONITORING_SUBSCRIPTIONS", "commType": " SUBSCRIBE_NOTIFY", "uri": "/{scsAsId}/subscriptions", "custOpName": "http_post", "operations": [ "GET", "POST" ], "description": "Endpoint to manage monitoring subscriptions" }, { "resourceName": "MONITORING_SUBSCRIPTION_SINGLE", "commType": " SUBSCRIBE_NOTIFY", "uri": "/{scsAsId}/subscriptions/{subscriptionId}", "custOpName": "http_get", "operations": [ "GET", "PUT", "DELETE" ], "description": "Endpoint to manage single subscription" } ], "custOperations": [ { "commType": "REQUEST_RESPONSE", "custOpName": "string", "operations": [ "POST" ], "description": "string" } ] } ], "protocol": "HTTP_1_1", "dataFormat": "JSON", "securityMethods": [ "Oauth", "PSK" ], "interfaceDescriptions": [ { "ipv4Addr": "127.0.0.1", "port": 8888, "securityMethods": [ "Oauth" ] } ] }, { "aefId": "AEF212b55c43b1b16116192043bab9e05", "versions": [ { "apiVersion": "v1", "expiry": "2100-11-30T10:32:02.004Z", "resources": [ { "resourceName": "TSN_LIST_PROFILES", "commType": " SUBSCRIBE_NOTIFY", "uri": "/profile", "custOpName": "http_get", "operations": [ "GET" ], "description": "Endpoint for retrieving the list of available TSN profiles" }, { "resourceName": "TSN_DETAIL_PROFILE", "commType": " SUBSCRIBE_NOTIFY", "uri": "/profile?name={profileName}", "custOpName": "http_get", "operations": [ "GET" ], "description": "Endpoint for retrieving information about a single TSN profile" }, { "resourceName": "TSN_APPLY_CONFIGURATION", "commType": " SUBSCRIBE_NOTIFY", "uri": "/apply", "custOpName": "http_post", "operations": [ "POST" ], "description": "Endpoint for configuring TSN connection parameters" }, { "resourceName": "TSN_CLEAR_CONFIGURATION", "commType": " SUBSCRIBE_NOTIFY", "uri": "/clear", "custOpName": "http_post", "operations": [ "POST" ], "description": "Endpoint for removing a previous TSN connection configuration" } ], "custOperations": [ { "commType": "REQUEST_RESPONSE", "custOpName": "string", "operations": [ "POST" ], "description": "string" } ] } ], "protocol": "HTTP_1_1", "dataFormat": "JSON", "securityMethods": [ "Oauth" ], "interfaceDescriptions": [ { "ipv4Addr": "127.0.0.1", "port": 8899, "securityMethods": [ "Oauth" ] } ] } ], "description": "API of dummy netapp to test", "supportedFeatures": "fffff", "shareableInfo": { "isShareable": true, "capifProvDoms": [ "string" ] }, "serviceAPICategory": "string", "apiSuppFeats": "fffff", "pubApiPath": { "ccfIds": [ "string" ] }, "ccfId": "string" } No newline at end of file netapp-samples/netapp-provider-sample/netapp-provider.py 0 → 100644 +29 −0 Original line number Diff line number Diff line import sys import os import utilities # Añadir el directorio del SDK al PYTHONPATH usando una ruta relativa script_dir = os.path.dirname(os.path.abspath(__file__)) # Directorio actual del script sys.path.insert(0, script_dir) capif_sdk_config_path = "/Users/dgs/Downloads/capif_sdk/invoker/config.json" from sdk import CAPIFInvokerConnector if __name__ == "__main__": capif_connector = CAPIFInvokerConnector(config_file=utilities.get_config_file()) capif_connector.register_and_onboard_Invoker() print("INVOKER ONBOARDING COMPLETED") # Aquí ya tengo certificados, ahora puedo hacer discover (get token para un api o varios, según elijas) # Como developer yo ya sé a qué APIs quiero acceder # DISCOVER filter configureCmcAmfSet # Without DISCOVER filter it is obtained the whole list of available APIs in CAPIF Loading
netapp-samples/netapp-invoker-sample/capif-sdk-config-sample.json 0 → 100644 +21 −0 Original line number Diff line number Diff line { "invoker_folder": "/Users/dgs/Downloads/capif_sdk/invoker/", "provider_folder": "/Users/dgs/Downloads/capif_sdk/provider/", "capif_host": "capif-prev.mobilesandbox.cloud", "register_host": "registercapif-prev.mobilesandbox.cloud", "capif_https_port": "36212", "capif_register_port": "36211", "capif_callback_url": "capif-prev.mobilesandbox.cloud", "csr_common_name": "myAppServer", "csr_organizational_unit": "TID", "csr_organization": "Telefonica", "crs_locality": "Madrid", "csr_state_or_province_name": "Spain", "csr_country_name": "ES", "csr_email_address": "daniel.garciasanchez@telefonica.com", "capif_username": "Daniel_TEF", "capif_password": "PISRsuTErTio", "APFs":"2", "AEFs":"2", "debug_mode": "true" }
netapp-samples/netapp-invoker-sample/netapp-invoker.py 0 → 100644 +29 −0 Original line number Diff line number Diff line import sys import os import utilities # Añadir el directorio del SDK al PYTHONPATH usando una ruta relativa script_dir = os.path.dirname(os.path.abspath(__file__)) # Directorio actual del script sys.path.insert(0, script_dir) capif_sdk_config_path = "/Users/dgs/Downloads/capif_sdk/invoker/config.json" from sdk import CAPIFInvokerConnector if __name__ == "__main__": capif_connector = CAPIFInvokerConnector(config_file=utilities.get_config_file()) capif_connector.register_and_onboard_Invoker() print("INVOKER ONBOARDING COMPLETED") # Aquí ya tengo certificados, ahora puedo hacer discover (get token para un api o varios, según elijas) # Como developer yo ya sé a qué APIs quiero acceder # DISCOVER filter configureCmcAmfSet # Without DISCOVER filter it is obtained the whole list of available APIs in CAPIF
netapp-samples/netapp-provider-sample/netapp-provider-api-spec.json 0 → 100755 +155 −0 Original line number Diff line number Diff line { "apiName": "Api-de-prueba-2", "aefProfiles": [ { "aefId": "AEF0f66526ff2fd8a1be721ace3506adb", "versions": [ { "apiVersion": "v1", "expiry": "2100-11-30T10:32:02.004Z", "resources": [ { "resourceName": "MONITORING_SUBSCRIPTIONS", "commType": " SUBSCRIBE_NOTIFY", "uri": "/{scsAsId}/subscriptions", "custOpName": "http_post", "operations": [ "GET", "POST" ], "description": "Endpoint to manage monitoring subscriptions" }, { "resourceName": "MONITORING_SUBSCRIPTION_SINGLE", "commType": " SUBSCRIBE_NOTIFY", "uri": "/{scsAsId}/subscriptions/{subscriptionId}", "custOpName": "http_get", "operations": [ "GET", "PUT", "DELETE" ], "description": "Endpoint to manage single subscription" } ], "custOperations": [ { "commType": "REQUEST_RESPONSE", "custOpName": "string", "operations": [ "POST" ], "description": "string" } ] } ], "protocol": "HTTP_1_1", "dataFormat": "JSON", "securityMethods": [ "Oauth", "PSK" ], "interfaceDescriptions": [ { "ipv4Addr": "127.0.0.1", "port": 8888, "securityMethods": [ "Oauth" ] } ] }, { "aefId": "AEF212b55c43b1b16116192043bab9e05", "versions": [ { "apiVersion": "v1", "expiry": "2100-11-30T10:32:02.004Z", "resources": [ { "resourceName": "TSN_LIST_PROFILES", "commType": " SUBSCRIBE_NOTIFY", "uri": "/profile", "custOpName": "http_get", "operations": [ "GET" ], "description": "Endpoint for retrieving the list of available TSN profiles" }, { "resourceName": "TSN_DETAIL_PROFILE", "commType": " SUBSCRIBE_NOTIFY", "uri": "/profile?name={profileName}", "custOpName": "http_get", "operations": [ "GET" ], "description": "Endpoint for retrieving information about a single TSN profile" }, { "resourceName": "TSN_APPLY_CONFIGURATION", "commType": " SUBSCRIBE_NOTIFY", "uri": "/apply", "custOpName": "http_post", "operations": [ "POST" ], "description": "Endpoint for configuring TSN connection parameters" }, { "resourceName": "TSN_CLEAR_CONFIGURATION", "commType": " SUBSCRIBE_NOTIFY", "uri": "/clear", "custOpName": "http_post", "operations": [ "POST" ], "description": "Endpoint for removing a previous TSN connection configuration" } ], "custOperations": [ { "commType": "REQUEST_RESPONSE", "custOpName": "string", "operations": [ "POST" ], "description": "string" } ] } ], "protocol": "HTTP_1_1", "dataFormat": "JSON", "securityMethods": [ "Oauth" ], "interfaceDescriptions": [ { "ipv4Addr": "127.0.0.1", "port": 8899, "securityMethods": [ "Oauth" ] } ] } ], "description": "API of dummy netapp to test", "supportedFeatures": "fffff", "shareableInfo": { "isShareable": true, "capifProvDoms": [ "string" ] }, "serviceAPICategory": "string", "apiSuppFeats": "fffff", "pubApiPath": { "ccfIds": [ "string" ] }, "ccfId": "string" } No newline at end of file
netapp-samples/netapp-provider-sample/netapp-provider.py 0 → 100644 +29 −0 Original line number Diff line number Diff line import sys import os import utilities # Añadir el directorio del SDK al PYTHONPATH usando una ruta relativa script_dir = os.path.dirname(os.path.abspath(__file__)) # Directorio actual del script sys.path.insert(0, script_dir) capif_sdk_config_path = "/Users/dgs/Downloads/capif_sdk/invoker/config.json" from sdk import CAPIFInvokerConnector if __name__ == "__main__": capif_connector = CAPIFInvokerConnector(config_file=utilities.get_config_file()) capif_connector.register_and_onboard_Invoker() print("INVOKER ONBOARDING COMPLETED") # Aquí ya tengo certificados, ahora puedo hacer discover (get token para un api o varios, según elijas) # Como developer yo ya sé a qué APIs quiero acceder # DISCOVER filter configureCmcAmfSet # Without DISCOVER filter it is obtained the whole list of available APIs in CAPIF