Cisco Prime Infrastructure API
Prime Infrastructure API Documentation

GET

# GET cm/credentials

- Jump To

### Resource Information

Rate Limiting? | Yes
Sorting? | No
Paging? | No
Filtering? | No
Response Formats | xml json
HTTP Methods | GET

Operation to retrieve device credentials. Can take one of two parameters: 'id' or 'address'. , e.g. ?id=17010 or ?address=172.23.218.75, where the id is MEI ID or the address is the management address.

## Resource URL

/webacs/api/v1/op/cm/credentials

## Request Parameters

Type | Attribute Name | Description
--- | --- | ---
String | id optional | id is the MEI ID
String | address optional | The management address.

## Response Parameters

Type | Attribute Name | Description
--- | --- | ---
PropertyNameAndStringValue[] | credentialList | The map of credentials.
Type | Attribute Name | Description
--- | --- | ---
String | propertyName | The name of the property.
String | stringValue | The value of the property, where applicable.
String | id | This corresponds to the IP_ADDRESS field in the underlying credential class. In XMP this holds the MEI ID.

## Sample Payloads

Sample payloads are for information only. They are automatically generated and the values included may not be representative of actual valid data values.

### Sample XML Response Payload

https://192.168.116.207/webacs/api/v1/op/cm/credentials

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <mgmtResponse rootUrl="https://192.168.116.207/webacs/api/v1/op/cm/cm/credentials" requestUrl="https://192.168.116.207/webacs/api/v1/op/cm/credentials" responseType="operation">
        <credentialDTO>
            <credentialList>
                <credentialList>
                    <instanceId>2</instanceId>
                    <instanceVersion>1</instanceVersion>
                    <propertyName>String value</propertyName>
                    <stringValue>String value</stringValue>
                </credentialList>
            </credentialList>
            <id>String value</id>
        </credentialDTO>
    </mgmtResponse>

### Sample JSON Response Payload

https://192.168.116.207/webacs/api/v1/op/cm/credentials.json

    {
      "mgmtResponse" : {
        "@rootUrl" : "https : \/\/192.168.116.207\/webacs\/api\/v1\/op\/cm\/cm\/credentials",
        "@requestUrl" : "https : \/\/192.168.116.207\/webacs\/api\/v1\/op\/cm\/credentials",
        "@responseType" : "operation",
        "credentialDTO" : {
          "credentialList" : {
            "credentialList" : {
              "instanceId" : 2,
              "instanceVersion" : 1,
              "propertyName" : "String value",
              "stringValue" : "String value"
            }
          },
          "id" : "String value"
        }
      }
    }