QuickBuild2 Documentation
|
Get child configurations of specified configurationSyntaxA list of child configurations can be accessed by parent configuration id using http GET method through below url: http://localhost:8810/rest/configurations?parent_id=<parent configuration id>
Here <parent configuration id> represents id of the parent configuration. The response is of mime type application/xml and the content is xml representation of list of all child configurations.
SecurityYou will need to use http BASIC authentication to login as an authorized QuickBuild user if the anonymous does not have permission to access any of the child configurations. DemoBelow curl command demonstrates how to get child configurations under the configuration with id of 1: curl -u admin:admin http://localhost:8810/rest/configurations?parent_id=1
Get all descendent configurations of specified configurationSyntaxAll descendent configurations can be accessed by parent configuration id using http GET method through below url: http://localhost:8810/rest/configurations?id=<parent configuration id>&recursive=true
Here <parent configuration id> represents id of the parent configuration. The response is of mime type application/xml and the content is xml representation of list of all descendent configurations. SecurityYou will need to use http BASIC authentication to login as an authorized QuickBuild user if the anonymous does not have ACCESS_SETTINGS permission of any of the descendent configurations. DemoBelow curl command demonstrates how to get descendent configurations under the configuration with id of 1: curl -u admin:admin "http://localhost:8810/rest/configurations?id=1&recursive=true"
Access configuration by pathSyntaxConfiguration can be accessed by path using http GET method through below url: http://qb-server:8810/rest/configuration?path=<configuration path>
Here <configuration path> stands for path name of the configuration. The response is of mime type application/xml and the content is xml representation of the configuration. SecurityYou will need to use http BASIC authentication to login as an authorized QuickBuild user if the anonymous does not have the ACCESS_SETTINGS permission of the requested configuration. DemoBelow curl command demonstrates how to get xml representation of configuration root/test: curl -u admin:admin http://localhost:8810/rest/configuration?path=root/test
Access configuration by idSyntaxConfiguration can be accessed by id using http GET method through below url: http://qb-server:8810/rest/configuration?id=<configuration id>
Here <configuration id> stands for id of the configuration. The response is of mime type application/xml and the content is xml representation of the configuration. SecurityYou will need to use http BASIC authentication to login as an authorized QuickBuild user if the anonymous does not have the ACCESS_SETTINGS permission of the requested configuration. DemoBelow curl command demonstrates how to get xml representation of configuration with identifier 1 (the root configuration): curl -u admin:admin http://localhost:8810/rest/configuration?id=1
Access configuration id by pathSyntaxConfiguration id can be accessed by path using http GET method through below url: http://localhost:8810/rest/configuration/id?path=<configuration path>
Here <configuration path> stands for path name of the configuration. The response is of mime type plain/text and the content is string representation of the configuration id. SecurityYou will need to use http BASIC authentication to login as an authorized QuickBuild user if the anonymous is not allowed to access the requested configuration. DemoBelow curl command demonstrates how to get id of configuration with path root/test: curl -u admin:admin http://localhost:8810/rest/configuration/id?path=root/test
Access configuration path by idSyntaxConfiguration path can be accessed by id using http GET method through below url: http://localhost:8810/rest/configuration/path?id=<configuration id>
Here <configuration id> stands for id of the configuration. The response is of mime type plain/text and the content is string representation of the configuration path name. SecurityYou will need to use http BASIC authentication to login as an authorized QuickBuild user if the anonymous is not allowed to access the requested configuration. DemoBelow curl command demonstrates how to get path name of configuration with id 1: curl -u admin:admin http://localhost:8810/rest/configuration/path?id=1
Access configuration status by idSyntaxConfiguration status can be accessed by id using http GET method through below url: http://localhost:8810/rest/configuration/status?id=<configuration id>
Here <configuration id> stands for id of the configuration. The response is of mime type plain/text and the content is string representation of the configuration status. SecurityYou will need to use http BASIC authentication to login as an authorized QuickBuild user if the anonymous is not allowed to access the requested configuration. DemoBelow curl command demonstrates how to get status of configuration with id 1: curl -u admin:admin http://localhost:8810/rest/configuration/status?id=1
Get all configurations in the systemSyntaxA list of all configurations can be retrieved using http GET method through below url: http://localhost:8810/rest/configurations
The response is of mime type application/xml and the content is xml representation of list of all configurations in the system. SecurityYou will need to use http BASIC authentication to login as an authorized QuickBuild user if the anonymous does not have ACCESS_SETTINGS permission of any of the configuration in the system. DemoBelow curl command demonstrates how to get all configurations in the system: curl -u admin:admin http://localhost:8810/rest/configurations
Update configurationSyntaxConfiguration can be updated by posting xml representation of the configuration to below url: http://localhost:8810/rest/configuration
Please note that the parent element denotes id of the parent configuration. SecurityYou will need to use http BASIC authentication to login as administrator if the anonymous does not have administrative rights. DemoWe will use curl to demonstrate how to modify next build version of configuration root/test:
Create configurationSyntaxConfiguration can be created by posting xml representation of the configuration to below url: http://localhost:8810/rest/configuration
Please note that:
SecurityYou will need to use http BASIC authentication to login as administrator if the anonymous does not have administrative rights. DemoWe will use curl to demonstrate how to create a new configuration root/test-copy by copying the configuration root/test.
Delete configurationSyntaxConfiguration can be deleted using http DELETE method through below url: http://localhost:8810/rest/configuration?id=<configuration id>
Here <configuration id} stands for id of the configuration to be deleted. SecurityYou will need to use http BASIC authentication to login as administrator if the anonymous does not have administrative rights. DemoBelow curl command demonstrates how to delete the configuration with id 2: curl -X DELETE -u admin:admin http://localhost:8810/rest/configuration?id=2
|