[{"label":"Latest (2.0.1)","version":"latest"}]
telco-cloud-service-assurance

Create Ack Alarms

Description

This operation creates an AckAlarms entity.

Request

Request

URL

URL


post
https://{api_host}tcsa.host.com/tcsa/api/tmf/v1/ackAlarms
Copy

Request Body

Request Body

AckAlarmsCreate of mimetype application/json Required

The AckAlarms to be created

{
    "ackSystemId": "postman-api",
    "alarmPattern": [
        {
            "alarmedObjectType": "Container",
            "state": "ACTIVE"
        },
        {
            "id": "Name:NOTIFICATION-VPN_VPN-100_:9900_Impacted$Source:INCHARGE-SA-PRES$"
        }
    ]
}
string
ackSystemId Required

Name of the acknowledging system


array of Alarm
alarmPattern Required

Alarm patterns to match target alarms. An alarm will match if an attribute in any of the patterns is equal to the corresponding attribute of the alarm. The attributes which are supported with matching are - id, alarmType, alarmedObjectType, perceivedSeverity, plannedOutageIndicator and state.


string as date-time
ackTime Optional

Time of the acknowledgement


string
ackUserId Optional

Name of the acknowledging user


array of AlarmRefOrValue
ackedAlarm Optional

The successfully acknowledged alarms


string
state Optional

Current state of the operation task

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns AckAlarms of type application/json
{
	"@baseType": null,
	"@schemaLocation": null,
	"@type": null,
	"ackSystemId": "postman-api",
	"ackTime": "2022-11-02T11:04:03.982749Z",
	"ackUserId": "admin",
	"ackedAlarm": [],
	"alarmPattern": [
		{
			"alarmedObjectType": "Container",
			"state": "ACTIVE"
		},
		{
			"id": "Name:NOTIFICATION-VPN_VPN-100_:9900_Impacted$Source:INCHARGE-SA-PRES$"
		}
	],
	"href": "/tcsa/api/tmf/v1/ackAlarms/JkgDOIQB9XatrL7sMC6S",
	"id": "JkgDOIQB9XatrL7sMC6S",
	"state": "IN_PROGRESS"
}
string
@baseType Optional

When sub-classing, this defines the super-class


string as uri
@schemaLocation Optional

A URI to a JSON-Schema file that defines additional attributes and relationships


string
@type Optional

When sub-classing, this defines the sub-class entity name


string
ackSystemId Optional

Name of the acknowledging system


string as date-time
ackTime Optional

Time of the acknowledgement


string
ackUserId Optional

Name of the acknowledging user


array of AlarmRefOrValue
ackedAlarm Optional

The successfully acknowledged alarms


array of Alarm
alarmPattern Optional

Alarm patterns to match target alarms. An alarm will match if an attribute in any of the patterns is equal to the corresponding attribute of the alarm. The attributes which are supported with matching are - id, alarmType, alarmedObjectType, perceivedSeverity, plannedOutageIndicator and state.


string
href Optional

A reference to the task


string
id Optional

The identifier of the task


string
state Optional

Current state of the operation task

Errors

Errors

Error
400

Bad Request


Error
401

Unauthorized


Error
403

Forbidden


Error
405

Method Not allowed


Error
409

Conflict


Error
500

Internal Server Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"ackSystemId":"postman-api","ackUserId":"admin","alarmPattern":[{"alarmedObjectType":"Container","state":"ACTIVE"},{"id":"Name:NOTIFICATION-VPN_VPN-100_:9900_Impacted$Source:INCHARGE-SA-PRES$"}],"state":"IN_PROGRESS"}' https://{api_host}tcsa.host.com/tcsa/api/tmf/v1/ackAlarms
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: ackAlarms


Feedback

Was this page helpful?