All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
api_v1_template_programmer_project_get | GET /api/v1/template-programmer/project | Gets a list of projects |
api_v1_template_programmer_project_post | POST /api/v1/template-programmer/project | Create Project |
api_v1_template_programmer_project_project_id_delete | DELETE /api/v1/template-programmer/project/{projectId} | Deletes the project |
api_v1_template_programmer_project_project_id_template_post | POST /api/v1/template-programmer/project/{projectId}/template | Create Template |
api_v1_template_programmer_project_put | PUT /api/v1/template-programmer/project | Update Project |
api_v1_template_programmer_template_deploy_post | POST /api/v1/template-programmer/template/deploy | Deploy Template |
api_v1_template_programmer_template_deploy_status_deployment_id_get | GET /api/v1/template-programmer/template/deploy/status/{deploymentId} | Status of template deployment |
api_v1_template_programmer_template_get | GET /api/v1/template-programmer/template | Gets the templates available depending on the criteria |
api_v1_template_programmer_template_preview_put | PUT /api/v1/template-programmer/template/preview | Preview Template |
api_v1_template_programmer_template_put | PUT /api/v1/template-programmer/template | Update Template |
api_v1_template_programmer_template_template_id_delete | DELETE /api/v1/template-programmer/template/{templateId} | Deletes the template |
api_v1_template_programmer_template_template_id_get | GET /api/v1/template-programmer/template/{templateId} | Gets details of a given template |
api_v1_template_programmer_template_version_post | POST /api/v1/template-programmer/template/version | Version Template |
api_v1_template_programmer_template_version_template_id_get | GET /api/v1/template-programmer/template/version/{templateId} | Gets all the versions of a given template |
CollectionProjectDTO api_v1_template_programmer_project_get(name=name)
Gets a list of projects
List the projects
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
name = 'name_example' # str | Name of project to be searched (optional)
try:
# Gets a list of projects
api_response = api_instance.api_v1_template_programmer_project_get(name=name)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_project_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name of project to be searched | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskIdResult api_v1_template_programmer_project_post(project_dto)
Create Project
This API is used to create a new project.
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
project_dto = dnac_api_client.ProjectDTO() # ProjectDTO | request
try:
# Create Project
api_response = api_instance.api_v1_template_programmer_project_post(project_dto)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_project_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_dto | ProjectDTO | request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskIdResult api_v1_template_programmer_project_project_id_delete(project_id)
Deletes the project
Deletes the project
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
project_id = 'project_id_example' # str | projectId
try:
# Deletes the project
api_response = api_instance.api_v1_template_programmer_project_project_id_delete(project_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_project_project_id_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | str | projectId |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskIdResult api_v1_template_programmer_project_project_id_template_post(project_id, template_dto)
Create Template
API to create a template.
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
project_id = 'project_id_example' # str | projectId
template_dto = dnac_api_client.TemplateDTO() # TemplateDTO | request
try:
# Create Template
api_response = api_instance.api_v1_template_programmer_project_project_id_template_post(project_id, template_dto)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_project_project_id_template_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | str | projectId | |
template_dto | TemplateDTO | request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskIdResult api_v1_template_programmer_project_put(project_dto)
Update Project
This API is used to update an existing project.
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
project_dto = dnac_api_client.ProjectDTO() # ProjectDTO | request
try:
# Update Project
api_response = api_instance.api_v1_template_programmer_project_put(project_dto)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_project_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_dto | ProjectDTO | request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplateDeploymentStatusDTO api_v1_template_programmer_template_deploy_post(template_deployment_info)
Deploy Template
API to deploy a template.
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
template_deployment_info = dnac_api_client.TemplateDeploymentInfo() # TemplateDeploymentInfo | request
try:
# Deploy Template
api_response = api_instance.api_v1_template_programmer_template_deploy_post(template_deployment_info)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_template_deploy_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
template_deployment_info | TemplateDeploymentInfo | request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplateDeploymentStatusDTO api_v1_template_programmer_template_deploy_status_deployment_id_get(deployment_id)
Status of template deployment
API to retrieve the status of template deployment.
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
deployment_id = 'deployment_id_example' # str | deploymentId
try:
# Status of template deployment
api_response = api_instance.api_v1_template_programmer_template_deploy_status_deployment_id_get(deployment_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_template_deploy_status_deployment_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
deployment_id | str | deploymentId |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CollectionTemplateInfo api_v1_template_programmer_template_get(project_id=project_id, software_type=software_type, software_version=software_version, product_family=product_family, product_series=product_series, product_type=product_type, include_head=include_head, filter_conflicting_templates=filter_conflicting_templates)
Gets the templates available depending on the criteria
Gets the templates available depending on the criteria
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
project_id = 'project_id_example' # str | projectId (optional)
software_type = 'software_type_example' # str | softwareType (optional)
software_version = 'software_version_example' # str | softwareVersion (optional)
product_family = 'product_family_example' # str | productFamily (optional)
product_series = 'product_series_example' # str | productSeries (optional)
product_type = 'product_type_example' # str | productType (optional)
include_head = True # bool | includeHead (optional)
filter_conflicting_templates = True # bool | filterConflictingTemplates (optional)
try:
# Gets the templates available depending on the criteria
api_response = api_instance.api_v1_template_programmer_template_get(project_id=project_id, software_type=software_type, software_version=software_version, product_family=product_family, product_series=product_series, product_type=product_type, include_head=include_head, filter_conflicting_templates=filter_conflicting_templates)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_template_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
project_id | str | projectId | [optional] |
software_type | str | softwareType | [optional] |
software_version | str | softwareVersion | [optional] |
product_family | str | productFamily | [optional] |
product_series | str | productSeries | [optional] |
product_type | str | productType | [optional] |
include_head | bool | includeHead | [optional] |
filter_conflicting_templates | bool | filterConflictingTemplates | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplatePreviewResponseDTO api_v1_template_programmer_template_preview_put(template_preview_request_dto)
Preview Template
API to preview a template.
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
template_preview_request_dto = dnac_api_client.TemplatePreviewRequestDTO() # TemplatePreviewRequestDTO | request
try:
# Preview Template
api_response = api_instance.api_v1_template_programmer_template_preview_put(template_preview_request_dto)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_template_preview_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
template_preview_request_dto | TemplatePreviewRequestDTO | request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskIdResult api_v1_template_programmer_template_put(template_dto)
Update Template
API to update a template.
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
template_dto = dnac_api_client.TemplateDTO() # TemplateDTO | request
try:
# Update Template
api_response = api_instance.api_v1_template_programmer_template_put(template_dto)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_template_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
template_dto | TemplateDTO | request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskIdResult api_v1_template_programmer_template_template_id_delete(template_id)
Deletes the template
Deletes the template
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
template_id = 'template_id_example' # str | templateId
try:
# Deletes the template
api_response = api_instance.api_v1_template_programmer_template_template_id_delete(template_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_template_template_id_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
template_id | str | templateId |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplateDTO api_v1_template_programmer_template_template_id_get(template_id)
Gets details of a given template
Details of the template
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
template_id = 'template_id_example' # str | templateId
try:
# Gets details of a given template
api_response = api_instance.api_v1_template_programmer_template_template_id_get(template_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_template_template_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
template_id | str | templateId |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskIdResult api_v1_template_programmer_template_version_post(template_version_request_dto)
Version Template
API to version the current contents of the template.
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
template_version_request_dto = dnac_api_client.TemplateVersionRequestDTO() # TemplateVersionRequestDTO | request
try:
# Version Template
api_response = api_instance.api_v1_template_programmer_template_version_post(template_version_request_dto)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_template_version_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
template_version_request_dto | TemplateVersionRequestDTO | request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CollectionTemplateInfo api_v1_template_programmer_template_version_template_id_get(template_id)
Gets all the versions of a given template
Get all the versions of template
- Api Key Authentication (APIKeyHeader):
from __future__ import print_function
import time
import dnac_api_client
from dnac_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = dnac_api_client.Configuration()
configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = dnac_api_client.TemplateProgrammmerApi(dnac_api_client.ApiClient(configuration))
template_id = 'template_id_example' # str | templateId
try:
# Gets all the versions of a given template
api_response = api_instance.api_v1_template_programmer_template_version_template_id_get(template_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplateProgrammmerApi->api_v1_template_programmer_template_version_template_id_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
template_id | str | templateId |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]