Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Represents the top level URL resource of the ArcGIS Server
Administration API

src/a/r/arcrest-10.2.2-beta/arcrest/admin/cmdline.py   arcrest(Download)
    admin_url, rest_url = get_rest_urls(args.site)
    with action("connecting to admin site {0}".format(admin_url)):
        site = admin.Admin(admin_url, args.username, args.password,
                           generate_token=args.token)
        assert site._json_struct.get('status', 'ok') != 'error',\
            assert not args.name, "name cannot be set if listing services"
        with action("connecting to admin site {0}".format(admin_url)):
            site = admin.Admin(admin_url, args.username, args.password,
                                          generate_token=args.token)
            assert site._json_struct.get('status', 'ok') != 'error',\
            assert args.name, "Service name not specified"
        with action("connecting to admin site {0}".format(admin_url)):
            site = admin.Admin(admin_url, args.username, args.password,
                               generate_token=args.token)
            assert site._json_struct.get('status', 'ok') != 'error',\
    admin_url, rest_url = get_rest_urls(args.site)
    with action("connecting to admin site {0}".format(admin_url)):
        site = admin.Admin(admin_url, args.username, args.password,
                           generate_token=args.token)
        assert site._json_struct.get('status', 'ok') != 'error',\

src/g/e/geonode-arcrest-10.2/arcrest/admin/cmdline.py   geonode-arcrest(Download)
    admin_url, rest_url = get_rest_urls(args.site)
    with action("connecting to admin site {0}".format(admin_url)):
        site = admin.Admin(admin_url, args.username, args.password,
                           generate_token=args.token)
        assert site._json_struct.get('status', 'ok') != 'error',\
            assert not args.name, "name cannot be set if listing services"
        with action("connecting to admin site {0}".format(admin_url)):
            site = admin.Admin(admin_url, args.username, args.password,
                                          generate_token=args.token)
            assert site._json_struct.get('status', 'ok') != 'error',\
            assert args.name, "Service name not specified"
        with action("connecting to admin site {0}".format(admin_url)):
            site = admin.Admin(admin_url, args.username, args.password,
                               generate_token=args.token)
            assert site._json_struct.get('status', 'ok') != 'error',\
    admin_url, rest_url = get_rest_urls(args.site)
    with action("connecting to admin site {0}".format(admin_url)):
        site = admin.Admin(admin_url, args.username, args.password,
                           generate_token=args.token)
        assert site._json_struct.get('status', 'ok') != 'error',\

src/a/r/arcrest-HEAD/arcrest/admin/cmdline.py   arcrest(Download)
    admin_url, rest_url = get_rest_urls(args.site)
    with action("connecting to admin site {0}".format(admin_url)):
        site = admin.Admin(admin_url, args.username, args.password,
                           generate_token=args.token)
        assert site._json_struct.get('status', 'ok') != 'error',\
            assert not args.name, "name cannot be set if listing services"
        with action("connecting to admin site {0}".format(admin_url)):
            site = admin.Admin(admin_url, args.username, args.password,
                                          generate_token=args.token)
            assert site._json_struct.get('status', 'ok') != 'error',\
            assert args.name, "Service name not specified"
        with action("connecting to admin site {0}".format(admin_url)):
            site = admin.Admin(admin_url, args.username, args.password,
                               generate_token=args.token)
            assert site._json_struct.get('status', 'ok') != 'error',\
    admin_url, rest_url = get_rest_urls(args.site)
    with action("connecting to admin site {0}".format(admin_url)):
        site = admin.Admin(admin_url, args.username, args.password,
                           generate_token=args.token)
        assert site._json_struct.get('status', 'ok') != 'error',\