File: SoftLayer_Tag.py

package info (click to toggle)
python-softlayer 6.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,508 kB
  • sloc: python: 57,195; makefile: 133; xml: 97; sh: 59
file content (31 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
getUnattachedTagsForCurrentUser = [{'id': 287895, 'name': 'coreos', 'referenceCount': 0}]
getAttachedTagsForCurrentUser = [{'id': 1286571, 'name': 'bs_test_instance', 'referenceCount': 5}]
getReferences = [
    {
        'id': 73009305,
        'resourceTableId': 33488921,
        'tag': {
            'id': 1286571,
            'name': 'bs_test_instance',
        },
        'tagId': 1286571,
        'tagType': {'description': 'CCI', 'keyName': 'GUEST'},
        'tagTypeId': 2,
        'usrRecordId': 6625205
    }
]

deleteTag = True

setTags = True

getObject = getAttachedTagsForCurrentUser[0]

getTagByTagName = getAttachedTagsForCurrentUser

getAllTagTypes = [
    {
        "description": "Hardware",
        "keyName": "HARDWARE"
    }
]