Repository navigation
ConfigurationItem
from xurrent import ConfigurationItem · module xurrent.configuration_items · API resource /cis · Xurrent API docs
A configuration item (CI): hardware, software or another asset registered in the CMDB, based on a product.
The named arguments of the constructor. Every other field of the API response is set as an attribute as well.
| Field | Type | Default | Converted to |
|---|---|---|---|
id |
int |
||
label |
Optional[str] |
None |
|
name |
Optional[str] |
None |
|
type |
Optional[str] |
None |
|
status |
Optional[str] |
None |
|
attributes |
Optional[Dict] |
None |
|
product |
Optional[Dict] |
None |
Product |
ConfigurationItem.get_by_id(connection_object: XurrentApiHelper, id: int) -> TRetrieve a configuration item by its ID.
API: GET /cis/{id}
ConfigurationItem.get_configuration_items(connection_object: XurrentApiHelper, predefinedFilter: ConfigurationItemPredefinedFilter = None, queryfilter: dict = None) -> List[T]Retrieve all configuration items.
API: GET /cis · Enums: ConfigurationItemPredefinedFilter
ConfigurationItem.create(connection_object: XurrentApiHelper, data: dict) -> TCreate a new configuration item.
API: POST /cis
configuration_item.ref_str() -> strProvide a human-readable string representation of the object.
configuration_item.update(data: dict) -> TUpdate the current configuration item instance with new data.
API: PATCH /cis/{id}
configuration_item.archive() -> TArchive the configuration item.
Allowed statuses for archiving:
- undergoing_maintenance
- broken_down
- being_repaired
- archived
- to_be_removed
- lost_or_stolen
- removed
API: POST /cis/{id}/archive
configuration_item.restore() -> TRestore the configuration item.
API: POST /cis/{id}/restore
configuration_item.trash() -> TTrash the configuration item.
Allowed statuses for trashing:
- undergoing_maintenance
- broken_down
- being_repaired
- archived
- to_be_removed
- lost_or_stolen
- removed
API: POST /cis/{id}/trash
Used by: ConfigurationItem.get_configuration_items
| Value | Description |
|---|---|
active |
List all active configuration items |
inactive |
List all inactive configuration items |
supported_by_my_teams |
List all configuration items supported by the teams of the API user |
Uses:
-
Product:
product
Used by:
-
Contract:
get_cis() -
Person:
get_cis() -
Product:
get_cis() -
Request:
get_cis(),get_cis_by_request_id() -
RequestTemplate:
ci -
ServiceInstance:
get_cis() -
Task:
get_cis()
- XurrentApiHelper
- Calendar
- ClosureCode
- ConfigurationItem
- Contract
- CustomCollection
- CustomCollectionElement
- EffortClass
- Holiday
- KnowledgeArticle
- Organization
- OutOfOfficePeriod
- Person
- Problem
- Product
- ProductCategory
- Project
- ProjectTask
- Release
- Request
- RequestTemplate
- Risk
- Service
- ServiceInstance
- ServiceOffering
- ShopArticle
- ShopArticleCategory
- ShopOrderLine
- Site
- SkillPool
- Task
- Team
- TimeAllocation
- UiExtension
- Workflow
- WorkflowTemplate